huhu / rust-search-extension

🦀 The ultimate search extension for Rust
https://rust.extension.sh
Apache License 2.0
1.21k stars 52 forks source link

std lookup stops working after some time #269

Closed kesyog closed 7 months ago

kesyog commented 7 months ago

After some time, the Chrome extension stops showing any results from std, which is my primary use case for it. Only the names of third-party crates show up in my results, even though I'm not using the ! sigil.

A few observations:

I peeked at the extension's storage via chrome.storage.local.get(null, function(result) { console.log('Value: ', result); });, and the index-std-stable key is empty ({}) when this bug is encountered.

I've been able to temporarily fix this issue in a couple of ways:

  1. Re-installing the extension
  2. Removing the index-std-stable key via chrome.storage.local.remove("index-std-stable") and restarting Chrome, though I haven't tested this rigorously.
kesyog commented 7 months ago

Running 1.13.0 now (but I've seen this before today's release as well) and Chrome 121.0.6167.184

Edit: it seems to have fixed itself. I'll keep an eye out and see if it reappears with 1.13.0

Folyd commented 7 months ago

Hi @kesyog, thanks for the feedback. If you open the std docs page, the extension will sync the latest search index, then it should be fixed automatically. If not, try to remove this item from localstorage and refresh the page again. It should works.

image
kesyog commented 7 months ago

Hey, it's working better now after opening the std docs page to refresh the index. I sometimes need to delete my query and retype it for any results to show up (a totally separate issue), but so far I haven't been able to reproduce the issue where the index is totally gone.

kesyog commented 7 months ago

Closing this issue since I can no longer reproduce it with the 1.13.0 after opening the std docs . Thanks!