#Visual Studio code does not work
119 messages · Page 1 of 1 (latest)
Can you show a screenshot of your VS window
this?
@glacial hill has reached level 3. GG!
That's vscode, not vs
so whats the vs?
???
Visual studio is found when you search on google for Visual Studio Without the "code" at the end. Then you should be redirected to a page where you can download the windows executable
oww i forgot to specify
If you want to do c++ in visual studio code
Then follow this guide for your specific operating system.
Are you running the code from the run button in your code editor?
yes
Try to compile and run the code manually in terminal.
how
Or try to follow the instructions in the guide I showed here:;
g++ -o HelloWorld HelloWorld.cpp
Then run the executable generated by doing .\HelloWorld.exe
sorry if im slow to understand
That's fine
this one on the terminal or the other one?
That command should be run in the integrated terminal in visual studio code (if you are in the folder where the file you are trying to compile is)
@craggy wind has reached level 2. GG!
If you are unsure you can send a screenshot so I can see what you are seeing.
should i show you the error
Yeah
Yes it should, please follow these instructions for setting up cpp to run in visual studio code and after completing please try to use the run button again.
The funny thing is that i was programing up to wensday and VSc was working fine
If you dont mind i need to eat
That's fine, when you are done, you can try to open a new terminal outside of visual studio code and then navigate to the folder where your project file HelloWorld.cpp is (with cd) and run the following command to compile the program: g++ -o HelloWorld HelloWorld.cpp
When you say outside what are you refering to ?
Outside as in not the integrated terminal that you can use in visual studio code but the one when you press windows + r and type cmd
Okok
Hello
I already use the .cpp
It was working
And in the middle of a new program it stop working
What vscode extensions do you have?
here
Yeah that's probably related to "Code Runner"
what should i do?
@glacial hill has reached level 4. GG!
What do you need the extension for?
im actually not sure about the Code Runner one because someone added it afther VSc stop working for me. it work for like 30m and the problem was back
.
I would just remove code runner and follow https://code.visualstudio.com/docs/languages/cpp to run your C++ code or use VS since that will bring less problems
Also, whats C/C++ Compile Run?
Just stick to one process of compiling and running your application rather than using three different extensions
something the profesor told us to install
Oh, your professor is telling you to use vscode? 
I've never worked with C/C++ Compile Run nor Code Runner though both could be related to the exception
yes
https://github.com/PowerShell/PSReadLine seems to be related to this somehow
and i was using it until wensday al lunch that it stoped working
Maybe one of your extensions is using this?
wile i was using it
You could try this by the way
But there shouldn't be a issue there
I mean couldn't he try to remove the module PSReadLine and see if it fixes it? and just reinsatll it if it doesn't. From what I understand it's for maintaining terminal commands history
Remove PSReadLine from where? He could try to remove the two third party extensions
@glacial hill I would try to use cmd instead of powershell in your vscode terminal
I guess there is a setting for that somewhere
From integratedterminal to internalconsole
So that you don't rely on PSReadLine anymore
You can remove a module temporarily by using Remove-Module PSReadLine, but using cmd instead would probably also fix it.
i did not know it was related
The exception you get is referring to it's github repo
With internalconsole?
i dont know how to do that
Do you have some sort of run configuration?
What's inside your .vscode folder
Make sure that "console": "internalConsole" is inside your launch.json
If you go to the "Run and debug" tab (above the extension tab you are on) there should be something like "create launch.json file"
But I don't know how your other extensions behave
i can
Great
Now it's probably trying to run from your launch.json which it didn't before
What's inside your launch.json now?
No
You don't need all these third party stuff
Only microsofts extensions should be enough
so what sould i do
Take a look in your launch.json
Being limited to vscode makes things more difficult than they actually are lol
this?
Yeah, you'll have to adjust that
what to be exact ?
@glacial hill has reached level 5. GG!
You want to use G++, right?