arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.15k stars 7.01k forks source link

Selection in board sub-menus (e.g. "processor") doesn't update status bar text. #2494

Closed damellis closed 9 years ago

damellis commented 9 years ago

For example, if you select "LilyPad Arduino" from the Tools > Board menu, "LilyPad Arduino, ATmega328" appears in the editor status bar. If you then select "ATmega168" from the Tools > Processor menu, the text doesn't change. The IDE appears to use the right processor when compiling, but shows the wrong text in the status bar.

rogerclarkmelbourne commented 9 years ago

There appears to be another issue with the sub menus, if they are used with non Arduino in hardware.

i.e If you have a hardware folder under My Documents/Arduino/hardware

e.g.

My Documents/Arduino/hardware/Arduino_STM32

and have a boards.txt with sub menu items e.g. for gcc optimization settings, The status line always reads "null" for these sub menus.

To make sure this was not a coding error, I copied the parts of the Arduino AVR boards.txt file that handle Processor selection to my boards.txt file and it still just displayed "null".

And this value ("null") doesnt change when the menu selection is changed :-(

But... As indicated by @damellis the sub menu selections do appear to be getting picked up e.g. in platforms.txt

Edit. The bug with external hardware files seems to be caused because the board type is not in the master list used by the internal hardware.

If the board type is changed, For Example, to "nano" the menu's update OK

I presume that the IDE must somehow cache the names in its internal boards.txt file on startup and not do the same process on external hardware boards.txt

(Note. Thanks to Alexey - @HiddenPilot on the Arduino forum for reporting this bug and providing the work around)

ffissore commented 9 years ago

Fixed with #2675 since 1.6.3