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

Error when testing crate diesel_codegen #329

Closed
Arzte opened this Issue May 14, 2016 · 7 comments

Comments

Projects
None yet
2 participants
@Arzte

Arzte commented May 14, 2016

I'm getting this error after running cargo test, I'm using the nightly version diesel v0.6.1 (https://github.com/diesel-rs/diesel.git#2af2eaa3) in my dependencies, (which looks like diesel_codegen = { git = "https://github.com/diesel-rs/diesel.git", default-features = false, features=["nightly", "sqlite"] } in my cargo.toml) however I'm unsure whats causing this since it seems to come and go after installing diesel_cli. This is reproducable off and on locally and on travis.

error: plugin `diesel_codegen` only found in rlib format, but must be available in dylib format

My rust version is:
rustc 1.10.0-nightly (d91f8ab0f 2016-05-07)
My cargo version is:
cargo 0.11.0-nightly (b304305 2016-05-06)

@sgrif

This comment has been minimized.

Member

sgrif commented May 15, 2016

You should be able to work around this temporarily by cloning the repo down and pointing at the path instead of at git.

@sgrif

This comment has been minimized.

Member

sgrif commented May 15, 2016

Caused by f90217f

@Arzte

This comment has been minimized.

Arzte commented May 15, 2016

Same issue when cloning it down and pointing at the path. https://travis-ci.org/Alchemist-rs/Alchemist/jobs/130398227

@sgrif

This comment has been minimized.

Member

sgrif commented May 15, 2016

I'll see if I can come up with reliable steps to reproduce, as I've seen this locally intermittently but I'm not sure what caused it. In the short term you can just revert the commit I referenced in the previous comment to work around

@Arzte

This comment has been minimized.

Arzte commented Jun 17, 2016

Any update on this?

@sgrif

This comment has been minimized.

Member

sgrif commented Jun 17, 2016

Haven't had a ton of time to look into it yet

@sgrif

This comment has been minimized.

Member

sgrif commented Dec 16, 2017

I fixed it by deleting diesel_codegen.

@sgrif sgrif closed this Dec 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment