Arduino-pro-ide: Board search not reliable

Created on 4 Jun 2020  ·  4Comments  ·  Source: arduino/arduino-pro-ide

Describe the bug
It appears that search won't look for string match in board.name but only look for the prefix boardname.

To Reproduce
Steps to reproduce the behavior:

  1. Make sure you have arduino:avr core installed
  2. Click on "select other board or port"
  3. Type "duemila" (for Arduino Duemilanove or Diecimila)
  4. No results will be presented
  5. Type "dieci" (for the same boards)
  6. Duemilanove or Diecimila will appear in the results

Expected behavior
One would expect the search to happen in the strings comprising the board name.
In the specific case look for the content of diecimila.name=Arduino Duemilanove or Diecimila

Screenshots
Screenshot 2020-06-04 at 15 36 45
Screenshot 2020-06-04 at 15 36 53

Desktop (please complete the following information):

  • OS: Mac OS
  • Version 10.14.6

Additional context
n/a

bug

Most helpful comment

The first part of the issue has been fixed. We support fuzzy-search for the boards:

Screen Shot 2020-07-20 at 16 07 15
Screen Shot 2020-07-20 at 16 07 23
Screen Shot 2020-07-20 at 16 07 38
Screen Shot 2020-07-20 at 16 08 20
Screen Shot 2020-07-20 at 16 08 35

Screen Shot 2020-07-20 at 16 08 51

Regarding the second part of the issue and the arduino-esp8266 is not a valid FQBN error; it is tracked already here. The problem is caused by the hyphen () in the FQBN. I have already removed the flawed FQBN validation and we rely on the CLI from the Pro IDE.

I consider this task as done and will be available in the next release.

All 4 comments

Also by just typing "arduino" in the search field if you have esp8266 core installed it will show a board named "arduino" and let you select it, which will bring up an error on compile
Screenshot 2020-06-04 at 15 49 06
Screenshot 2020-06-04 at 15 52 50
Screenshot 2020-06-04 at 15 48 42

The first part of the issue has been fixed. We support fuzzy-search for the boards:

Screen Shot 2020-07-20 at 16 07 15
Screen Shot 2020-07-20 at 16 07 23
Screen Shot 2020-07-20 at 16 07 38
Screen Shot 2020-07-20 at 16 08 20
Screen Shot 2020-07-20 at 16 08 35

Screen Shot 2020-07-20 at 16 08 51

Regarding the second part of the issue and the arduino-esp8266 is not a valid FQBN error; it is tracked already here. The problem is caused by the hyphen () in the FQBN. I have already removed the flawed FQBN validation and we rely on the CLI from the Pro IDE.

I consider this task as done and will be available in the next release.

yes!
thank you, @kittaakos

I'll close this once I test the release

I consider this task as done

I do not like the fuzzy search as-is; I am going to rework the boosting a bit.

Was this page helpful?
0 / 5 - 0 ratings