Closed
Description
Describe the request
The IDE2 nightly might use a not yet released CLI version. In such a case, the CLI version is CLI Version: 0.0.0-git []
which is not informative when accessed from the About
dialog. IDE2 should parse the package.json
, get the version
object, and show the pinned CLI version instead of 0.0.0-git
.
Describe the current behavior
See description.
Arduino IDE version
Version: 2.0.0-rc9.1-nightly-20220809 Date: 2022-08-09T03:33:26.061Z CLI Version: 0.0.0-git []
Operating system
macOS
Operating system version
13.2.1
Additional context
No response
Issue checklist
- I searched for previous requests in the issue trackerI verified the feature was still missing when using the latest nightly buildMy request contains all necessary details
Activity
per1234 commentedon Aug 10, 2022
The better resolution would be to use the correct method of building Arduino CLI:
https://arduino.github.io/arduino-cli/dev/CONTRIBUTING/#building-the-source-code
Arduino IDE is currently using an unsupported approach to building Arduino CLI:
arduino-ide/arduino-ide-extension/scripts/utils.js
Line 65 in 8a1cabd
The missing version information is fairly innocuous, but it is possible this approach might cause other problems since we assume
task build
will always be used.kittaakos commentedon Aug 10, 2022
If IDE2 uses
task build
instead ofgo build
will thearduino-cli version
show that the CLI was created from a fork when it was made from a fork?per1234 commentedon Aug 10, 2022
It will only show the short hash:
I think it is sufficient to identify the version in use.
Use `Task` to build pinned CLI for IDE2.
Task
to build pinned CLI for IDE #1315Use `Task` to build pinned CLI for IDE2.
Use `Task` to build pinned CLI for IDE2.
Use `Task` to build pinned CLI for IDE2.