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

Unresolved import ConstructionSite. #14

Closed
WooterTheTroubleshooter opened this issue Aug 3, 2018 · 5 comments
Closed

Unresolved import ConstructionSite. #14

WooterTheTroubleshooter opened this issue Aug 3, 2018 · 5 comments

Comments

@WooterTheTroubleshooter
Copy link

WooterTheTroubleshooter commented Aug 3, 2018

I am trying to build the starter kit. Unfortunately I'm running into the following issue when trying to compile.

error[E0432]: unresolved import
 --> /home/wouter/.cargo/registry/src/github.com-1ecc6299db9ec823/screeps-game-api-0.0.10/src/objects/impls/construction_site.rs:3:6
  |
3 | use {ConstructionSite, ReturnCode, StructureType};
  |      ^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error: Could not compile `screeps-game-api`.

@daboross
Copy link
Collaborator

Hm, there may be an error in the last published version. I'll see if I can reproduce this.

@daboross
Copy link
Collaborator

daboross commented Aug 13, 2018

This seems to be a regression in rustc introduced recently. I don't get the error compiling on rust 1.28.0 stable, but I do on beta 1.29.0-beta.4.

Edit: Opened rust-lang/rust#53303. Thank you for finding this!

Edit: Looks like the issue is tracked at rust-lang/rust#53140 already.

@WooterTheTroubleshooter
Copy link
Author

WooterTheTroubleshooter commented Aug 13, 2018

Ok I have managed a workaround by doing the following:

rustup toolchain install nightly-2018-07-19
rustup override set nightly-2018-07-19

However now I am getting errors trying to compile the rust starter code. I'll post an issue in the starter repository. (Edit: Starter rust 1 )

@daboross
Copy link
Collaborator

@WooterTheTroubleshooter Thank you for investigating this and finding a nightly which works!

I think the starter issues are likely old code in that repository. I'll see if I can update it and get it to compile.

@daboross
Copy link
Collaborator

I've added a workaround for this particular issue. It should be fixed in screeps-game-api 0.1.0.

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

No branches or pull requests

2 participants