

- #VISUAL STUDIO CODE PYTHON ERRORSNOT GOING AWAY UPDATE#
- #VISUAL STUDIO CODE PYTHON ERRORSNOT GOING AWAY WINDOWS 10#
- #VISUAL STUDIO CODE PYTHON ERRORSNOT GOING AWAY WINDOWS#
I've posted a ticket on the tracker mentioned in the error but I honestly have no clue what PyDev is or if there's a way to even just reinstall it and fix the issue.

Return _resolve_listing(drive, iter(parts))įile "c:\Users\Lucas\.vscode\extensions\ms-python.python-2040558\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydevd_file_utils.py", line 184, in _resolve_listingĭir_contents = cache = os.listdir(resolved)įileNotFoundError: The system cannot find the path specified: ''ĭuring handling of the above exception, another exception occurred:įile "c:\Users\Lucas\.vscode\extensions\ms-python.python-2040558\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydevd_file_utils.py", line 226, in _get_path_with_real_case (please create a ticket in the tracker to address this).įile "c:\Users\Lucas\.vscode\extensions\ms-python.python-2040558\pythonFiles\lib\python\debugpy\_vendored\pydevd\pydevd_file_utils.py", line 221, in _get_path_with_real_case Pydev debugger: critical: unable to get real case for file. Here is the error text, and I apologize for dumping so much code but I don't know if any of this is significant: 'c:\Users\Lucas\.vscode\extensions\ms-python.python-2040558\pythonFiles\lib\python\debugpy\launcher' '51717' '-' 'bot/bot.py' It doesn't do this when running the program normally, and debugging seems to be okay in other projects.Ībout 50% of the time, it'll end up connecting to Discord despite the errors and debugging works normally, but other times the program will hang and refuse to connect to Discord. Out of nowhere my Debug configuration in this VSCode project, a Discord bot, has been spitting out errors when I begin debugging.
#VISUAL STUDIO CODE PYTHON ERRORSNOT GOING AWAY WINDOWS#
If you don't have environment variable setup, and you type 'python' in VSCode terminal, it'll point to C:\Users\YourName\AppData\Local\Microsoft\WindowsApps\python.exe, which just opens up python link in Windows AppStore 🙄.I'm gonna be honest, I have no clue what I'm looking at here.
#VISUAL STUDIO CODE PYTHON ERRORSNOT GOING AWAY WINDOWS 10#
So in Windows 10 when you type "python" in CMD Line, it should be the same version as VSCode terminal.įor sanity purposes you should make sure that both "Python: Select Interpreter" and the system environment variables point to the same version of Python.īonus goodie in Windows 10. Terminal in VSCode in general pertains to your default terminal I think. a pip that belongs to Python 3.8, or a pip that belongs to Python 3.9. This will also affect which pip you use, i.e. Just make sure you change Environment variables C:\Users\YourName\AppData\Local\Programs\Python\Python# and C:\Users\YourName\AppData\Local\Programs\Python\Python#\Scripts accordingly. In Windows 10 you can choose to have several Python versions, usually under C:\Users\YourName\AppData\Local\Programs\Python\Python#. Path that is used when you type "python" in the terminal, and this is in "Environment Variables" in Windows 10 (Similar locations under Linux and Mac).This path can be set under CTRL+SHIFT+P Python: Select Interpreter.

Path that is used when you the python code using green play button up in the top right corner.I don't know how it works internally, but adding this line into Code-Runner extension setting.json file fixed it: "": /env/bin/python3.6"ĭetailed instructions can be found in the documentation "Manually specify an interpreter", including using environment variables as the interpreter's path. And I guess that is the way you are launching your programs. (Try update#1 first) Looking at your screenshots I see you are using Code Runner extension.
#VISUAL STUDIO CODE PYTHON ERRORSNOT GOING AWAY UPDATE#
First, read the update #1 part in the bottom
