microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
912 stars 131 forks source link

Unnecessary Semicolon warning (no semicolon in file) #2144

Open phedlund113 opened 3 years ago

phedlund113 commented 3 years ago

Environment data

[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 commented 3 years ago

@phedlund113 Which language server are you using?

phedlund113 commented 3 years ago

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


From: Karthik Nadig notifications@github.com Sent: Wednesday, March 3, 2021 6:15 PM To: microsoft/vscode-python vscode-python@noreply.github.com Cc: phedlund113 p_hedlund@hotmail.com; Mention mention@noreply.github.com 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.

karthiknadig commented 3 years ago

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 commented 3 years ago

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