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

example programs doesn't run, None of them works. #2497

Closed
SujithChristopher opened this issue Dec 22, 2022 · 5 comments
Closed

example programs doesn't run, None of them works. #2497

SujithChristopher opened this issue Dec 22, 2022 · 5 comments
Labels
bug Something is broken

Comments

@SujithChristopher
Copy link

SujithChristopher commented Dec 22, 2022

I'm currently using rust 1.66

While compiling example programs from this repo

all folder shows the same error, as given below.

C:\Users\Sujith\Documents\Projects\rust_projects\egui\egui\examples\retained_image>cargo run
warning: C:\Users\Sujith\Documents\Projects\rust_projects\egui\egui\crates\eframe\Cargo.toml: unused manifest key: target.cfg(not(target_arch = "wasm32")).dependencies.glutin.es
Compiling proc-macro2 v1.0.47
Compiling unicode-ident v1.0.5
Compiling quote v1.0.21
Compiling cfg-if v1.0.0
error: -Csplit-debuginfo=unpacked is unstable on this platform

error: could not compile proc-macro2 due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile unicode-ident due to previous error
error: could not compile quote due to previous error
error: could not compile cfg-if due to previous error

I'm new to rust, so please tell me if I have made any mistake or something I've to follow to get the example programs running.

@SujithChristopher SujithChristopher added the bug Something is broken label Dec 22, 2022
@Mingun
Copy link
Contributor

Mingun commented Dec 22, 2022

Try to run cargo clean in your working copy or just remove the target folder. I've also encountered some strange errors in my project when I upgraded to Rust 1.66, probably because the format of the incremental compilation cache was changed.

@SujithChristopher
Copy link
Author

SujithChristopher commented Dec 23, 2022

Sorry for the delayed reply @Mingun , I have tried that, the results remain the same. Maybe I should try with other versions of Rust, and see if that helps.

Edited
Tried with Rust 1.65.0, The issue remains the same.

@kkoski
Copy link

kkoski commented Dec 25, 2022

you might try commenting out line 30 in the top level Cargo.toml file. see rust-lang/rust#103976.

@SujithChristopher
Copy link
Author

Thanks @kkoski, It works after commenting line 30.

@kkoski
Copy link

kkoski commented Dec 26, 2022

i missed this existing issue yesterday: #2368

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

No branches or pull requests

3 participants