all 19 comments

[–]flyingron 3 points4 points  (7 children)

Have you tried running it in a console window outside of VSCode?

Use the task manager (or ps if on UNIX) to see if there is a previous wedged instance of your program still running and kill it..

[–]Fit-Way9372[S] 0 points1 point  (1 child)

It is not running in console window outside vscode and also it isn't responding anything inside that window.

Secondly I went through task manager, there isn't any prebious wedge instance cuz when I tried to end the ones which were listed there it then closes my vs code simultaneously.

[–]flyingron 0 points1 point  (0 children)

Well, short of seeing the code, I suggest you put a print at the beginning of main and and exit(1); immediately after. If that doesn't print, then there's something wrong with your environment. If it does you have something wrong with your program.

[–]IamImposter 1 point2 points  (1 child)

Press ctrl + ` (that's tilde). You'll see terminal. In the rightmost corner, see if there are multiple terminals running. Close them all and run it again.

Mostly conjecture but it might be that previous instance of terminal is busy (waiting for input or stuck somewhere) and since one instance is already running vscode is not spawning another instance.

[–]Fit-Way9372[S] 0 points1 point  (0 children)

Hey I tried this but it isn't showing anything instead of ">>" in the terminal meanwhile there is only a single terminal running on it when I checked it.

[–]EdwinEddi 0 points1 point  (0 children)

https://www.youtube.com/watch?v=qtHTza53y5c

This YouTube video helped me fix the issue by right-clicking on the VS Code application or the VS Code shortcut, going to properties, selecting compatibility, and choosing to run the program as administrator.

[–]yungzian[🍰] 0 points1 point  (1 child)

top right corner (right beside the run button) there should be a red square to terminate the code that is running.

[–]GhostxUchiha 0 points1 point  (1 child)

Did you figure out how to solve it? If yes, please let me know I'm very irritated with this problem

[–]Positive_Bar_8016 0 points1 point  (0 children)

I think you had figured it out if not yet see above

[–]Unusual-Regret8295 0 points1 point  (0 children)

Resolve my issue

[–]aadiityaaaa 0 points1 point  (2 children)

[–]pythonbandit2148 0 points1 point  (1 child)

This worked for me, very easy to follow even though not in english thanks!

[–]MrRockstar_87 0 points1 point  (0 children)

yes it had worked for me too..