-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
arduino-cli lib search should display nearest names #107
Comments
Duplicate: #104 |
It seems this has been fixed. |
@flatsiedatsie which version of arduino-cli are you using? I still get no search results from |
@per1234 You're right, I get the same result on that query. But I don't get any results for |
That's correct. Unlike your #104, which is only asking that the search behavior made to work the same as in the Arduino IDE's Library Manager, this issue is a request for an enhancement of the search behavior beyond what is provided by the Arduino IDE. |
This library should ease the implementation of this feature a lot https://github.com/imjasonmiller/godice |
Thanks @rsora |
Thanks @BigHeadGeorge |
Simplifying README and bringing it up-2-date
Also, please make the search whitespace friendly probably. Because, if I search with proper whitespace, then the search result is perfect > arduino-cli lib search painless mesh
Updating index: library_index.json downloaded
Name: "Painless Mesh"
Author: Coopdis,Scotty Franzyshen,Edwin van Leeuwen,Germán Martín,Maximilian Schwarz,Doanh Doanh
Maintainer: Edwin van Leeuwen
Sentence: A painless way to setup a mesh with ESP8266 and ESP32 devices
Paragraph: A painless way to setup a mesh with ESP8266 and ESP32 devices
Website: https://gitlab.com/painlessMesh/painlessMesh
Category: Communication
Architecture: esp8266, esp32
Types: Contributed
Versions: [0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.2.0, 0.2.1, 0.5.0, 0.5.4, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.5, 0.7.0, 1.0.0, 1.0.2, 1.0.3, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7]
Provides includes: painlessMesh.h
Dependencies: ArduinoJson, TaskScheduler
But if i forget the whitespace and search for the header file instead > arduino-cli lib search painlessmesh
Updating index: library_index.json downloaded
No libraries matching your search. The header file of that library says |
Rename tool to final name: arduino-lint
Hello,
Currently arduino-cli can find a library when searched name match exactly lib name (lowercased):
But not when it's slightly different
Maybe Arduino CLI could find nearest library named (or 5 nearest library name)
I did something quite similar in https://github.com/scls19fr/arduino_libraries_search/blob/master/utils.py#L110-L127
using a similarity measurement named Sørensen–Dice coefficient
Other metrics / edit distance may be considered
https://en.wikipedia.org/wiki/String_metric
Kind regards
PS : quite similar to this Julia Pkg issue JuliaLang/Pkg.jl#616
PS2 : https://github.com/danieldk/editdistance may help because it implements Levenshtein algorithm in Go
The text was updated successfully, but these errors were encountered: