-
Notifications
You must be signed in to change notification settings - Fork 57
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
Unify various exec
calls
#81
Comments
For the second case we followed the documentation on NodeJS. Is it possible to get around that if the file is a script? What's the condition for getting the popup for starting this process? Is it by having a single .res file open in the project? |
Oh right, yeah thanks for the reminder. I've finally understood the little complexities here. (Thanks also to @bsansouci for debugging on windows with me). d1dc096 fixes everything. Thanks again! |
I'll cc @cristianoc, @mewhhaha and @john-pangalos (sorry for the ping) on this one.
Currently in the codebase there are 3 ways to call a binary:
exec
, with path and argument escaping:rescript-vscode/server/src/RescriptEditorSupport.ts
Line 48 in d1e5411
exec
, that doesn't escape path but does use the right windows bsb binary:rescript-vscode/server/src/utils.ts
Lines 107 to 114 in d1e5411
execFileSync
, that might not call the right windows bsc binary:rescript-vscode/server/src/utils.ts
Line 83 in d1e5411
We should really revisit those and streamline them:
execFile
, which avoids needing to escape the command path.should useCan't use that for a batch scriptexecFile
in thewin32
branch too, to avoid needing to escape path..cmd
part? Windows fixes #71 (comment)).The text was updated successfully, but these errors were encountered: