Skip to content
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

Compilation errors in 0.4.4 #37

Closed
kornelski opened this issue Oct 10, 2018 · 3 comments
Closed

Compilation errors in 0.4.4 #37

kornelski opened this issue Oct 10, 2018 · 3 comments

Comments

@kornelski
Copy link
Contributor

error[E0412]: cannot find type ErrorKind in this scope

ructe-0.4.4/src/errors.rs:8:29
|
8 | static ref ERR: ErrorKind = def_error($msg);
| ^^^^^^^^^ not found in this scope

ructe-0.4.4/src/templateexpression.rs:199:26
|
199 | return_error!(err_str!("Expected "{""), char!('{')),
| -------------------------- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
1 | use nom::ErrorKind;
|
1 | use std::io::ErrorKind;
|

no method named clone found for type templateexpression::template_block::ERR in the current scope
--> ructe-0.4.4/src/errors.rs:10:13
|
10 | ERR.clone()
| ^^^^^
|

ructe-0.4.4/src/templateexpression.rs:199:26
|
199 | return_error!(err_str!("Expected "{""), char!('{')),
| --------------------------
| |
| method clone not found for this
| in this macro invocation
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item clone, perhaps you need to implement it:
candidate #1: std::clone::Clone
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

@kaj
Copy link
Owner

kaj commented Oct 10, 2018

Yes, there was a change in nom 4.1.0 that made ructe break. I havn't really figured out how to handle the change yet, but I did release ructe 0.4.6, which locks nom at version 4.0 so it should compile.

Ok?

@kornelski
Copy link
Contributor Author

kornelski commented Oct 10, 2018

I had ructe = "0.4.0" requirement in my Cargo.toml, and for some reason cargo update picks 0.4.4, not 0.4.6. Can you yank 0.4.4?

@kaj
Copy link
Owner

kaj commented Oct 14, 2018

Sorry for the delay, yanked 0.4.4 now.

@kaj kaj closed this as completed Oct 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants