Skip to content

Some hidden characters cause the CLI compilation to fail, and also breaks the language-server #99

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
kittaakos opened this issue Sep 2, 2020 · 2 comments
Assignees
Labels
conclusion: declined Will not be worked on criticality: low Of low impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

Describe the bug

Try to compile the attached sketch, it fails:

arduino-cli compile -b arduino:avr:nano ./mysketch
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:11:1: error: stray '\342' in program
 ???
 ^
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:11:2: error: stray '\200' in program
 ???
  ^
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:11:3: error: stray '\213' in program
 ??
   ^
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:13:1: error: stray '\342' in program
 ???
 ^
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:13:2: error: stray '\200' in program
 ???
  ^
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:13:3: error: stray '\213' in program
 ??
   ^
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:28:1: error: stray '\342' in program
 ???
 ^
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:28:2: error: stray '\200' in program
 ???
  ^
/Users/akos.kitta/Desktop/mysketch/mysketch.ino:28:3: error: stray '\213' in program
 ??
   ^
Error during build: exit status 1

It also breaks the language server:

Screen Shot 2020-09-02 at 12 20 37

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

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

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@kittaakos kittaakos self-assigned this Sep 2, 2020
@per1234
Copy link
Contributor

per1234 commented Feb 17, 2021

@kittaakos do you have any ideas for how this experience could be improved?

This is a common issue, which I have never considered addressing via the tooling, but it's interesting to think about.

Certainly a nice troubleshooting guide that identifies the cause and easiest fix for this class of error would be well worth creating though.

@rsora rsora transferred this issue from arduino/arduino-pro-ide Mar 1, 2021
@rsora rsora added the priority: low Resolution is a low priority label Mar 1, 2021
@kittaakos kittaakos removed their assignment Jul 18, 2021
@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Nov 1, 2021
@rsora rsora added criticality: low Of low impact and removed priority: low Resolution is a low priority labels Nov 2, 2021
@kittaakos
Copy link
Contributor Author

If this is the expected behavior from the CLI, there is not much the IDE2 can do. Upstream ref: arduino/arduino-cli#1808

Closing as won't fix.

@per1234 per1234 added the conclusion: declined Will not be worked on label Jul 26, 2022
@per1234 per1234 self-assigned this Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: declined Will not be worked on criticality: low Of low impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants