Skip to content

Pylance | syntax error near unexpected token `&' #16224

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

Closed
kwhjvdkamp opened this issue May 12, 2021 · 4 comments
Closed

Pylance | syntax error near unexpected token `&' #16224

kwhjvdkamp opened this issue May 12, 2021 · 4 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@kwhjvdkamp
Copy link

kwhjvdkamp commented May 12, 2021

@karthiknadig, my apologies. I'm very surprised! I do not know what happened, with al respect, I was under the assumption I pasted in necessary information

Problem! After acceptation latest Pylance yesterday it suddenly seems not possible anymore to use the little green triangle button pointing to the right, positioned at the top right of the IDE Python. On al terminals I ran into this issue: syntax error near unexpected token `&', where as execution a script at it sub level with command for example with bash $ python the script executes. It does matter is I change the default terminal to PS or Cmd.

@karthiknadig, my apologies. I'm very surprised! I do not know what happened, with al respect, I was under the assumption I pasted in necessary information
Version: 1.56.1 (user setup)
Commit: e713fe9b05fc24facbec8f34fb1017133858842b
Date: 2021-05-06T10:08:05.141Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Windows_NT x64 10.0.19042
python.languageServer: 2021.5.1

@kwhjvdkamp kwhjvdkamp added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels May 12, 2021
@karthiknadig
Copy link
Member

You can use Jedi or JediLSP if pylance is not working for you. Thanks for the bug report, but unfortunately we need some more information from you in order to triage this issue appropriately. Please create a new bug by providing a filled-in copy of our issue template.

@karthiknadig karthiknadig removed the triage-needed Needs assignment to the proper sub-team label May 12, 2021
@kwhjvdkamp
Copy link
Author

@karthiknadig, my apologies. I'm very surprised! I do not know what happened, with al respect, I was under the assumption I pasted in necessary information

@kwhjvdkamp kwhjvdkamp changed the title Pylance Pylance | syntax error near unexpected token `&' May 12, 2021
@karthiknadig
Copy link
Member

@kwhjvdkamp I see. This is unrelated to pylance, it is an issue with VS Code itself. They recently updated terminal settings, and this seems to be causing issues with terminal detection. In the extension we are not able to determine the right terminal shell being used so the commands we send to the terminal end up being wrong.

Duplicate of #16175

@kwhjvdkamp
Copy link
Author

kwhjvdkamp commented May 12, 2021 via email

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants