python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

Unnecessary Semicolon warning (no semicolon in file)

Open phedlund113 opened this issue 3 years ago • 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 avatar Mar 03 '21 17:03 phedlund113

@phedlund113 Which language server are you using?

karthiknadig avatar Mar 03 '21 18:03 karthiknadig

If i understand your question I am using the Python language server.


From: Karthik Nadig [email protected] Sent: Wednesday, March 3, 2021 6:15 PM To: microsoft/vscode-python [email protected] Cc: phedlund113 [email protected]; Mention [email protected] Subject: Re: [microsoft/vscode-python] Unnecessary Semicolon warning (no semicolon in file) (#15543)

@phedlund113https://github.com/phedlund113 Which language server are you using?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-python/issues/15543#issuecomment-789948955, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAW7DAMFYWF42XMK5MS3IPLTBZ4CJANCNFSM4YRUYSZA.

phedlund113 avatar Mar 03 '21 18:03 phedlund113

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 avatar Mar 03 '21 18:03 karthiknadig

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

karthiknadig avatar Mar 03 '21 18:03 karthiknadig