-
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
Autocompletion doesn't work with vscode intellisense in pipenv
environment.
#673
Comments
@its-Kumar, would you please post the code snippet that is having the problem? Also, if you can include the logs from the "Pylance Language Server", that would also be helpful |
To clarify, we'd want logs in trace mode. The issue template asks for this, but the instructions are mirrored here: https://github.com/microsoft/pylance-release/blob/master/TROUBLESHOOTING.md#filing-an-issue |
This issue has been open for > 30 days with the waiting for info label. Because we haven't heard from you, I'm going to close this issue for now. If this still persists, please let us know and we can reopen the issue. |
Same for me. |
I'm experiencing the same issue: I use Pipenv in a Django project and, with Pylance enabled, intellisense finds "No suggestions" when I As requested I've brought some TRACE level logs:
Those last two lines are what get added to log output when I hit What's strange to me is that intellisense won't suggest things to import, but as I type I get suggestions to autocomplete: Screen.Recording.2021-04-21.at.8.25.25.PM.movHere's TRACE level logs that output as I typed
And if it helps here's my project's .vscode/setings.json: {
"python.pythonPath": "~/.local/share/virtualenvs/backend-LMrfrEz3/bin/python",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.enabled": true,
"python.languageServer": "Pylance",
"python.analysis.extraPaths": [
"~/.local/share/virtualenvs/backend-LMrfrEz3/lib/python3.9/site-packages"
]
} |
@savannahostrowski reopen this issue |
I looked into this issue in more detail. The problem has nothing to do with pipenv. It's specific to a "from x import y, " statement when there is a hanging comma at the end and the insertion point is after that comma. I've added a fix for this particular case. This fix will be in the next release. |
@erictraut thanks for clarify. I'm closing this issue 👍🏼 |
Leaving open until the fix is released. |
This issue has been fixed in version 2021.4.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202143-29-april-2021 |
I am using pylance extension and pylance language server. But when I work with a django project in a pipenv environment. The auto completion doesn't work for me. I have changed language server back to the Microsoft and auto completion is working now with vscode intellisense extention.
But why pylance language server did not work with vscode intellisense?
Logs
The text was updated successfully, but these errors were encountered: