Description
Bug Report
When arduino-cli compile
prints compile errors from local header files, it displays the path from the temporary /tmp/arduino-sketch-FOO
directory of the sketch being compiled. By "local header files", I mean header files that live alongside the foo.ino
sketch file, as well as those under the src
subdirectory.
My IDE (QtCreator) parses compiler errors and displays them in a user-friendly way. When I click on these parsed error messages, it conveniently takes me to the file and line that produced the error.
Unfortunately, arduino-cli defeats the convenience of these parsed error messages when they originate from local header files. When I click on them, it takes me to the header file that's been copied to the /tmp/arduino-sketch-FOO
directory instead of the original header file directory.
Current behavior
arduino-ide compile
...
In file included from /home/me/myproject/myproject.ino:10:0:
/tmp/arduino-sketch-5AA431FD41D5B5DF00FF21C5123C1125/sketch/header.h:100:5: error: 'printeff' was not declared in this scope
Expected behavior
I would expect arduino-ide compile
to substitute /tmp/arduino-sketch-5AA431FD41D5B5DF00FF21C5123C1125/sketch/header.h
in the error message with the original path of the header file: /home/me/myproject/header.h
Environment
arduino-cli Version: 0.13.0 Commit: 693a045
Linux Mint 20 Cinnamon