rescript-lang / rescript-vscode

Official VSCode plugin for ReScript
MIT License
328 stars 57 forks source link

Can't find ReScript binary #979

Open thealjey opened 7 months ago

thealjey commented 7 months ago

Am I stupid, or what's going on here? It's just rescript-template-basic with no modifications after bun install. image

ghost commented 2 months ago

Just start to learn rescript to day and has the same issue.

Apparently it looks for "rescript" file, while on windows the file is rescript.exe if bun is used. I rename the file and there is no error.

https://github.com/rescript-lang/rescript-vscode/blob/fd911045515edd1c82e981e407281ee9f311a8ed/server/src/constants.ts#L30

nojaf commented 2 months ago

Shot in the dark but maybe some postinstall failed, try bun pm trust rescript

thealjey commented 2 weeks ago

Just start to learn rescript to day and has the same issue.

Apparently it looks for "rescript" file, while on windows the file is rescript.exe if bun is used. I rename the file and there is no error.

https://github.com/rescript-lang/rescript-vscode/blob/fd911045515edd1c82e981e407281ee9f311a8ed/server/src/constants.ts#L30

Ok, cool find, thanks. Certainly looks like a bug in rescript-vscode then.