grame-cncm / faustwasm

Faust for WebAudio written in TypeScript
Other
13 stars 7 forks source link

./FAUST_DSP reference in assets\standalone index and template html files causes additional "\" in <src> reference #10

Closed plush2 closed 2 weeks ago

plush2 commented 2 weeks ago

I've encountered a little bug in the node .\faustwasm\scripts\faust2wasm.js compile on windows. The <script src="./.\script.js"></script> in the html has an .\ inserted at the beginning of the path. It seems the reference in faustwasm\assets\standalone\index.html line 81 <script src="./FAUST_DSP.js"></script> for example causes the compiled source reference to appear as shown above. By editing that reference to read <script src="FAUST_DSP.js"></script> it compiles correctly for me. All this might be due to a misconfiguration on my system but I thought I'd submit the issue just in case.

plush2 commented 2 weeks ago

This was definitely operator error on my part. The problem was actually in how I was forming the command. I was using .\ for the input dsp file which was in the current directory so VSCode allowed it to work but it added that .\ to the path for dspName in the script.