Skip to content

ARDUINO macro has lower version number than Arduino IDE 1.8.x releases #1608

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
3 tasks done
BitLoose opened this issue Oct 31, 2022 · 2 comments
Closed
3 tasks done
Assignees
Labels
conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project

Comments

@BitLoose
Copy link

BitLoose commented Oct 31, 2022

Describe the problem

Having upgraded to 2.0.1 from 1.8 my Sketch is throwing an error because it seems the VERSION ID number is lower than the 1.8 release. Here´s the code that throws, which was fine in IDE 1.8:

#if(ARDUINO < 10810)
#error "Unsupported Arduino IDE version, use Arduino IDE 1.8.10 or later from https://www.arduino.cc/en/software"
#endif

To reproduce

  1. Use IDE 2.0.1
  2. Put this code in a sketch:
    #if(ARDUINO < 10810)
    #error "Unsupported Arduino IDE version, use Arduino IDE 1.8.10 or later from https://www.arduino.cc/en/software"
    #endif
  3. Verify

Expected behavior

Should not throw an error unless Arduino have totally changed the VESIONing system

Arduino IDE version

2.0.1

Operating system

Windows

Operating system version

Latest

Additional context

None

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@BitLoose BitLoose added the type: imperfection Perceived defect in any part of project label Oct 31, 2022
@per1234
Copy link
Contributor

per1234 commented Oct 31, 2022

Hi @BitLoose. Thanks for taking the time to submit an issue.

I see we have another report about this at arduino/arduino-cli#725 (this version number is actually set for Arduino IDE 2.x by Arduino CLI).

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2022
@per1234 per1234 self-assigned this Oct 31, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI labels Oct 31, 2022
@lordfitzy
Copy link

Hi!

I've recently upgraded the Arduino IDE:
Version: 2.0.2
Date: 2022-11-17T11:54:56.612Z
CLI Version: 0.29.0 [76251df9]

When I compile the command line contains this:
-DARDUINO=10607

and that's what my program sees for ARDUINO.

Is this expected? Don't know if it matters but I did not uninstall the previous IDE version, 1.8.19.

@arduino arduino locked as off-topic and limited conversation to collaborators Nov 30, 2022
@per1234 per1234 changed the title 2.0.1 has loweR VERSION ID than 1.8 releases ARDUINO macro has lower version number than Arduino IDE 1.8.x releases Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants