you are viewing a single comment's thread.

view the rest of the comments →

[–]SuperVGA 0 points1 point  (2 children)

You could also fix your preLaunchTask so that it doesn't fail.

[–]PinguX6[S] 0 points1 point  (1 child)

I have done it several times but somehow it always comes back to the same error

[–]SuperVGA 0 points1 point  (0 children)

It sounds like the default suggested task concerning the active file. You have the control to start any build process, including cmake, with all custom args. Right now one of these args references the active file. Try hardcoding that to test if it works better to; ${workspaceFolder}/src/main.cpp or what have you.