Skip to content
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

KeyError in LSP plugin when trying to open Preferences #2399

Closed
samirbajaj opened this issue Jan 24, 2024 · 3 comments · Fixed by #2401
Closed

KeyError in LSP plugin when trying to open Preferences #2399

samirbajaj opened this issue Jan 24, 2024 · 3 comments · Fixed by #2401

Comments

@samirbajaj
Copy link

My ST4 setup: version: 4169 osx arm64 channel: stable

LSP v1.27.0

I see this trace in the console whenever I try to open Settings/Preferences (it opens successfully, but this error worries me):

Unable to open /Users/samir.bajaj/Library/Application Support/Sublime Text/Packages/Default/Preferences.sublime-settings
Traceback (most recent call last):
  File "/Users/samir.bajaj/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/documents.py", line 968, in clear_async
  File "/Users/samir.bajaj/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/session_view.py", line 104, in on_before_remove
  File "/Users/samir.bajaj/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/session_buffer.py", line 203, in remove_session_view
  File "./python3.3/_weakrefset.py", line 109, in remove
KeyError: <weakref at 0x104a93ef8; to 'SessionView' at 0x104a5b7b8>

I originally posted this on the Sublime Forum, but got no responses.

Thank you for your help.

@rchl
Copy link
Member

rchl commented Jan 25, 2024

Can you record a video of you opening the preferences?

Also you can try in safe mode. It doesn't reproduce here.

@samirbajaj
Copy link
Author

Hi @rchl -- thank you for your response.

Here's a video I recorded.

Also, I couldn't reproduce it in safe mode.

Hope this helps!

566509d4-8964-43d1-9d72-9dca1ec14193.mp4

@rchl
Copy link
Member

rchl commented Jan 25, 2024

Thanks. I can reproduce it in safe mode with just LSP and LSP-json installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants