Skip to content
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

Cannot load documentation on Linux with Firefox #3422

Closed
rotty3000 opened this issue Nov 12, 2022 · 7 comments
Closed

Cannot load documentation on Linux with Firefox #3422

rotty3000 opened this issue Nov 12, 2022 · 7 comments

Comments

@rotty3000
Copy link

rotty3000 commented Nov 12, 2022

  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • doc
    • access
    • denied
  • I have checked the latest main branch to see if this has already been fixed, in this file:
    • I believe this is a packaging bug rather than a software bug

URL to the section(s) of the book with this problem:
The issue is that the local version of the book (or any of the docs cannot load)

Description of the problem:
When running rustup doc (or any variant) on Ubuntu since Firefox since it became a snap, I get a browser error
Screenshot from 2022-11-12 10-46-05

Suggested fix:
Place the contents of the docs elsewhere than in a hidden directory.

@rotty3000
Copy link
Author

rotty3000 commented Nov 12, 2022

I could move the contents myself, but then the installation will be broken. Perhaps there could be a rustup configuration of sorts that lets one change the location of the docs.

@rotty3000
Copy link
Author

rotty3000 commented Nov 12, 2022

Poor man's solution is:

mkdir ~/rust-docs
cp -R ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/* ~/rust-docs
open ~/rust-docs/rust/html/index.html  # using xdg-open alias
# OR simply
firefox ~/rust-docs # to be able browse from the root dir of all docs.

But I'll have to redo this every time there's a rust update.

@carols10cents
Copy link
Member

This sounds like a rustup issue. Could you refile this there please?

@rotty3000
Copy link
Author

Apologies @carols10cents. Is that https://github.com/rust-lang/rustup ?

@carols10cents
Copy link
Member

Yup!

@c-git
Copy link

c-git commented Nov 12, 2022

Actually it's a much wider spread issue than rustup it has to do with firefox being a snap and snaps not having access to folders that start with a "." Not sure where the best place to file the issue is, but it's already been reported and I don't know if they have since found a way forward. But not only rust is affected anything that severs pages inside a folder that start with a "."

@rust-lang rust-lang locked as off-topic and limited conversation to collaborators Nov 16, 2022
@carols10cents
Copy link
Member

Please see rust-lang/rustup#2988 and the issues linked to it for possible solutions/workarounds. Please do not open new issues here; they will be closed.

@carols10cents carols10cents pinned this issue Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants