-
Notifications
You must be signed in to change notification settings - Fork 92
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
wrong autocorrect when autodetecting file names #5193
Comments
I also observe this problem in Python. That file path completion comes from Jedi upstream; I don't currently see an issue open about this bug. I believe the file path expansion happens here. |
@juliasilge Do you want me to open an issue on the Jedi repo? Or will Positron handle the problem directly? |
@JosephBARBIERDARNAL We will likely want to open up an issue over there, but it would be better to show the bug in a more straightforward usage than Positron, like using Jedi in VS Code (change the setting "Python: Language Server" from default to Jedi) or emacs or similar. I did just confirm I see the same bug in VS Code when using Jedi. No expectation but if you are up for it, that would be most welcome! |
Added an issue + example over in Jedi repo including a screencast of the same behavior in VS Code when using Jedi as the LSP. |
The Jedi LSP folks are planning to remove path completions on their side, so for now, I would probably try an extension for now. I did try the Path Intellisense and Path Autocomplete extensions which seems to resolve the issue when auto-completing at the I would probably lean towards: https://open-vsx.org/extension/christian-kohler/path-intellisense |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@jthomasmock even though path completions were removed from The underlying I suggest we decide whether to remove path completions from our Python language server when we tackle #5345. |
Agreed -- thanks Wasim. I understand the Jedi team's choice to remove the capability, but I think our users will expect path/file completions (and accurate completions!) |
System details:
Positron and OS details:
Positron Version: 2024.08.0 (Universal) build 48
Code - OSS Version: 1.91.0
Commit: ed616b3
Date: 2024-08-19T04:26:51.868Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.6.0
Interpreter details:
Python 3.11.5
Describe the issue:
When the editor suggests a filename, it adds its full name to where my cursor is, instead of replacing what I've already written, which makes it unusable for accepting suggestions.
There are several cases that I've recorded for simplicity's sake, as they're not easy to describe in writing.
Context: I want to open a file called
countries.geojson
, either in thedata/
directory (case 1) or in the root directory (cases 2 and 3).Note: I haven't managed to reproduce it in VS code or in an R environment.
Steps to reproduce the issue:
Expected or desired behavior:
Instead of
data/countries.countries.geojson
, I would like the replacement to bedata/countries.geojson
.The text was updated successfully, but these errors were encountered: