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

Generate and publish docs, or fix docs.rs #91

Open
nikomatsakis opened this issue Jun 9, 2023 · 3 comments
Open

Generate and publish docs, or fix docs.rs #91

nikomatsakis opened this issue Jun 9, 2023 · 3 comments

Comments

@nikomatsakis
Copy link
Member

docs.rs seems to encounter an error building our docs:

https://docs.rs/crate/duchess/latest

we should figure out why and fix it. We can also build docs in our CI and publish them together with the book, which may make sense.

@fpoli
Copy link
Contributor

fpoli commented Jun 9, 2023

The reason is that the published 0.1.1 package of duchess does not contain the .cargo/config that initializes the CLASSPATH variable that is needed to compile the examples. I checked this even by downloading the source code with cargo download duchess=0.1.1.

Running cargo package in my duchess repo generates a target/package/duchess-0.1.1 folder that contains a copy of .cargo, as expected. Could you check if that's the same in your system?

@fpoli
Copy link
Contributor

fpoli commented Aug 2, 2023

I gave a quick look at the log of the failed docs.rs run for 0.1.5 and the reason is still the same: the .cargo/config file is missing.

@rcoh
Copy link
Contributor

rcoh commented Apr 25, 2024

current failing build log:
https://docs.rs/crate/duchess/0.1.8/builds/1159671

[INFO] running `Command { std: "docker" "start" "-a" "f398fc85010b024af20a662633027c7746b250db887fba079f2366ecd4b4f461", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting duchess v0.1.8 (/opt/rustwide/workdir)
[INFO] [stderr] error: failed to execute `"javap" "-p" "java.lang.Class"`: No such file or directory (os error 2)
[INFO] [stderr]   --> src/java.rs:67:9
[INFO] [stderr]    |
[INFO] [stderr] 67 | /         public final class java.lang.Class {
[INFO] [stderr] 68 | |             public java.lang.String toString();
[INFO] [stderr] 69 | |             public java.lang.String toGenericString();
[INFO] [stderr] 70 | |             public native boolean isInstance(java.lang.Object);
[INFO] [stderr] ...  |
[INFO] [stderr] 82 | |             public java.lang.Class arrayType();
[INFO] [stderr] 83 | |         }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants