Gigoteur / UnicornConsole

Unicorn Console: create quick fantasy game in Rust/Python/Lua/Rhai/Wasm !
MIT License
905 stars 47 forks source link

error: proc-macro derive panicked #29

Closed iezed closed 7 years ago

iezed commented 7 years ago
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 commented 7 years ago

Weird !

Could you done a cargo clean to be sure ?

iezed commented 7 years ago

I done a cargo clean, but nothing change.

hallucino commented 7 years ago

I can't reproduce this bug, it is weird

hallucino commented 7 years ago

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

dtolnay commented 7 years ago

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 commented 7 years ago

@dtolnay: Thanks !

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

iezed commented 7 years ago

Thanks, I'll try in this day.

iezed commented 7 years ago

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

ilovezfs commented 7 years ago

This should no longer be a problem in Homebrew due to https://github.com/Homebrew/homebrew-core/pull/14490.

hallucino commented 7 years ago

thx !