-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Bug: Workspace._root_path attribute not set if if self._root_uri is None #395
Comments
perrinjerome
added a commit
to perrinjerome/pygls
that referenced
this issue
Oct 6, 2023
6 tasks
I also noticed this and was preparing a fix |
tombh
pushed a commit
that referenced
this issue
Oct 6, 2023
tombh
added a commit
that referenced
this issue
Oct 6, 2023
Quick release to get a fix for #395 public
Merged
tombh
added a commit
that referenced
this issue
Oct 6, 2023
Quick release to get a fix for #395 public
tombh
added a commit
that referenced
this issue
Oct 6, 2023
Quick release to get a fix for #395 public
tombh
added a commit
that referenced
this issue
Oct 6, 2023
Quick release to get a fix for #395 public
Thanks for the report @pappasam and thanks for the fix @perrinjerome I just published a release with this fix in v1.1.1 |
Really appreciate the quick fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe this is incorrect behavior. Relevant code:
https://github.com/openlawlibrary/pygls/blob/571fd1c569603475475883c118b56ba4680ca023/pygls/workspace/workspace.py#L49C1-L49C1
if self._root_uri is None
, thenself._root_path
is never set. This, in turn, raises anAttributeError
whenself.root_path
is called:pygls/pygls/workspace/workspace.py
Line 222 in 571fd1c
Related issue: pappasam/jedi-language-server#287
The text was updated successfully, but these errors were encountered: