-
Notifications
You must be signed in to change notification settings - Fork 765
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
No autocompletion for single-file mode starting from Pyright version 1.1.378 #6348
Comments
The auto-completion functionality in pyright is generally owned and maintained by the pylance team. Could someone from the pylance team please transfer this issue and investigate & triage as you see fit? Thanks! |
Hover doesn't work either for a single file. |
Problem doesn't repro in Pylance though. |
let me take a look |
It looks like the default workspace is recreated for some reason. So it loses the sourceFileInfo in the original default workspace and subsequent requests don't find any source files. |
It's a difference in |
are you fixing it? |
I am sending PR to pyright directly. |
I could, I was in the middle of debugging it to make sure it wasn't affecting Pylance. But if you have a PR ready, feel free to submit. |
Describe the bug
Autocomplete no longer works with single-file mode starting from pyright version
1.1.378
Steps to reproduce
test.py
pyright
in single file mode.I've included full LSP debug logs for single-file mode and normal mode:
Both of these logs are generated after launching pyright in two different modes on an empty python file
test.py
. In both instances, pyright was launched by the Neovim LSP Client.Downgrading pyright to version
1.1.377
fixes the issue.The text was updated successfully, but these errors were encountered: