Skip to content
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 #2032

Closed
jthomasmock opened this issue Nov 4, 2024 · 4 comments
Closed

Comments

@jthomasmock
Copy link

jthomasmock commented Nov 4, 2024

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
@PeterJCLaw
Copy link
Collaborator

Are you sure this is a Jedi issue rather than an issue with the Language Server implementation? Jedi is just the parsing/suggestions library and doesn't (as far as I know) handle any of the UI stuff, including handling once a given suggestion has been chosen by the user.

@jthomasmock
Copy link
Author

That is possible, but I couldn't reproduce the issue with Pylance as I don't believe it has file auto-completion out of the box?

@davidhalter
Copy link
Owner

davidhalter commented Nov 5, 2024

Can you please file this against https://github.com/pappasam/jedi-language-server? It's kind of hard to help you here. Not sure why this happens, but it doesn't feel like a Jedi issue. It might as well simply be an issue around the language-server/jedi interaction.

If you can recreate this with your code and a jedi.Script("<your code>).complete(line, column), then it's obviously a Jedi bug. It feels like this kind of behavior isn't something I have seen before (while using Jedi).

@jthomasmock
Copy link
Author

I will close this in favor of pappasam/jedi-language-server#325 unless it's determined to be in Jedi proper.

My apologies for the churn on this repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants