wasdk / WebAssemblyStudio

Learn, Teach, Work and Play in the WebAssembly Studio
http://webassembly.studio
MIT License
2.92k stars 273 forks source link

unable to compile WebAssemblyStudio project locally on win10 - Illegal characters in file name #463

Closed onelsonic closed 3 years ago

onelsonic commented 4 years ago

I cannot compile a project locally on win10 it says : Illegal characters in file name

2020-07-18 02_03_10-WebAssembly Studio
MaxGraey commented 4 years ago

I guess this field for filename (<name>.<ext>), not for full path

onelsonic commented 4 years ago

either full path or just the file name without the path will not work on windows 10.

MaxGraey commented 4 years ago

it should works) WebAssembly Studio uses virtual file system which not relate on OS at all.

onelsonic commented 4 years ago

@MaxGraey can you replicate on win10? From a clean install, a project is not working on win 10 - project will not compile. (when it does on macOS)

Seems like this one is the same issue :

446

Any win10 users here?

nokotan commented 4 years ago

In my win10, there seems to be no problem with file path.

WasmStudioOnWin10

It is strange that main.c is shown as "src\main.c" in the project view, and is not in "/src" folder. The problem is probably caused inconsistent path separater, between project view ("\") and WebAssembly Editor (expects "/").

You can manually create "/src" folder and move "main.c", "main.html", and "main.js" into that folder, then it will be compiled.

onelsonic commented 4 years ago

not ideal but your workaround works : creating the directory /src and moving and renaming the files seems to works. You found what is causing this issue. @nokotan

Your screenshot had me confused as it is the web version, but this workaround works locally.

nokotan commented 4 years ago

Your mention helped me understand this problem better, thanks.

I think this is build-time failure when processing templates projects. This workaround does fix this problem?

onelsonic commented 4 years ago

Hi @nokotan yes your code is fixing the windows build when running locally. 👍

onelsonic commented 3 years ago

thanks @nokotan 👍 I'm closing this.