GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Prevent creating empty .ropeproject with null conf by karimbenbourenane · Pull Request #664 · python-lsp/python-lsp-server ConversationWhen
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
I sketched up a quick example of playground, but I feel like that'd regress us to before #604 (where you wouldn't be able to pass in null?)? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
It's different in that, the default configuration with zed will be |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@ccordoba12 see the case where In #604 the condition passes and the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
We do want to pass in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@osiewicz I've done some digging into this issue and while I can confirm the issue exists here in pylsp, I don't agree with the proposed reason and solution for this issue by @karimbenbourenane. As you mentioned and tested by you, it would probably regress to before #604. I did test it and it seems that when the rope_config is being accessed in _rope_project_builder it doesn't have ropeFolder key at all, only the plugins python-lsp-server/pylsp/workspace.py Line 80 in 89265cd
Tracing it back to where the settings are being updated I found that Config.settings method returns incorrect settings object. python-lsp-server/pylsp/config/config.py Lines 149 to 150 in 89265cd
To confirm this, I've logged the value using this snippet: # LSP configuration log.debug(f"{settings=}") log.debug(f"{self._settings=}") settings = _utils.merge_dicts(settings, self._settings) log.debug(f"{settings=}") giving me the following result: I didn't investigate, as of now, why |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.