Like to know how I can find in the logs which version of the IDE is running.
IDE 2.0.2 prompted me yesterday that there ws a new upgrade available so I allowed it to upgrade to 2.0.3 and have an IDE issue that I try to analyse. I would like to know with which version of the IDE a sketch was initially created.
The information was recently added to the command line logs, but it seems it is not printed to the generated log file. You are welcome to submit a feature request for it to be added to the log files as well if that is something you think would be generally useful.
https://github.com/arduino/arduino-ide/issues/new?assignees=&labels=type%3A+enhancement&template=feature-request.yml
As for finding this out now, there is a way. The cortex-debug VS Code extension that provides the Arduino IDE integrated sketch debugger was bumped from version 0.3.10 to 1.5.1 between the time of the Arduino IDE 2.0.2 and 2.0.3 releases. The extension version is shown in the log file.
So logs created with any version of Arduino IDE 2.0.2 or older (or more precisely before commit 5695fd8) will contain a line like this:
2022-12-06 21:31:23 root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
(note the cortex-debug@0.3.10)
and logs created with any version of Arduino IDE 2.0.3 or newer (or more precisely at or after commit 5695fd8) will contain this a line like this:
2022-12-06 21:20:45 2022-12-07T05:20:45.905Z root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@1.5.1" with engines:
(note the cortex-debug@1.5.1)