Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Unnecessary Semicolon warning (no semicolon in file) #2144

Open
phedlund113 opened this issue Mar 3, 2021 · 4 comments
Open

Unnecessary Semicolon warning (no semicolon in file) #2144

phedlund113 opened this issue Mar 3, 2021 · 4 comments
Assignees

Comments

@phedlund113
Copy link

Environment data

  • VS Code version: 1.53.2
  • Python extension for Visual Studio Code
  • Extension version (available under the Extensions sidebar): v2021.2.582707922
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.73
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Value of the python.languageServer setting: XXX

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

albet_lc = 'abcdefghijklmnopqrstuvwxyz'
#  albet_uc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

Actual behaviour

albet_lc = 'abcdefghijklmnopqrstuvwxyz'
#  albet_uc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

^ Squiggly under # hover mouse and get Unnecessary Semicolon

Logs

Upon searching the entire file there were NO semicolons found in the file.

Peter Hedlund

@karthiknadig karthiknadig self-assigned this Mar 3, 2021
@karthiknadig
Copy link
Member

@phedlund113 Which language server are you using?

@phedlund113
Copy link
Author

phedlund113 commented Mar 3, 2021 via email

@karthiknadig
Copy link
Member

I recommend switching to pylance as the language server. You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support pylance, we'd encourage you to try it out.

@karthiknadig
Copy link
Member

Meanwhile, I will transfer this issue over to the Microsoft Python Language Server.

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Mar 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants