Help building an empty project

#1

When I try to build a new and empty project created via amethyst new <name>, I get the following errors when it tries to build amethyst_renderer v0.10.4

error: suffixes on a tuple index are invalid
   --> path_to_cargo\.cargo\registry\src\github.com-1ecc6299db9ec823\amethyst_renderer-0.10.4\src\light.rs:185:50
    |
185 | #[derive(Default, Clone, Serialize, Deserialize, PrefabData)]
    |                                                  ^^^^^^^^^^ invalid suffix `usize`

error: proc-macro derive produced unparseable tokens
   --> path_to_cargo\.cargo\registry\src\github.com-1ecc6299db9ec823\amethyst_renderer-0.10.4\src\light.rs:185:50
    |
185 | #[derive(Default, Clone, Serialize, Deserialize, PrefabData)]
    |                                                  ^^^^^^^^^^

Is there a way to work around this?

I am using amethyst version 0.10.0

(Azriel Hoh) #2

ah, the work around options aren’t great:

  • downgrade the rust compiler to an earlier stable – nightly (correctly) gives that error
  • update to master

The issue is the derive generates invalid Rust syntax, which the compiler used to tolerate, see amethyst#1492 / amethyst#1508 for more details. We should be releasing 0.11 in the coming weeks (pending rendy integration).

2 Likes
(Zicklag) #3

Amethyst 0.11 is out now! :slightly_smiling_face:

1 Like