-
Notifications
You must be signed in to change notification settings - Fork 45
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
Autocorrect bug when completing files names in Code OSS-based IDEs #325
Comments
@pappasam Do you know of similar behavior? I haven't seen this or similar issues in the Jedi issue tracker (and there must be an insane amount of people using it). |
I have never seen this in neovim, possibly this is an editor bug all along. Someone would have to get trace of the lsp messages to decide. Aside: I see quite a few bugs being punted around vscode and this repository and similar; often - as here - without anyone providing any evidence for where it actually belongs. Perhaps editors could be encouraged to make it easier to get useful diagnostics. While I'm here: I actually wish jedi didn't provide filename completions at all, it seems quite out of scope for a python-analysis tool - and per #270 it's a bit too keen. |
@dimbleby yeah, it seems like a simple solution here might be for us to simply filter out path completions coming from Jedi? See: https://jedi.readthedocs.io/en/latest/docs/api-classes.html#jedi.api.classes.BaseName.type |
Thanks for the discussion so far! I'm not seeing anything useful in the VS Code output for Python Language Server. For what it's worth, I don't believe Code OSS or VS Code w/ Pylance have built-in filename completions, but some extensions can add it so that could be a suggestion if y'all do allow disabling file completions? |
The issue here might be connected to
I was able to reproduce it in VSCode. It happens only after a dot in a string (i.e completing
|
Should be resolved in the latest release: https://github.com/pappasam/jedi-language-server/releases/tag/v0.42.0 |
When using Jedi as the Language Server in Code OSS-based IDEs or in VS Code, auto-complete of file names at the
.
is incorrect.The text is auto-completed at the
.
instead of replacing the prior text.Thank you for your time in reviewing this issue.
As an example, see the video below in VS Code with Jedi as the Language Server:
Screen.Cast.2024-11-04.at.4.10.39.PM.mp4
moved over from: davidhalter/jedi#2032
The text was updated successfully, but these errors were encountered: