When working with .ino files, the incorrect line number is shown when an error is encountered during the build process.
The same issue seems to be documented here: Build log referencing incorrect line
The problem seems to be that the build log is referencing the .cpp file generated as part of the process, and the solution in this instance was to just rename to .cpp. This breaks compatibility with the Arduino IDE, which I want to maintain, and also necessitates the creation of the relevant header file, so isn’t really a workable solution.
Is there any workaround for this? I can’t be the only person trying to work with .ino files!