lf-lang / vscode-lingua-franca

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

Generated files and directories do not appear in Windows #19

Closed petervdonovan closed 2 years ago

petervdonovan commented 2 years ago

LFC works fine on Windows, but for some reason (likely inadequate privileges?) the compiler does not generate directories when invoked from VS Code.

This results in errors like

java.io.IOException: Cannot run program "npm" (in directory "c:\c%3A\vscode-lingua-franca\lingua-franca\test\TypeScript\src-gen\After"): CreateProcess error=2, The system cannot find the file specified
Soroosh129 commented 2 years ago

There is also c:\c%3A here, which is c:\c:\.

lhstrh commented 2 years ago

Was this error thrown when compiling an LF file with TypeScript target (since it's attempting to run npm)?

petervdonovan commented 2 years ago

@Soroosh129 was right on both issues -- thank you Soroush!

Yes, the error was thrown when compiling with the TypeScript target. It is still true that calls to npm via ProcessBuilder do not seem to work on Windows, but that seems to be a separate problem that also exists for lfc. I am closing this issue and #20.