Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upinfer_schema! panicked using sqlite db on master #605
Comments
beatgammit
changed the title from
infer_schema! panicked
to
infer_schema! panicked using sqlite db on master
Feb 2, 2017
This comment has been minimized.
|
Can you provide the error message you received? Was the file actually present at the path you pointed to? |
This comment has been minimized.
drbawb
commented
Feb 2, 2017
•
|
Not sure if this is related, but I'm also having issues w/ The error I receive:
This is the database connection string
Let me know if there's any other debug information I could gather for you. |
This comment has been minimized.
Sound like we missed something in #565? |
This comment has been minimized.
fivethousand
commented
Feb 2, 2017
|
Same error here:
|
This comment has been minimized.
|
Nightlies later than |
This comment has been minimized.
fivethousand
commented
Feb 2, 2017
|
Oh.
(as suggested). |
This comment has been minimized.
|
The tutorial will be updated soon when the new version is released (it
doesn't track master).
fivethousand <notifications@github.com> schrieb am Do. 2. Feb. 2017 um
18:17:
… Oh.
The example (or at least the first steps) do compile and work after
removing
#![feature(proc_macro)]
(as suggested).
Maybe this should be added to the tutorial until the issue is fixed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#605 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABOX8-cvTew_qeyF-eC_p-oTg_xF-pFks5rYg-MgaJpZM4L1TB3>
.
|
This comment has been minimized.
beatgammit
commented
Feb 2, 2017
•
|
I'll try again on the beta compiler. I was using the latest nightly (from Tuesday I think). Ok, here's the error I got when running with --verbose:
|
This comment has been minimized.
beatgammit
commented
Feb 2, 2017
|
I get the same problem on the nightly you listed using diesel_codegen master:
To be clear, I can use the published crate on nightly, but using master breaks on all rustc that I've tried. |
This comment has been minimized.
beatgammit
commented
Feb 2, 2017
•
|
Nvm, it seems to fail regardless of what I try... in any case, I'm not blocked by this issue, I just wanted to make sure it was addressed before a new crate was published targeting the new rust 1.15. Let me know if there's anything else I can do to help. If it's really a bug in rust, then there's not much we can do, but I can try to make a smaller test case to reproduce it if that'll help. |
This comment has been minimized.
beatgammit
commented
Feb 2, 2017
•
|
Ok, it looks like it's potentially partially my fault. I was messing with the URI in EDIT: I fixed the URI and it builds on nightly-2017-01-19 with the version from crates.io, but fails to build from diesel_codegen master. |
This comment has been minimized.
beatgammit
commented
Feb 2, 2017
•
|
Ok, I figured it out. I was using So, TL;DR: update both EDIT: as a bonus, it seems it also compiles on 1.15 stable, which was just released like 30 minutes ago! EDIT: it also works with the versions published to crates.io. I guess I was just a worry wart. I thought it was going to be a 0.9.2 release or something, but having both at 0.10 makes sense. Thanks so much for your hard, I think this can be closed. |
This comment has been minimized.
|
Can you give an example of the |
This comment has been minimized.
beatgammit
commented
Feb 2, 2017
•
|
Yes, the
The crates you just published work OOTB with my previously working |
beatgammit commentedFeb 2, 2017
I ran into this when using diesel master in anticipation of a stable release:
And in
.env:My schema:
And my struct:
I'm using sqlite with
features = ["sqlite"]defined in my Cargo.toml. Let me know if there's any more info you need to determine whether this is an issue with my code or diesel. It works fine (on nightly) when using the latest published crate, so this is either a regression in diesel or my misunderstanding of how to define DATABASE_URL for sqlite.If I get time today I'll test against Postgres, though I prefer to prototype with sqlite since there's less hassle setting up/upgrading the db.