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

[Bug] An error will be thrown when the initial line of the file is a Chinese comment(SyntaxError: Non-ASCII character '\xe7') #1140

Open
zhchen6688 opened this issue May 21, 2024 · 2 comments

Comments

@zhchen6688
Copy link

  • VS Code Version: Version: 1.89.1 (Universal)
  • OS Version: 13.3 (22E252)
  • Code Runner Version: Code Runner v0.12.2

Describe the bug
Description of what the bug is.
An error will be thrown when the initial line of the file is a Chinese comment in run code model.

To Reproduce
Steps to reproduce the behavior:

  1. create a python (a.py)file and inputs some chinese commens using """ """ style
  2. click vscode run button

Actual behavior
xxx line 2
SyntaxError: Non-ASCII character '\xe7' in file a.py

Expected behavior
Description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

@zhchen6688
Copy link
Author

  1. The error will disappear when you disable Code Runner plugin.
  2. If you do not use the RUN CODE function, you will not get an error.

@zhchen6688
Copy link
Author

Python version is 3.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant