-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Selector for classes and functions not working when file is part of a project #15648
Comments
Hi @yves-surrel, Can you please update to the latest version of Spyder 5.0.2 via conda-forge or one of our installers and see if the error is still happening? Also, can you recall when was the previous version where this wasn't an issue? |
Hi Stephannie If I manually add an entry in the PYTHONPATH manager, the problem arises, but not always. In my case, although I do not know if it is a general rule, adding the parent or grandparent directory of the open file rises the problem. I checked that the |
In spyder/plugins/completion/providers/languageserver/providers/workspace.py, I made the following change:
that removes what is added by changing the PYTHONPATH manually. This fixes the problem when adding a path manually in the PYTHONPATH manager, however there is still the problem when creating a project (in all my trials, my test file is within the created project). |
The thing broke between spyder versions 4.1.5 and 4.2.0 Output of conda install spyder=4.2.0
|
Hey @yves-surrel, thanks a lot for digging into this! That's really helpful. This information will allow us to better debug and finally solve this problem. |
Feel free to ask for any other test ;-) |
@yves-surrel, the OP issue may already be resolved; I cannot reproduce from bootstrap using the latest commit (d22f459). However, there are a couple of visible issues unrelated to the OP:
|
Still not working in Spyder 5.0.5 |
We're working to fix this problem in our next version (5.1.0), to be released at the end of the month. |
Spyder 5.0, MacOs 11.2.1
Problem Description
The selector for classes and functions dropdown remain empty when the file is part of a project
What steps reproduce the problem?
I create a new issue since #13131 has been closed, and my title is more descriptive.
The text was updated successfully, but these errors were encountered: