-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
PR: Introduce completions correctly for autocompletion characters and improve file completions (Editor) #20350
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
Conversation
c60cbbb
to
eda83d9
Compare
@mrclary, the conda-based installer for Mac is failing (I don't understand why). Could you check that? Thanks! |
It looks like the |
Great! Thanks a lot for your help with that 👍🏽 |
a8fefdf
to
81a5417
Compare
@ccordoba12, looks like work I already had in the pipeline (PR #20319) will fix the failing conda-based installers. |
81a5417
to
b2e345b
Compare
Ok, great news! I'll review it right away so we can include it in 5.4.2 then. |
052c352
to
3306dd7
Compare
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 @ccordoba12 ! Checking this locally the only thing I manage to see that I'm not totally sure if it is correct is that the dot completion for filenames gives back the filename again instead of the extension for filename completions:
Also, I left a suggestion in a comment for a typo and as we discussed, this needs a rebase to get the fixes done to the conda-based installers workflows
3306dd7
to
3fcb31c
Compare
Good catch @dalthviz! I fixed that use case in my last commit and added a test for it. |
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.
25fe9b0
to
c1d6fea
Compare
@mrclary, I don't understand why the conda-based installers started to fail again. Could you take a look at that? |
So, the real issue is that I should be using |
@ccordoba12 #20376 should resolve the failing conda-installers |
Actually, that resolved the initial patch issue when building Spyder. But now I see a package conflict error when building the installer... |
Nevermind, I was normalizing the version, which apparently is not good. |
Also, expand test to check that an entry selected in the completion widget when it's shown after a dot is introduced as expected.
- This correctly introduces completions for files that start with a dot and when completions are requested at the beginning of a string. - Expand tests to cover those cases.
c1d6fea
to
8b95b0f
Compare
- This eases writing Windows paths. - Add tests for this and also to check that we can correctly insert escaped quotes.
1815133
to
c295841
Compare
…rver.git --branch=improve-file-completions --update --force external-deps/python-lsp-server subrepo: subdir: "external-deps/python-lsp-server" merged: "dbf75cf19" upstream: origin: "https://github.com/ccordoba12/python-lsp-server.git" branch: "improve-file-completions" commit: "dbf75cf19" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596"
5900d31
to
c1c962e
Compare
c1c962e
to
814cbbb
Compare
…rver.git --branch=develop --update --force external-deps/python-lsp-server subrepo: subdir: "external-deps/python-lsp-server" merged: "11b54415d" upstream: origin: "https://github.com/python-lsp/python-lsp-server.git" branch: "develop" commit: "11b54415d" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596"
@dalthviz, this is ready for another review. I fixed the last problem you reported, also fixed several issues with file completions next to path separators (i.e. |
@ccordoba12 checked again and the last issue is fixed 👍, however, with further testing, there is still a strange behavior for the completion of files names: |
Yeah, I found that too while testing but there's no easy solution for it. The thing is we select the word under the cursor (using Qt) and send it to pylsp for completions. But in this case:
the selected word is To solve this, we should override Qt and extend the search for current words to go up to |
Buenas tardes, qusiera que spyder proporcione detalles de los metodos al colocar el cursor encima del objeto, como lo hace VSC, antes se podía instalar kite, pero ahora no está disponible, hay algún sustituto?, gracias, saludos |
Description of Changes
Tab
in a empty string ("<Tab>"
) and Jedi will provide file completions in that case. The problem was the selected entry was not placed correctly in the editor either.os.sep
).Issue(s) Resolved
Fixes #20331
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: