-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Internal Compiler Error: Nightly, Rocket, Diesel #83523
Comments
@casperin: Can you share your full repository (or at least |
There is no repo. It's just me playing around locally. Here is schema and cargo.toml table! {
companies (id) {
id -> Int4,
name -> Varchar,
}
} [package]
name = "movei"
version = "0.1.0"
authors = ["..."]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = "0.4.7"
serde = "1.0"
diesel = { version = "1.4", features = ["postgres"] }
[dependencies.serde_derive]
version = "1.0"
[dependencies.rocket_contrib]
version = "0.4"
default-features = false
features = ["json", "diesel_postgres_pool"] |
@casperin: Thanks! If this crash is still happening, could you zip and upload your entire Do you remember what types of changes you were making before this crash happened? This kind of issue is caused by the state of the incremental cache, so this can only be reproduced by compiling the project multiple times (with some modifications). |
It is definitely still happening. I can't get it to compile at all anymore. It's not a problem as such (I'm just testing out various web frameworks to get a feel for them) but it has me looking for something that does not require nightly now. I was following this tutorial with slight changes yesterday. I did not encounter any compiler error then. Today when running vim again I noticed rust-analyser (coc) was crashing, so I updated it to the newest. That's really the only change I can think of. That, and changing my xterm colors and fontsize :) Actually, I was also changing the code a bit.. let me see if I can redo them... nope.. but it went to something like this (it will not compile, I was just trying to return #[post("/", data = "<new_company>", format = "application/json")]
fn create_company(conn: DbConn, new_company: Json<NewCompany>) -> Json<Company> {
let result = diesel::insert_into(companies::table)
.values(&new_company.0)
.get_result(&*conn);
result.map(Json)
} |
I've had a lot of trouble reproducing this issue, and it's been affecting some other people as well. Any help in reproducing this would be very much appreciated :) If the crash is still happening, could you create a zip file with your entire project directory (e.g. your |
The file is 250mb ... how do I get it to you? |
@casperin: Can you upload it to this Google drive folder: https://drive.google.com/drive/folders/1mRdlADbVaVnxUbF0oBcz8gGi1cuMyQm6?usp=sharing |
Done. Let me know if there is anything else I can do. We can do a zoom call if that would help. Just know that I'm in CET (it's 9pm here) |
Thanks - I'm now able to reproduce it! |
Sweet! Have fun :-) ... this totally made my day btw. My very first (very small) contribution to the greatest language. |
This is related to the presence of the If I remove the |
Duplicate of #84341. This is fixed in the latest nightly |
Played around with Rocket yesterday, and today when I tried to run/compile the same program, I got a compiler error. It is my first time on Nightly and I don't really know what to look for when searching if others have already reported it. Just reporting this, in case it is helpful for you in some way.
Code
In the error it refers to line 17. That's the
#[database("postgres")]
line. The db is running, and I have not made any changes to it since the program was running last time.Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: