Unable to run `make backend`: : cannot find type `Acl_permission` in this scope
eswr opened this issue · comments
Koka Easwarendra commented
when i first ran make backend, i got the following error.
error: recursion limit reached while expanding the macro `table_body`
--> src/backend/database/schema.rs:173:1
|
173 | / table! {
174 | | /// Representation of the `peers` table.
175 | | ///
176 | | /// (Automatically generated by Diesel.)
... |
286 | | }
287 | | }
| |_^
|
= help: consider adding a `#![recursion_limit="128"]` attribute to your crate
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error
error: Could not compile `webapp`.
i could fix it by adding '#![recursion_limit="256"]' to /src/lib.rs
Now i got the following error
error[E0412]: cannot find type `Acl_permission` in this scope
--> src/backend/database/schema.rs:29:23
|
29 | permission -> Acl_permission,
| ^^^^^^^^^^^^^^ did you mean `permission`?
error[E0412]: cannot find type `Acl_permission` in this scope
--> src/backend/database/schema.rs:61:23
|
61 | permission -> Acl_permission,
| ^^^^^^^^^^^^^^ did you mean `permission`?
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0412`.
error: Could not compile `webapp`.
To learn more, run the command again with --verbose.
steps to reproduce:
git clone
make backend
Sascha Grunert commented
Tank you for the issue. I cannot reproduce this on my machines. Are you using the latest version of the diesel cli?
> diesel --version
diesel 1.3.1
Also did you verify with a cargo update
that you are using the latest crate versions? Which system are you running? Which rust version do you use?
Koka Easwarendra commented
it worked after cargo update
. thanks.
Sascha Grunert commented
Thank you!