Unnecessary Semicolon warning (no semicolon in file)
phedlund113 opened this issue · 4 comments
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
@phedlund113 Which language server are you using?
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.
Meanwhile, I will transfer this issue over to the Microsoft Python Language Server.