-
Notifications
You must be signed in to change notification settings - Fork 768
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
Code analysis and completion don't work in devcontainers #4547
Comments
Thanks for the issue. The root cause of the problem is this setting here: "python.analysis.enableSyncServer": true, Did you set that yourself? That's an experimental way to run Pylance that isn't ready to be used yet. In 2023.6.30 it would cause completions to not work. |
I set it myself because I was having trouble with a previous version inside the devcontainer and this setting fixed it. I will try to disable it to see if it works for the latest one. Thanks! |
The problem is still there without the setting. Could you please reopen the issue @rchiodo? |
I could actually make it work by closing and reopening VSCode after build the devcontainer, so maybe the language server is not being started on postAttach. |
If you look in the log and this line says the same thing:
With the important part being the 4.17.21, then the setting is still there. |
Environment data
Code Snippet
devcontainer.json:
Repro Steps
Expected behavior
Code completion options should appear.
Actual behavior
"No suggestions." message is displayed.
Logs don't contain traces, even with "python.analysis.logLevel": "Trace".
I have no issues when working locally with the latest version. Previous versions work as expected.
Logs
The text was updated successfully, but these errors were encountered: