lf-lang / vscode-lingua-franca

Lingua Franca extension for Visual Studio Code
Other
5 stars 3 forks source link

Using the "Build and Run" command on a file with TypeScript target doesn't run the program #64

Closed billy-bao closed 2 years ago

billy-bao commented 2 years ago

I am on Mac OS Monterey 12.4, using Bash. When choosing the "Build and Run" command using the VS Code extension on a TypeScript target, the program doesn't run, but rather starts the node interactive environment. This is the output:

cd /Users/billybao/lf/test
bash --login -c node src-gen/HelloWorld/dist/HelloWorld.js

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) BillydeMacBook-Pro:test billybao$ cd /Users/billybao/lf/test
(base) BillydeMacBook-Pro:test billybao$ bash --login -c node src-gen/HelloWorld/dist/HelloWorld.js
Welcome to Node.js v18.4.0.
Type ".help" for more information.
> 

Suggested fix: bash --login -c node src-gen/HelloWorld/dist/HelloWorld.js -> bash --login -c "node src-gen/HelloWorld/dist/HelloWorld.js"

petervdonovan commented 2 years ago

Closed by #1265.