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

No syntax::ast::MetaItem_ in latest nightly #218

Closed
robojeb opened this Issue Feb 16, 2016 · 7 comments

Comments

Projects
None yet
4 participants
@robojeb

robojeb commented Feb 16, 2016

When compiling under the latest nightly diesel_codegen fails to compile because of renaming of types in the syntax::ast module. The error is:

unresolved import 'syntax::ast::MetaItem_'. There is no 'MetaItem_' in 'syntax::ast'

@barosl

This comment has been minimized.

Contributor

barosl commented Feb 17, 2016

This is being fixed by #217, stay tuned!

@sgrif sgrif closed this in 449519f Feb 18, 2016

@nokaa

This comment has been minimized.

nokaa commented Feb 20, 2016

In case anyone else runs into this, a temporary fix is to clone the repository and copy the files in diesel_codegen to wherever cargo stores repositories. In my case, this was

~/.multirust/toolchains/nightly/cargo/registry/src/github.com-xxxxxxxxxxxx/diesel_codegen-0.5.0

@sgrif

This comment has been minimized.

Member

sgrif commented Feb 20, 2016

Or just point your cargo file at git?

@nokaa

This comment has been minimized.

nokaa commented Feb 20, 2016

@sgrif I attempted to do that, but I was unsure what url to use for diesel_codegen. https://github.com/sgrif/diesel/diesel_codegen and https://github.com/sgrif/diesel/tree/master/diesel_codegen both failed to clone.

@sgrif

This comment has been minimized.

Member

sgrif commented Feb 20, 2016

Just point it at this repo.

On Fri, Feb 19, 2016, 7:21 PM nokaa notifications@github.com wrote:

@sgrif https://github.com/sgrif I attempted to do that, but I was
unsure what url to use for diesel_codegen.
https://github.com/sgrif/diesel/diesel_codegen and
https://github.com/sgrif/diesel/tree/master/diesel_codegen both failed to
clone.


Reply to this email directly or view it on GitHub
#218 (comment).

@nokaa

This comment has been minimized.

nokaa commented Feb 20, 2016

I didn't realise that was possible. Thank you! That is much easier.

@barosl

This comment has been minimized.

Contributor

barosl commented Feb 27, 2016

You can also "override" some crates globally. Create a file named ~/.cargo/config, and type this:

paths = [
    "/home/barosl/cloned-git-repos/diesel",
]

In this way you don't need to modify your Cargo.toml. But don't forget to remove the global path after the official version is released, otherwise you will use the outdated (cloned) version forever.

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