-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'replace' of undefined when starting LS on Arch #3693
Comments
@jakebailey |
What is this exception you are referring to that gets thrown? I have a suspicion what you mean by |
Can you confirm you are able to debug a simple python file.
Let me know if this works. Also, are there any other errors in the console window. |
Yes, I have source maps enabled. I pasted the stack trace given in the dev tools console in my issue above. There is no output in the "output" panel for Python, no warnings, no "starting language server" message. I can run the script I have open using the "start debugging" and it will execute (and breakpoint when I throw something). This is what I see in the bottom bar: |
What's the error message you referred to? |
I'm really confused as to what you're asking me for that's different than what I provided. The stack trace I am describing is in my original issue. This is not some sort of big pop up from the editor. Pasted again:
I can run my script by clicking the "play" button just fine, which tells me that an exception gets thrown when trying to start the LS, the future that indicates that the LS has started doesn't complete, and the "extension loading" message doesn't disappear. |
Got it, thanks. |
I'm seeing the same thing, commenting to clarify that this only happens when Jedi is disabled, i.e., when using Microsoft Python Language server. (sorry for the noise if "LS" means the Microsoft language server by default) My OS is Linux Mint 19 otherwise same version info, this doesn't seem to depend on Python version (affects multiple 3.x environments with or without virtualenvs) |
I can confirm. Same thing is happening on KDE neon. Exact same error. I also deleted .config/Code and vscode/extensions folder to no avail. |
Environment data
Expected behavior
Python extension loads with the language server running.
Actual behavior
The extension never finishes loading ("Python extension loading..." forever), and instead throws an exception from the code added in 66f8a27.
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Nothing is output.
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)With the source map enabled:
The text was updated successfully, but these errors were encountered: