-
-
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
PR: Restore code cells and block comments in the Outline pane and fix other issues #13885
Conversation
pyls-spyder feedstock PR on conda-forge: conda-forge/staged-recipes#12758 |
Hello @andfoy! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-10-31 21:39:17 UTC |
@jnsebgosselin, does this fixes the navigation issues? |
I think you have not pushed the commits do do that yet? |
You're totally right! |
Since we are separating variables from attributes, I don't know if we want to hide attributes as well |
@jnsebgosselin the commits are now in the branch |
If this is possible, I would vote to hide the attributes as well. I think that for writing scripts, showing the variables and attributes can be very useful. However, when writing object oriented code, this add a lot of clutter to the explorer that is not that much useful. But maybe that's just me. Edit: However, I think that disabling the auto-expand items to follow cursor will make this less of an issue and will not be that much of a problem for me after all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @andfoy for this! I left a (mostly cosmetic) review for you.
I still have to review how this one works locally.
In the previous version, the outline explorer is reflecting the position of the cursor in the editor down to the innermost visible element in the tree, without expanding anything. Currently however, the outline explorer is not updated at all when the position of the cursor changes and |
@jnsebgosselin, does the latest commit improves the navigation experience when not navigating to the innermost element? |
subrepo: subdir: "external-deps/python-language-server" merged: "1425f75b5" upstream: origin: "https://github.com/palantir/python-language-server.git" branch: "develop" commit: "1425f75b5" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
This avoids introducing new, unnecessary options for the LSP
Also remove unnecessary imports and variables
Also fix the "Display variables" option
…ptions This way we can be sure that the tree is rebuilt after changing them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @andfoy for creating pyls-spyder
and your awesome work here to complete the migration of the Outline to use the LSP architecture.
@spyder-ide/core-developers, @goanpeca, this PR added a new dependency to Spyder:
@jnsebgosselin, please test the Outline next week with these changes to see if you can spot other regressions. Thanks for your help! |
I will do, thanks for the work that was done on this. |
I cannot see code cells and block comments in the outline explorer even after this PR. Should I open an issue about it or you already know? I haven't installed |
Did you install |
I cloned the repo and added it to my PYTHONPATH and I'm running it from source. |
mmmh I think spyder doesn't see plugins anymore if I add them like that. It used to work though, since that is how I have always installed |
Sorry but that's a Setuptools plugin (not a Spyder one), so it needs to be properly installed. Or at least you need to run |
Ok I understand. I will install it from conda and see if that works. Is it the same reason why it is also happening with spyder-notebook too ? I can't simply run it from the git repo anymore? |
Ok I confirm that it is working if I install |
On my computer, spyder will find the spyder-notebook plugin if the plugin is in PYTHONPATH; you don't need to |
As a general note, |
Ok thank you very much for taking the time to answer.
I should start doing that, I agree, thanks for the tip. But you know how it is... It all looks good on paper until it screw your python installation and you have to reinstall everything and I just don't have time for that at the moment so I'm not risking it lol. |
Yeah...if it works as is then yeah. In the future though manual PYTHON hacking and particularly |
Description of Changes
This PR introduces pyls-spyder as a dependency in order to restore code cells and block comments on the outline explorer. It also fixes some minor UI details such as idle spinners on files that do not have outline support and adding an option to hide variable symbols.
Code cells and block comments
Hide/display variable symbols
Issue(s) Resolved
Fixes #13896
Fixes #13877
Fixes #13872
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct: @andfoy