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

error: proc-macro derive panicked #29

Closed
iezed opened this issue May 1, 2017 · 10 comments
Closed

error: proc-macro derive panicked #29

iezed opened this issue May 1, 2017 · 10 comments
Assignees
Labels

Comments

@iezed
Copy link

iezed commented May 1, 2017

Hello, I compiled with this command :
PX8_SCREEN_WIDTH=256 PX8_SCREEN_HEIGHT=256 cargo build --features="lua" --release
and I have this error. I have rust 1.17 on osx 10.10.5.
Thanks.
error: proc-macro derive panicked
--> src/cartridge/mod.rs:905:21
|
905 | #[derive(Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: proc_macro::__internal::with_parse_sess() called before set_parse_sess()!

error: Could not compile px8.

@hallucino hallucino self-assigned this May 1, 2017
@hallucino
Copy link
Member

Weird !

Could you done a cargo clean to be sure ?

@iezed
Copy link
Author

iezed commented May 1, 2017

I done a cargo clean, but nothing change.

@hallucino
Copy link
Member

I can't reproduce this bug, it is weird

@hallucino
Copy link
Member

It seems related to Serde, @dtolnay: have you an idea ?

@hallucino hallucino added the bug label May 1, 2017
@dtolnay
Copy link

dtolnay commented May 1, 2017

This is rust-lang/rust#39870. The homebrew packaging for Rust is hosed. Uninstall everything Rust-related with homebrew and reinstall with https://rustup.rs/ to fix this.

@hallucino
Copy link
Member

@dtolnay: Thanks !

@iezed tell me if it works to close the bug !

@iezed
Copy link
Author

iezed commented May 1, 2017

Thanks, I'll try in this day.

@iezed
Copy link
Author

iezed commented May 1, 2017

I reinstall rust with rustup, and now can build. Thanks.

@iezed iezed closed this as completed May 1, 2017
@ilovezfs
Copy link

This should no longer be a problem in Homebrew due to Homebrew/homebrew-core#14490.

@hallucino
Copy link
Member

thx !

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

No branches or pull requests

4 participants