-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Search bar not working with cargo doc --open
#70781
Comments
Transferring to the rust-lang/rust repository, as this is likely a rustdoc issue. |
Please retry on nightly, it might be fixed there |
On Sat, Apr 04, 2020 at 11:25:27AM -0700, Jonas Schievink wrote:
Please retry on nightly, it might be fixed there
Thanks for the suggestion. I did
```
rustup install nightly && cargo +nightly doc --open
```
but that did not fix the issue, the resulting webpage shows the same
problem and the `ReferenceError` comes from the same line of
`search-index.js`.
|
The `cargo doc --open` generated HTML started working again
mysteriously. I'm not sure why. Maybe another package on my system was
updated?
|
Odd, closing as fixed then |
On Sun, Apr 12, 2020 at 06:31:08AM -0700, Jonas Schievink wrote:
Odd, closing as fixed then
I don't think it's fixed. I had this happen before a few months ago and
didn't pay much attention as it seemed to "fix itself." Then when it
came back just now I decided it was worth opening the issue.
|
Sorry but unless you provide an error (from the browser console), I'll just assume that there is no bug but maybe an issue specific to your machine. Don't hesitate to re-open it if you have more information! |
I just ran into this. A reproduction is to run @GuillaumeGomez is it intended that shared, persistent files (like |
It's not supposed to be compatible between versions, indeed. Cleaning the |
Problem
The search bar isn't working when I do
cargo doc --open
using Firefox. Normally I can type in method or struct name in the search bar at the top, and it will search the libraries associated with the project (as well as the project) and return links to appropriate documentation. Instead, when I click the search bar nothing happens, and I can't type anything in the search bar.The browser dev tools indicate this is because of a
ReferenceError: E is not defined
in the javascript in target/doc/search-index.js:16This does not happen with every project. A test project created with very few dependencies resulted the search bar working fine, and I haven't been able to determine whether it is a particular dependency which is causing the problem
Steps
cargo doc --open
Possible Solution(s)
Unknown
Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: