Skip to content
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

Invalid character "\u21" in token #8055

Closed
sbatten opened this issue Oct 26, 2021 · 4 comments
Closed

Invalid character "\u21" in token #8055

sbatten opened this issue Oct 26, 2021 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-intellisense Intellisense & other language features in notebook cells for any language upstream-pylance Blocked on upstream Pylance

Comments

@sbatten
Copy link
Member

sbatten commented Oct 26, 2021

Testing #8024

image

Firstly, I don't expect the error since this cell runs. Secondly, the character is cryptic.

@rchiodo
Copy link
Contributor

rchiodo commented Oct 26, 2021

This is a known issue. Pylance doesn't understand notebook syntax:

Dupe of #1497

The workaround is to prefix the line with a comment

@rchiodo
Copy link
Contributor

rchiodo commented Oct 26, 2021

That doesn't seem to work though.

@rchiodo rchiodo added the notebook-intellisense Intellisense & other language features in notebook cells for any language label Oct 26, 2021
@rchiodo rchiodo removed their assignment Oct 26, 2021
@greazer greazer added bug Issue identified by VS Code Team member as probable bug and removed needs-triage labels Oct 28, 2021
@greazer greazer added this to the November 2021 milestone Oct 28, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Nov 10, 2021

Moving this out of November. This would have to be handled by pylance as the file is a python file.

@rchiodo rchiodo removed this from the November 2021 milestone Nov 10, 2021
@rchiodo rchiodo added the upstream-pylance Blocked on upstream Pylance label Nov 10, 2021
@IanMatthewHuff
Copy link
Member

Dupe of #5800 for pylance needed to recognize ipython syntax in files.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
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 notebook-intellisense Intellisense & other language features in notebook cells for any language upstream-pylance Blocked on upstream Pylance
Projects
None yet
Development

No branches or pull requests

4 participants