D
DragonOsman2
Guest
[Where should I put questions about VS Code? I put it here, but if this is the wrong place then please move it to the right place.]
I have a VS Code task.json file with this content:
{ // See Tasks in Visual Studio Code
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "emcc",
"args": [
"/mnt/e/programming/visual_studio_code/book-examples/chapter-05-create-load-module/without-glue.c",
"-Os",
"-s",
"WASM=1",
"-s",
"SIDE_MODULE=1",
"-s",
"BINARYEN_ASYNC_COMPILATION=0",
"-o",
"/mnt/e/programming/visual_studio_code/book-examples/chapter-05-create-load-module/without-glue.wasm"
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"runner": "terminal"
}
I want it to run through a bash shell, so I also set the integrated terminal setting to use bash. But when I try to run the Build Task in VS Code, I get this message:
"> Executing task: 'wsl.exe emcc' /mnt/e/programming/visual_studio_code/book-examples/chapter-05-create-load-module/without-glue.c -Os -s WASM=1 -s SIDE_MODULE=1 -s BINARYEN_ASYNC_COMPILATION=0 -o /mnt/e/programming/visual_studio_code/book-examples/chapter-05-create-load-module/without-glue.wasm <
The terminal process terminated with exit code: 2
Terminal will be reused by tasks, press any key to close it."
What's the problem and how can I fix it? Thanks in advance in advance for any replies and/or help.
Continue reading...
I have a VS Code task.json file with this content:
{ // See Tasks in Visual Studio Code
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "emcc",
"args": [
"/mnt/e/programming/visual_studio_code/book-examples/chapter-05-create-load-module/without-glue.c",
"-Os",
"-s",
"WASM=1",
"-s",
"SIDE_MODULE=1",
"-s",
"BINARYEN_ASYNC_COMPILATION=0",
"-o",
"/mnt/e/programming/visual_studio_code/book-examples/chapter-05-create-load-module/without-glue.wasm"
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"runner": "terminal"
}
I want it to run through a bash shell, so I also set the integrated terminal setting to use bash. But when I try to run the Build Task in VS Code, I get this message:
"> Executing task: 'wsl.exe emcc' /mnt/e/programming/visual_studio_code/book-examples/chapter-05-create-load-module/without-glue.c -Os -s WASM=1 -s SIDE_MODULE=1 -s BINARYEN_ASYNC_COMPILATION=0 -o /mnt/e/programming/visual_studio_code/book-examples/chapter-05-create-load-module/without-glue.wasm <
The terminal process terminated with exit code: 2
Terminal will be reused by tasks, press any key to close it."
What's the problem and how can I fix it? Thanks in advance in advance for any replies and/or help.
Continue reading...