Skip to content

Rewatch: simplify getting bsc path #7634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 12, 2025

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Jul 11, 2025

We know that in the bin package, bsc.exe is in the same directory as rescript.exe (rewatch).
For special cases (tests), we can override that path using an env var.

This make things much easier.

@cknitt cknitt requested review from Bushuo and jfrolich July 11, 2025 18:42
@cknitt cknitt force-pushed the rewatch-bsc-path branch from 4d2d130 to 1f048b2 Compare July 11, 2025 19:07
@cknitt
Copy link
Member Author

cknitt commented Jul 11, 2025

Having some issue on Windows 😕 - @Bushuo could you help me there when you have some time?

Copy link
Collaborator

@Bushuo Bushuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :) Maybe my comment will fix things for windows

@Bushuo
Copy link
Collaborator

Bushuo commented Jul 12, 2025

@cknitt I'll try to look into it by tomorrow

@cknitt cknitt force-pushed the rewatch-bsc-path branch 2 times, most recently from 9e0264e to 74f3b7a Compare July 12, 2025 12:39
Copy link

pkg-pr-new bot commented Jul 12, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7634

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7634

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7634

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7634

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7634

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7634

commit: 596d4d9

@cknitt
Copy link
Member Author

cknitt commented Jul 12, 2025

@cknitt I'll try to look into it by tomorrow

@Bushuo Found the cause of the problem in the meantime!

@cknitt cknitt force-pushed the rewatch-bsc-path branch from dcb3ba6 to 596d4d9 Compare July 12, 2025 13:12
@cknitt cknitt requested a review from Bushuo July 12, 2025 13:21
@cknitt cknitt merged commit 9454207 into rescript-lang:master Jul 12, 2025
27 checks passed
@cknitt cknitt deleted the rewatch-bsc-path branch July 12, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants