franneck94 / Vscode-C-Cpp-Runner

🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀
MIT License
53 stars 14 forks source link

Error: the task 'C_Cpp_Runner: Build' neither specifies a command nor a dependsOn property. #149

Closed ebepho closed 7 months ago

ebepho commented 7 months ago

When I try to build and run a simple hello world file, I get this output:

Error: the task 'C_Cpp_Runner: Build' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "process",
    "id": "process,/bin/zsh,-c,clang++ -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 -c main.cpp -o ./build/Debug/main.o && clang++ -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 ./build/Debug/main.o -o ./build/Debug/outDebug,",
    "problemMatcher": [],
    "label": "C_Cpp_Runner: Build"
}
Error: the task 'C_Cpp_Runner: Build' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "process",
    "id": "process,/bin/zsh,-c,clang++ -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 -c main.cpp -o ./build/Debug/main.o && clang++ -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 ./build/Debug/main.o -o ./build/Debug/outDebug,",
    "problemMatcher": [],
    "label": "C_Cpp_Runner: Build"
}
Error: the task 'C_Cpp_Runner: Run' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "process",
    "id": "process,/bin/zsh,-c,./build/Debug/outDebug,",
    "problemMatcher": [],
    "label": "C_Cpp_Runner: Run"
}
Error: the task 'C_Cpp_Runner: Run' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "process",
    "id": "process,/bin/zsh,-c,./build/Debug/outDebug,",
    "problemMatcher": [],
    "label": "C_Cpp_Runner: Run"
}
franneck94 commented 7 months ago

Thats okay and i guess cant be fixed. Everything should still work.

ebepho commented 7 months ago

My problem arises when I try to debug. I get that Process exited with code -1.

Thank you

franneck94 commented 7 months ago

The debug error will be independet of the error message above

ebepho commented 7 months ago

Okay thank you, will look into that myself then!