- Configuring build task in VS Code for CE C
- 07 Jul 2021 01:50:23 pm
- Last edited by randomguy on 07 Jul 2021 05:00:49 pm; edited 4 times in total
Okay, so I decided to experiment with build tasks and that sort of thing even though I am able to type "make" into the terminal to make my CE C code. So, I clicked terminal->configure default build task in VS Code, which opened a tasks.json file. I edited the contents to this:
Code:
However, that generated this error:
Code:
Why is that, and how can I change it to work, or is that not possible? I am just experimenting, this isn't anything time-pressing or important! Thank you in advance!
Edit: I figured out (with a ton of help) what I needed, and even how to create a launch.json that automatically sends the newly build program to CEmu and runs it immediately!
Code:
{
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build_CE",
"type": "shell",
"options": {
"cwd": "/Users/me/CEdev/projects/smart_notes_ce/smart_notes_ce"
},
"command": "export CEDEV=/Users/me/CEdev && make gfx && make",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}
However, that generated this error:
Code:
> Executing task in folder smart_notes_ce: export CEDEV=/Users/me/CEdev && make gfx && make <
/bin/sh: convimg: command not found
make: *** [gfx] Error 127
The terminal process "/bin/zsh '-c', 'export CEDEV=/Users/me/CEdev && make gfx && make'" failed to launch (exit code: 2).
Terminal will be reused by tasks, press any key to close it.
Why is that, and how can I change it to work, or is that not possible? I am just experimenting, this isn't anything time-pressing or important! Thank you in advance!
Edit: I figured out (with a ton of help) what I needed, and even how to create a launch.json that automatically sends the newly build program to CEmu and runs it immediately!