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

Cannot set the MSVC compiler path. #71

Closed orestescm76 closed 2 years ago

orestescm76 commented 2 years ago

Something is wrong and I cannot figure if it's my fault or if there is a problem with the extension. I'm trying to set the MSVC compiler path and when I hit compile, it tells me it doesn't find the file, but it clearly exists. Terminal output:

> Executing task: C:/Windows/System32/cmd.exe /d /c "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 && cl.exe /W4 /Od /Zi /EHsc -Ie:\Programacion\C\Voraçes\3 /Fde:\Programacion\C\Voraçes\3\build\Debug\ /Foe:\Programacion\C\Voraçes\3\build\Debug\ /Fee:\Programacion\C\Voraçes\3\build\Debug\outDebug.exe  e:\Programacion\C\Voraçes\3\main.c e:\Programacion\C\Voraçes\3\imatriz2d.c <

'\"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat\"' is not recognized as an internal or external command,
operable program or batch file.
The terminal process "C:\Windows\System32\cmd.exe '/d', '/c', '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 && cl.exe /W4 /Od /Zi /EHsc -Ie:\Programacion\C\Voraçes\3 /Fde:\Programacion\C\Voraçes\3\build\Debug\ /Foe:\Programacion\C\Voraçes\3\build\Debug\ /Fee:\Programacion\C\Voraçes\3\build\Debug\outDebug.exe  e:\Programacion\C\Voraçes\3\main.c e:\Programacion\C\Voraçes\3\imatriz2d.c'" terminated with exit code: 1.

My batchfile path is set as follows: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat I tried setting it between "", with /, and it doesn't work. Please note, i'm changing this on the "Workspace" setting. It really doesn't matter, still I can't make it to work.

franneck94 commented 2 years ago

Should work again in 3.2.4. As a note pleae use "/" for the path.

orestescm76 commented 2 years ago

I can confirm this is fixed. Thanks!