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

MissingUriError: View 258 has no URI #376

Open
giampaolo opened this issue Dec 20, 2024 · 1 comment
Open

MissingUriError: View 258 has no URI #376

giampaolo opened this issue Dec 20, 2024 · 1 comment

Comments

@giampaolo
Copy link

It happens rarely and unfortunately I have no idea how to reproduce it. FWIW, here goes:

[LSP-pyright][DEBUG] Due to "dev_environment", new "analysis.extraPaths" is (operation = 'prepend'): ['/opt/sublime_text/Lib/python38', '/opt/sublime_text/Lib/python3', '/home/giampaolo/.config/sublime-text/Lib/python38', '/opt/sublime_text/Packages', '/home/giampaolo/.config/sublime-text/Packages']
Traceback (most recent call last):
  File "/home/giampaolo/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/core/types.py", line 131, in run
    f()
  File "/home/giampaolo/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/documents.py", line 429, in _on_selection_modified_debounced_async
    self._do_highlights_async()
  File "/home/giampaolo/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/documents.py", line 857, in _do_highlights_async
    params = cast(DocumentHighlightParams, text_document_position_params(self.view, point))
  File "/home/giampaolo/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/core/views.py", line 271, in text_document_position_params
    return {"textDocument": text_document_identifier(view), "position": position(view, location)}
  File "/home/giampaolo/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/core/views.py", line 228, in text_document_identifier
    uri = uri_from_view(view_or_uri)
  File "/home/giampaolo/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/core/views.py", line 221, in uri_from_view
    raise MissingUriError(view.id())
LSP.plugin.core.views.MissingUriError: View 258 has no URI
@jfcherng
Copy link
Collaborator

I doubt that this is a LSP-pyright issue.

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

No branches or pull requests

2 participants