I've been trying to run a code in my laptop but all of a sudden this message shows up.
The thing here is that I'm reading a file with 105232 lines, and at line 94559 it shows this error. I already tested this code in another PC and it works fine. I don't know if it happens because of memory usage or what, i've already tried changing some settings but it still doesn't work. I tested other projects I got in here and they work just fine.
For some reason I cannot run python in vs code. This problem is new. I have used vs code before without a problem. When I click run the code appears to run but there is no output. I assume there is a wrong setting somewhere, but I don't know where to start. I am new to vs code and python.
so I'm running VS code debugger on python code in this repo: https://github.com/DexiongYung/CURL2_v1.git. For whatever reason when I try to launch one of the launch.json configs it starts for a few seconds and shows the debug bar:
This the bar disappears and no error is printed in VS Code's terminal. In fact, usually in terminal a command is printed to show it's running debugging in VS code, but that didn't come up either.
What I've tried:
I tried another repo and it runs fine.
I even tried reverting back to a previous branch where it was working, still didn't work (I suspected my launch.json had an error)
Tried running python commands via the terminal and they worked
Seems to be this repo specifically. Any ideas?
I have tried uninstalling and reinstalling it, but the problem did not dissappear. It seems that when I open the app, more than 20 windows open at the same time, causing the app to crash. Here is a screenshot:
I've searched on the internet for what else to do, but I didn't come across any solution.
The solution was to start VS Code from the command prompt with the following command:
code --disable-extensions --max-memory=12288mb
Then to close all open tabs and correctly exit VS Code without any open files.
Hopefully this helps someone!
I tried all the fixes above when my Ubuntu install of VS Code crashed repeatedly at startup. The only thing that worked for me was deleting the entire ~/.config/Code/Backups folder. Back it up first, just in case!
I had the same issue with the latest version of VSCODE. Then i tried installing "Downloads: Windows: User" one from https://code.visualstudio.com/updates/v1_52. It worked. I am not sure of the root cause.
I observed that after installing the extension 'Django Template Support' the VSCode started crashing.
I tried by installing the latest version of VSCode too. Still the VSCode did crash.
Once after uninstalling that extension, VSCode is working fine.
May be, we should note the change which has made the VScode to crash (though, it shouldn't, I believe.)
So I just started learning programming and I think something is messed up with my code runner in Visual Studio Code. When I try to use input in Python I can not write anything in the terminal. This problem came out recently. It writes that when I try to input anything that it "cannot edit in read-only editor". I also checked in here what could be the solution, but it did not help. Input still does not work. I am on Linux, and I also tried to uninstall the program and code runner as well, none of them worked so far.
Ps: I tried the Code-runner: Run in Terminal box check method, which did not work at all.