Open NotAFlyingGoose opened 3 months ago
Transferred to rust-lang/rust because this looks to be a rustdoc issue.
@rustbot label -needs-triage +T-rustdoc +D-confusing +A-diagnostics
interesting, seems because the current working dir is not correct when trying to read the source code, at here: https://github.com/rust-lang/rust/blob/31f8b70d2e18a0339c034e44c52aa3791c29f53c/src/librustdoc/html/sources.rs#L187
I cloned the code into /private/tmp
, and add some logs:
emitting source for: crates/syntax/src/lib.rs
current working directory: /private/tmp/capy/crates/capy_macros
cc @GuillaumeGomez any ideas on this.
Added it into my TODO list. ^^'
Hi,
:crossed_fingers: Maybe this can help triaging the issue. We have reproduced similar issue when having:
rustdocflags = [
"--html-in-header", "<some html file with relative path>",
"--html-after-content", "<some html file with relative path>",
"--html-after-content", "<some html file with relative path>",
]
in .cargo/config
. While generation with cargo doc
fails with No such file or directory (os error 2), it succeeds if
cargo doc --no-deps` is used.
Problem
I'm working with a few other people on making a programming language in Rust and we've encountered an error in trying to create documentation for our workspace.
This is what we get:
It's really confusing as it gives no other information.
I've seen other similar-ish issues here but they seem more like
cargo
itself couldn't be found whereas this is saying thatcrates/syntax/src/lib.rs
couldn't be found (when it exists and the command even shows the contents of the file)Steps
Possible Solution(s)
No response
Notes
rustup update
hasn't helped, and this error is replicable on my team member's machineVersion