When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
37 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
try adding this to your vscode config if you don't want to try out visual studio instead: https://code.visualstudio.com/docs/terminal/profiles#_msys2
it should set things up so it runs the commands from that terminal, which will have all of the paths set correctly for you
Which part exactly?
add this to your settings.json:
{
"terminal.integrated.profiles.windows": {
"MSYS2": {
"path": "C:\\msys64\\usr\\bin\\bash.exe",
"args": ["--login", "-i"],
"env": { "CHERE_INVOKING": "1" }
}
},
"terminal.integrated.defaultProfile.windows": "MSYS2"
}
just update the path defined there for the terminal if it doesn't match where it is in your machine
Sorry to bother but I cant find settings.json
in Visual Studio Code
oh wait no I found it
Nah doesnt work
is it defaulting to the right terminal?
if you type g++ --version in the vscode terminal does it give you a valid version from msys2?
i'd restart it just to be safe. that setting might not take effect if you already have some other terminal open
It give the right version however when I tried to enter the code showed above into settings.json it says "programming langauge not supported"
did you try following either guide i sent you in the other thread?
wdym
yep that's prob it
try wrapping the paths in quotes
the spaces are prob messing it up
The vscode path?
or what?
I dont understand
the path with C++ Projektai in it
the spaces in that and in the hello world need to be quoted or the spaces need to be escaped in that path
what does your launch.json or tasks.json (whichever you're using) look like?
Launch:"C_Cpp.default.compilerPath": "c:\Users\prixe\AppData\Local\Programs\Microsoft VS Code\Code.exe",
"editor.codeActionsOnSave": {},
"launch": {
"configurations": [],
"compounds": []
}
}
building = compiling
oh ok
!solved
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity