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

Duplicated Suggestion in Python #3693

Closed
NelloHo opened this issue Nov 24, 2022 · 4 comments
Closed

Duplicated Suggestion in Python #3693

NelloHo opened this issue Nov 24, 2022 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@NelloHo
Copy link

NelloHo commented Nov 24, 2022

Does this issue occur when all extensions are disabled?: No , offiocial Python package needed

  • VS Code Version: 1.73.1 (system stetup)
  • OS Version: Win 10

Steps to Reproduce:

  1. start a clean VS code without any settings and packages
  2. install Microsoft's official Python package
  3. it will show duplicated suggestions in Jupyter Notebook
    image
@NelloHo
Copy link
Author

NelloHo commented Nov 24, 2022

there's probably a hint for finding the bug :

  1. open Jupyter Notebook
  2. disable Pylance
  3. restart VS code
  4. enable Pylance again.

the duplicated suggestions disappear

@vabc3
Copy link

vabc3 commented Nov 29, 2022

Can repro with setting "python.analysis.typeCheckingMode": "basic",

@chrmarti chrmarti removed their assignment Nov 29, 2022
@chrmarti chrmarti transferred this issue from microsoft/vscode Nov 29, 2022
@eleanorjboyd eleanorjboyd transferred this issue from microsoft/vscode-python Nov 29, 2022
@bsaunders23
Copy link

I think this has been addressed in the prerelease #3617

@debonte
Copy link
Contributor

debonte commented Nov 29, 2022

You have two options for this:

  1. Use a recent prerelease build of the Jupyter extension. I believe this requires VS Code Insiders btw because they are using some new APIs that aren't supported in VS Code stable yet.
  2. Set "python.pylanceLspNotebooksEnabled": true. Note that this option has been removed from the Python extension, so it may be grayed out when you enter it into settings.json. That's fine. Older builds of Jupyter will still honor this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants