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

cargo classpath configuration doesn't work? #7

Closed
nikomatsakis opened this issue Apr 10, 2023 · 3 comments
Closed

cargo classpath configuration doesn't work? #7

nikomatsakis opened this issue Apr 10, 2023 · 3 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@nikomatsakis
Copy link
Member

I've setup a .config/cargo.toml that sets the classpath, but when I run

cargo run --example logger

it doesn't seem to be set. I don't understand why and that's confusing. HELP!

@nikomatsakis nikomatsakis added help wanted Extra attention is needed question Further information is requested labels Apr 10, 2023
@fpoli
Copy link
Contributor

fpoli commented Apr 17, 2023

I think it's a cache invalidation issue with procedural macros that depend on environment variables: rust-lang/rust#74690.

I tried actually reading CLASSPATH instead of using the hardcoded java for javap. The result is that modifying the CLASSPATH in .cargo/config does not trigger a recompilation of the example, but after a cargo clean duchess uses the modified classpath.

@nikomatsakis
Copy link
Member Author

Ah, @fpoli, that's perhaps right. Is there a "correct way" to fix this?

@fpoli
Copy link
Contributor

fpoli commented Apr 26, 2023

The correct fix seems to be rust-lang/rust#99515, but in the meantime #35 should work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants