Skip to content

Incorrect incompatible architecture warning with multiple architectures values #208

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
per1234 opened this issue Jan 28, 2017 · 1 comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Jan 28, 2017

Using Arduino IDE 1.8.2 Hourly Build 2017/01/25 04:33 with Windows 7 64 bit

When there are multiple architectures values in library.properties the incompatible architecture warning is incorrectly generated.

Steps to reproduce:

  1. Install the Arduino Scheduler library (can be done via Library Manager).
  2. Open the MultipleBlinks example file included with the Scheduler library
  3. Compile for an AVR board. The architecture warning shown is:
WARNING: library Scheduler claims to run on [sam architecture(s) and may be incompatible with your current board which runs on samd] architecture(s).

The correct warning would be something like:

WARNING: library Scheduler claims to run on [sam,samd] architecture(s) and may be incompatible with your current board which runs on [avr] architecture.
@facchinm
Copy link
Member

The machine output is ok here, the broken part seems to be the square brackets interpretation
WARNING: library {0} claims to run on {1} architecture(s) and may be incompatible with your current board which runs on {2} architecture(s). ||| [Scheduler [sam samd] [i586]]
In fact the java part misinterprets the closing bracket (part of the variable string) as the full closing bracket.
A workaround could be something like facchinm@019d602 but it's a super dirty hack. @cmaglie should we move the "square to round brackets" routine into FromJavaToGoSyntax function or solve it Java-side?

@rsora rsora added type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project labels Sep 22, 2021
@per1234 per1234 added conclusion: resolved Issue was resolved topic: code Related to content of the project itself and removed type: enhancement Proposed improvement labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved 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

3 participants