-
-
Notifications
You must be signed in to change notification settings - Fork 431
Sort Library Manager list by relevance #1106
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
Comments
SD
and install it
This issue is not yet solved, @ubidefeo. There was a related PR (#1541), bu that boosted the Arduino libs only. This issue is about boosting by (exact) match 👇
|
@umbynos if I remember correctly the exact match prioritisation we decided to do CLI side, maybe this task needs reassigning or a new card/scope? |
Done in arduino/arduino-cli#1975 will be available in the next release |
It is not fixed. Arduino IDE's Library Manager search was not affected by arduino/arduino-cli#1975 (I believe the IDE uses |
IDE2 runs the arduino-ide/arduino-ide-extension/src/node/library-service-impl.ts Lines 77 to 81 in fe3fbb1
The CLI works as expected:
The problem is that IDE2 does additional sorting, such as
IDE2 overrules the order of the search results provided by the CLI. |
There is a @per1234, is this the standard procedure to deprecate a library? Should IDE2 lower the score for a deprecated library result? Or should IDE2 always take the 0th index from the Example: ./arduino-cli lib search "Robot IR Remote" --format json {
"libraries": [
{
"name": "Robot IR Remote",
"releases": {
"1.0.0": {
"author": "Arduino",
"version": "1.0.0",
"maintainer": "Arduino \u003c[email protected]\u003e",
"sentence": "Allows controlling the Arduino Robot via an IR remote control. For Arduino Robot only.",
"website": "https://github.com/shirriff/Arduino-IRremote",
"category": "Device Control",
"architectures": [
"avr"
],
"types": [
"Arduino",
"Retired"
],
"resources": {
"url": "https://downloads.arduino.cc/libraries/github.com/arduino-libraries/Robot_IR_Remote-1.0.0.zip",
"archive_filename": "Robot_IR_Remote-1.0.0.zip",
"checksum": "SHA-256:0b75fb1f0fcb37de415cedd4c4b77663151ae20071687d058379954bd4e35a3e",
"size": 22941,
"cache_path": "libraries"
}
},
"1.0.1": {
"author": "Arduino",
"version": "1.0.1",
"maintainer": "Arduino \u003c[email protected]\u003e",
"sentence": "Allows controlling the Arduino Robot via an IR remote control. For Arduino Robot only.",
"website": "https://github.com/shirriff/Arduino-IRremote",
"category": "Device Control",
"architectures": [
"avr"
],
"types": [
"Arduino",
"Retired"
],
"resources": {
"url": "https://downloads.arduino.cc/libraries/github.com/arduino-libraries/Robot_IR_Remote-1.0.1.zip",
"archive_filename": "Robot_IR_Remote-1.0.1.zip",
"checksum": "SHA-256:593849f857ff48a31191fcdaaf8e42debc37b96985e6eaeb4d0813ea9ef9a0a4",
"size": 23018,
"cache_path": "libraries"
}
},
"1.0.2": {
"author": "Arduino",
"version": "1.0.2",
"maintainer": "Arduino \u003c[email protected]\u003e",
"sentence": "Allows controlling the Arduino Robot via an IR remote control. For Arduino Robot only.",
"website": "https://github.com/shirriff/Arduino-IRremote",
"category": "Device Control",
"architectures": [
"avr"
],
"types": [
"Arduino",
"Retired"
],
"resources": {
"url": "https://downloads.arduino.cc/libraries/github.com/arduino-libraries/Robot_IR_Remote-1.0.2.zip",
"archive_filename": "Robot_IR_Remote-1.0.2.zip",
"checksum": "SHA-256:884b3e2559e2188633238839c53ddb13343aa1aef161769da89f3ec4d3747537",
"size": 23022,
"cache_path": "libraries"
}
},
"2.0.0": {
"author": "Arduino",
"version": "2.0.0",
"maintainer": "Arduino \u003c[email protected]\u003e",
"sentence": "Allows controlling the Arduino Robot via an IR remote control. For Arduino Robot only.",
"website": "https://github.com/arduino-libraries/RobotIRremote",
"category": "Device Control",
"architectures": [
"avr"
],
"types": [
"Arduino",
"Retired"
],
"resources": {
"url": "https://downloads.arduino.cc/libraries/github.com/arduino-libraries/Robot_IR_Remote-2.0.0.zip",
"archive_filename": "Robot_IR_Remote-2.0.0.zip",
"checksum": "SHA-256:13e0125e8b08fa634d5c339a328b2ecf07b5646e926db02f5db605be7bb9c520",
"size": 23065,
"cache_path": "libraries"
}
}
},
"latest": {
"author": "Arduino",
"version": "2.0.0",
"maintainer": "Arduino \u003c[email protected]\u003e",
"sentence": "Allows controlling the Arduino Robot via an IR remote control. For Arduino Robot only.",
"website": "https://github.com/arduino-libraries/RobotIRremote",
"category": "Device Control",
"architectures": [
"avr"
],
"types": [
"Arduino",
"Retired"
],
"resources": {
"url": "https://downloads.arduino.cc/libraries/github.com/arduino-libraries/Robot_IR_Remote-2.0.0.zip",
"archive_filename": "Robot_IR_Remote-2.0.0.zip",
"checksum": "SHA-256:13e0125e8b08fa634d5c339a328b2ecf07b5646e926db02f5db605be7bb9c520",
"size": 23065,
"cache_path": "libraries"
}
}
}
],
"status": 1
} |
Closes #1106 Signed-off-by: Akos Kitta <[email protected]>
Hi @kittaakos. Sorry for the slow response:
Even though it has not been done consistently unfortunately, it is the standard procedure for official libraries. We haven't set any policy regarding requests to add "Retired" to the |
Closes #1106 Signed-off-by: Akos Kitta <[email protected]>
Closes #1106 Signed-off-by: Akos Kitta <[email protected]>
Describe the problem
When I search for
SD
I expect to seeSD
to show up in the top of the list so I can install it without a lot of scrolling through the list of results. But instead it is far down in the results.To reproduce
Open the IDE2 and search for SD.
If you're lucky you will find it, but IDE2 limits the search results to 50 hits(UPDATE: fixed by #1361).Expected behavior
When I search for
SD
, I see the lib to install near the top of the list of results.More generally: Arduino published libs are boosted in the search result. (UPDATE: fixed by #1541)
Update: or a match is boosted if it's an exact match.
Arduino IDE version
HEAD of the
main
Operating system
macOS
Operating system version
12.3.1
Additional context
It works from the CLI but the output is too long to include it on GH.
Issue checklist
The text was updated successfully, but these errors were encountered: