-
Notifications
You must be signed in to change notification settings - Fork 505
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
the editor could not be opened due to an unexpected error: cannot read properties of null (reading 'create') #5133
Comments
We don't have great debug state syncing between the extension terminal and LSP just yet (it's a work in progress PR). Without more info to debug, I can only suggest using the VS Code debugger UI to set breakpoints and debug whatever you're trying to. |
This issue has been labeled as resolved, please verify the provided fix (or other reason). |
I reverted to the previous version of the Powershell extension and it has not happened since. |
This issue has been labeled as resolved, please verify the provided fix (or other reason). |
I can confirm, that i face the issue with the VSCode debugger and breakpoints as well. If you want to Step-Into a function, vscode falls into the described issue in that post. I also can confirm the resolution of @Rom265 : Switch back from Version 2025.0.0 to 2024.4.0 |
This issue has been labeled as resolved, please verify the provided fix (or other reason). |
@LKo-exp4 is it specific to wait debugger or are you using a launch configuration? Can you record a reproduction? In Windows 11 you can hit win-shift-R to get native recording and it's pasteable directly into github. |
I confirmed that I have no issue using |
Prerequisites
Summary
I try to run a script with
(where & MyCommand stands in for some command), a tab opens in VS Code with a red circle with an X. It says, "the editor could not be opened due to an unexpected error: cannot read properties of null (reading 'create')" with a "Try Again" button.
I have seen this a few times recently. If I close and reopen VS Code (a frequent fix for when it bugs out), it still keeps doing that.
It looks like an error from VS Code, but it happens when I'm trying to run the debugger with Powershell; so, it probably makes most sense to post this here first.
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
write command. Hit enter.
The call stack shows paused on step:
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: