easy-cpp-projects icon indicating copy to clipboard operation
easy-cpp-projects copied to clipboard

Error message"The terminal process terminated with exit code: 1"

Open skybow-tw opened this issue 7 years ago • 3 comments

The command "Easy Cpp/C++: Create new C++ project[G++/GDB(Linux)]" would generate 3 *.json file, but there is a strange setting inside the "settings.json" =>

"terminal.integrated.shell.windows": "cmd.exe".

It seems that this setting would override the original VSCode User settings "terminal.integrated.shell.windows": "C:\Windows\system32\cmd.exe",

,and result in an error message"The terminal process terminated with exit code: 1".

OS: Windows 7 64bit VSCode version:1.28.2 Microsoft C/C++ Extension version: 0.20.1

skybow-tw avatar Nov 09 '18 06:11 skybow-tw

That setting is set primarily because Windows 10 uses PowerShell and the syntax is not the same as cmd, I don't think it should affect Windows 7, I'll look into it as soon as I can. Are you using Mingw or something similar to build C++ programs in Windows 7?

Thank you!

acharluk avatar Nov 11 '18 10:11 acharluk

Yes! I just installed MinGW-64 to develop C programs.

Is it possible to automatically generate different version of settings.json file according to user's OS version?

skybow-tw avatar Nov 12 '18 17:11 skybow-tw

Sorry for the late response! Can you try again and see if the problem persist with the new version of the extension?

I've tried with MinGW in Windows 10 and it seems to work fine :smiley:.

acharluk avatar Jun 26 '19 16:06 acharluk