Arduino IDE fails to collect function headers
Posted: Thu May 07, 2020 9:14 am
It has been several times I experience this issue, over several years.
I am using the Arduino IDE 1.8.12 with the STM32Duino package installed.
I have a large sketch (2285 lines after merging). There are 11 different identifiers that switch blocks of code using many nested #ifdef...#else...#endif structures, providing for various options.
I sometimes have compile errors like
When I look at the global file generated by the IDE, I notice that the IDE failed to collect the header of one or more functions to put them at the top of the code as it does normally.
I also experience unexpected execution results, as if some lines of code were missing or displaced.
This only occurs when the #ifdef...#endif structures are many.
Is this flaw known? Could the IDE development team take this issue into account?
I am using the Arduino IDE 1.8.12 with the STM32Duino package installed.
I have a large sketch (2285 lines after merging). There are 11 different identifiers that switch blocks of code using many nested #ifdef...#else...#endif structures, providing for various options.
I sometimes have compile errors like
Code: Select all
'TacheEmissionSerie' was not declared in this scope; did you mean 'hTacheEmissionSerie'?
I also experience unexpected execution results, as if some lines of code were missing or displaced.
This only occurs when the #ifdef...#endif structures are many.
Is this flaw known? Could the IDE development team take this issue into account?