Closed pappasam closed 11 months ago
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, then self._root_path is never set. This, in turn, raises an AttributeError when self.root_path is called: https://github.com/openlawlibrary/pygls/blob/571fd1c569603475475883c118b56ba4680ca023/pygls/workspace/workspace.py#L222
if self._root_uri is None
self._root_path
AttributeError
self.root_path
Related issue: https://github.com/pappasam/jedi-language-server/issues/287
I also noticed this and was preparing a fix
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!
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: https://github.com/openlawlibrary/pygls/blob/571fd1c569603475475883c118b56ba4680ca023/pygls/workspace/workspace.py#L222Related issue: https://github.com/pappasam/jedi-language-server/issues/287