Skip to content

Contributed Arduino libraries not seen #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
flatsiedatsie opened this issue Dec 25, 2018 · 4 comments · Fixed by #499
Closed

Contributed Arduino libraries not seen #104

flatsiedatsie opened this issue Dec 25, 2018 · 4 comments · Fixed by #499

Comments

@flatsiedatsie
Copy link

flatsiedatsie commented Dec 25, 2018

As mentioned in this issue a search for a certain library fails, even though the same search in the IDE does work.

To replicate:

  • Search for "Seeed BME280" in the Arduino IDE (1.8.8) -> 1 result
  • Search for "Seeed BME280" in the Arduino CLI (0.3.3) -> no results

Do the CLI and IDE have different search mechanisms or different databases they search in?

The reason I ask is because I'm building a browser based IDE on top of the CLI. It tries to auto-install libraries, searching for the name in the #include tag. This works for most libraries so far, but failed at this one.

@flatsiedatsie
Copy link
Author

flatsiedatsie commented Dec 27, 2018

Additionally, when I do a CLI search for "Grove", one of the many items that is found is this:

Name: "Grove - Barometer Sensor BME280"
  Author:  Seeed Studio
  Maintainer:  Seeed Studio <[email protected]>
  Sentence:  Arduino library to control Grove - Temp&Humi&Barometer Sensor(BME280).
  Paragraph:  Arduino library to control Grove - Temp&Humi&Barometer Sensor(BME280).
  Website:  https://github.com/Seeed-Studio/Grove_BME280
  Category:  Sensors
  Architecture:  *
  Types:  Contributed
  Versions:  [1.0.2]

That's the library I'm looking to install.

Yet when I search for "grove bme280" (or capitalised variants of that string), that library is not found, even though both words are in the title of that library.

// update. It seems the name has to be perfectly entered in, down to the dash.

pi@gateway:~/uploader $ ./arduino-cli lib search "Grove - Barometer Sensor BME280"
Name: "Grove - Barometer Sensor BME280"
  Author:  Seeed Studio
  Maintainer:  Seeed Studio <[email protected]>
  Sentence:  Arduino library to control Grove - Temp&Humi&Barometer Sensor(BME280).
  Paragraph:  Arduino library to control Grove - Temp&Humi&Barometer Sensor(BME280).
  Website:  https://github.com/Seeed-Studio/Grove_BME280
  Category:  Sensors
  Architecture:  *
  Types:  Contributed
  Versions:  [1.0.2]
pi@gateway:~/uploader $ ./arduino-cli lib search "Grove Barometer Sensor BME280"
No library found matching `grove barometer sensor bme280` search query
pi@gateway:~/uploader $ ./arduino-cli lib search Grove Barometer Sensor BME280 
No library found matching `grove barometer sensor bme280` search query

@s-celles
Copy link

See #107 for algorithm suggestions

@flatsiedatsie
Copy link
Author

Any progress?

@cmaglie
Copy link
Member

cmaglie commented Sep 12, 2019

Probably the IDE searchs in the Author field too, we must do the same thing on the cli too.

@cmaglie cmaglie added this to the 0.6.0 milestone Sep 12, 2019
@masci masci removed this from the 0.6.0 milestone Oct 7, 2019
@masci masci closed this as completed in #499 Dec 4, 2019
per1234 added a commit that referenced this issue Aug 9, 2021
Unify CLI flag strings with strings shown in output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants