-
-
Notifications
You must be signed in to change notification settings - Fork 435
The output is treated as the source code for correction prompts #1210
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
Comments
Could you please try and modify the advanced settings and let us know if it solved the problem:
{
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false
}
Here is the ref on how it should work: https://code.visualstudio.com/updates/v1_63#_unicode-highlighting |
Thank you so much for trying it and reporting back. I will try to come up with a fix soon. |
@Silver-Fang, could you please share a bare-minimum sketch that I can use to reproduce the problem? Thank you! |
You can simply create a new sketch and Verify/Upload. The problem has nothing to do with the sketch. What you really need is a Chinese locale. Maybe you should try to set your OS to Chinese and then launch the IDE? |
I guess the problem is from the incorrect application of some code checks to the output box. The output text should not be the prey of any code checkers. |
I see, thank you! I set the language in IDE2 to
The output box is the same Monaco Editor you see in the IDE2. I will try to reproduce it. |
I have opened an upstream PR: eclipse-theia/theia#11615. I will look for a temp solution for the time being. |
Closes #1210 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@Silver-Fang, I have a PR with some changes. Can you please help verify whether the proposed changes fix the issue on your side? Here is the PR: #1375 Please let me know if you do not know how GitHub Actions works or cannot download the build artifacts. You have to be logged in with your GH account to see the artifacts. |
Yes, please tell my how to get the binary with your fix. |
Sure, thank you for your support on this.
Notes: |
Closes #1210 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Describe the problem
In non-English IDE installations, non-ASCII punctuation characters, such as Chinese brackets (), often appear in the output box. When these symbols appear in the output box, they will be highlighted by the code analysis tool as source code and judged to be obfuscated symbols. This is ridiculous.
To reproduce
Upload the code on the Chinese version of the IDE, you will see:

Expected behavior
The output should not be prompted for correction as code.
Arduino IDE version
2.0.0-rc8
Operating system
Windows
Operating system version
10.0.19044.1826
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: