formulahendry / formulahendry/vscode-code-runner

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

Open
#1,140 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

- 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.