-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Win10] Rocket-based project that compiled fine now fails to compile #235
Comments
me too |
@hjiayz Maybe downgrading to
With that nightly version my project compiles successfully. |
Unfortunately there is a bug in the latest Rust nightly (rust-lang/rust#40663) that affects Rocket. While that bug is not the cause of this particular issue, it does prevent a fix. The bug already has a fix (rust-lang/rust#40664) that will hopefully be merged soon. As soon as it is, there will be a new release of Rocket that compiles on the latest nightly. Until then, please use the last working nightly, 2017-03-16. You can do this via |
@SergioBenitez the workaround doesn't work for me. I tried even older versions:
and I still get
|
You'll need to be on the latest version of Rocket, 0.2.2. |
@SergioBenitez with the latest rustc and rocket_codegen 0.2.2 the second error from the first comment is now gone. However I still see
Is this related to the same rust issue or something different ? |
This is the same issue. Please use the last working rustc version as mentioned in my previous comment. |
The previous comment was with rustc 1.17.0-nightly (cab4bff3d 2017-03-21). ATM I don't see a newer version. |
You need an older version, until the bug fix is in a release (tomorrow).
|
Rocket v0.2.3 has been released which compiles and functions without issue on the latest (just released) nightly. |
error is back?
everything was compiling without problems locally. i tried to compile on server but failing. i updated rust from 1.19 to 1.21 edit: i was running server on different socket. when i stopped the other server it worked... |
Hello, and thanks for opening a new issue about Rocket!
Before opening your issue, we ask that you search through existing issues and
pull requests to see if your bug report, concern, request, or comment has
already been addressed. Ensure to search through both open and closed issues and
pull requests. If this is a question, feature request, or general comment,
please ensure that you have read the relevant sections of the documentation
before posting your issue. Finally, consider asking questions on IRC or Matrix
before opening an issue.
If you feel confident that your issue is unique, please include the following
information, selecting the category that best describes your issue:
Bug Reports
A project I'm maintaining that is based on Rocket compiled and ran fine 2 weeks ago (that is the last time I tried to compile it) on Windows 10.
Now, without any changes to the project repo whatsoever since then, that same project fails to compile.
Bug reports must include:
Rocket version: v0.2.0 and v0.2.2 (the behavior is more or less identical for both versions,
see the error logs below). I also use the latest
rustc
nightly, currently this isrustc 1.17.0-nightly (6eb9960d3 2017-03-19)
.A brief description of the bug that includes:
How you discovered the bug. Short test cases are especially useful: I tried to compile my project using Windows 10.
Ideas, if any, about what Rocket is doing incorrectly: The only things I can think of atm are:
rustc
itself androcket_codegen
not yet received the necessary changes to use the new code. UPDATE: This option is the most likely culprit, as downgrading torustc 1.17.0-nightly (824c9ebbd 2017-03-12)
makes the code compile again.rocket_codegen
that directly causes the issue.These ideas are directly derived from error message [E0023] below.
First, I tried compiling using the same old dependency version
0.2.0
:Then, I update the Rocket dependencies to
0.2.2
:The text was updated successfully, but these errors were encountered: