Created
December 28, 2024 13:26
-
-
Save vielmetti/d2f7df6ecccd577c1da9228ed5d24a3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p $(dirname "`cargo run config db-path`") | |
Compiling frozenbbs v1.1.0 (/Users/emv/src/github.com/kstrauser/frozenbbs) | |
error[E0432]: unresolved import `super::schema::board_states` | |
--> src/db/board_states.rs:2:20 | |
| | |
2 | use super::schema::board_states::{dsl, table}; | |
| ^^^^^^^^^^^^ could not find `board_states` in `schema` | |
error[E0432]: unresolved import `super::schema::boards` | |
--> src/db/boards.rs:2:20 | |
| | |
2 | use super::schema::boards::{dsl, table}; | |
| ^^^^^^ could not find `boards` in `schema` | |
error[E0432]: unresolved import `super::schema::posts` | |
--> src/db/posts.rs:2:20 | |
| | |
2 | use super::schema::posts::{dsl as posts_dsl, table}; | |
| ^^^^^ could not find `posts` in `schema` | |
error[E0432]: unresolved import `super::schema::users` | |
--> src/db/posts.rs:3:20 | |
| | |
3 | use super::schema::users::dsl as users_dsl; | |
| ^^^^^ could not find `users` in `schema` | |
error[E0432]: unresolved import `super::schema::users` | |
--> src/db/users.rs:2:20 | |
| | |
2 | use super::schema::users::{dsl, table}; | |
| ^^^^^ could not find `users` in `schema` | |
error[E0432]: unresolved imports `super::schema::board_states`, `super::schema::boards`, `super::schema::posts`, `super::schema::users` | |
--> src/db/models.rs:2:21 | |
| | |
2 | use super::schema::{board_states, boards, posts, users}; | |
| ^^^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^ no `users` in `db::schema` | |
| | | | | |
| | | no `posts` in `db::schema` | |
| | no `boards` in `db::schema` | |
| no `board_states` in `db::schema` | |
| | |
= help: consider importing this module instead: | |
crate::db::board_states | |
= help: consider importing this module instead: | |
crate::db::boards | |
= help: consider importing this module instead: | |
crate::db::posts | |
= help: consider importing this module instead: | |
crate::db::users | |
error[E0433]: failed to resolve: could not find `boards` in `schema` | |
--> src/db/models.rs:18:42 | |
| | |
18 | #[diesel(table_name = crate::db::schema::boards)] | |
| ^^^^^^ could not find `boards` in `schema` | |
error[E0433]: failed to resolve: could not find `posts` in `schema` | |
--> src/db/models.rs:52:42 | |
| | |
52 | #[diesel(table_name = crate::db::schema::posts)] | |
| ^^^^^ could not find `posts` in `schema` | |
error[E0433]: failed to resolve: could not find `users` in `schema` | |
--> src/db/models.rs:82:42 | |
| | |
82 | #[diesel(table_name = crate::db::schema::users)] | |
| ^^^^^ could not find `users` in `schema` | |
error[E0433]: failed to resolve: could not find `board_states` in `schema` | |
--> src/db/models.rs:136:42 | |
| | |
136 | #[diesel(table_name = crate::db::schema::board_states)] | |
| ^^^^^^^^^^^^ could not find `board_states` in `schema` | |
error[E0433]: failed to resolve: could not find `boards` in `schema` | |
--> src/db/models.rs:18:42 | |
| | |
18 | #[diesel(table_name = crate::db::schema::boards)] | |
| ^^^^^^ could not find `boards` in `schema` | |
| | |
help: consider importing this module | |
| | |
1 + use crate::db::boards; | |
| | |
help: if you import `boards`, refer to it directly | |
| | |
18 - #[diesel(table_name = crate::db::schema::boards)] | |
18 + #[diesel(table_name = boards)] | |
| | |
error[E0433]: failed to resolve: could not find `posts` in `schema` | |
--> src/db/models.rs:52:42 | |
| | |
52 | #[diesel(table_name = crate::db::schema::posts)] | |
| ^^^^^ could not find `posts` in `schema` | |
| | |
help: consider importing this module | |
| | |
1 + use crate::db::posts; | |
| | |
help: if you import `posts`, refer to it directly | |
| | |
52 - #[diesel(table_name = crate::db::schema::posts)] | |
52 + #[diesel(table_name = posts)] | |
| | |
error[E0433]: failed to resolve: could not find `users` in `schema` | |
--> src/db/models.rs:82:42 | |
| | |
82 | #[diesel(table_name = crate::db::schema::users)] | |
| ^^^^^ could not find `users` in `schema` | |
| | |
help: consider importing this module | |
| | |
1 + use crate::db::users; | |
| | |
help: if you import `users`, refer to it directly | |
| | |
82 - #[diesel(table_name = crate::db::schema::users)] | |
82 + #[diesel(table_name = users)] | |
| | |
error[E0433]: failed to resolve: could not find `board_states` in `schema` | |
--> src/db/models.rs:136:42 | |
| | |
136 | #[diesel(table_name = crate::db::schema::board_states)] | |
| ^^^^^^^^^^^^ could not find `board_states` in `schema` | |
| | |
help: consider importing this module | |
| | |
1 + use crate::db::board_states; | |
| | |
help: if you import `board_states`, refer to it directly | |
| | |
136 - #[diesel(table_name = crate::db::schema::board_states)] | |
136 + #[diesel(table_name = board_states)] | |
| | |
Some errors have detailed explanations: E0432, E0433. | |
For more information about an error, try `rustc --explain E0432`. | |
error: could not compile `frozenbbs` (lib) due to 14 previous errors | |
diesel --database-url "`cargo run config db-path`" migration run | |
Compiling frozenbbs v1.1.0 (/Users/emv/src/github.com/kstrauser/frozenbbs) | |
error[E0432]: unresolved import `super::schema::board_states` | |
--> src/db/board_states.rs:2:20 | |
| | |
2 | use super::schema::board_states::{dsl, table}; | |
| ^^^^^^^^^^^^ could not find `board_states` in `schema` | |
error[E0432]: unresolved import `super::schema::boards` | |
--> src/db/boards.rs:2:20 | |
| | |
2 | use super::schema::boards::{dsl, table}; | |
| ^^^^^^ could not find `boards` in `schema` | |
error[E0432]: unresolved import `super::schema::posts` | |
--> src/db/posts.rs:2:20 | |
| | |
2 | use super::schema::posts::{dsl as posts_dsl, table}; | |
| ^^^^^ could not find `posts` in `schema` | |
error[E0432]: unresolved import `super::schema::users` | |
--> src/db/posts.rs:3:20 | |
| | |
3 | use super::schema::users::dsl as users_dsl; | |
| ^^^^^ could not find `users` in `schema` | |
error[E0432]: unresolved import `super::schema::users` | |
--> src/db/users.rs:2:20 | |
| | |
2 | use super::schema::users::{dsl, table}; | |
| ^^^^^ could not find `users` in `schema` | |
error[E0432]: unresolved imports `super::schema::board_states`, `super::schema::boards`, `super::schema::posts`, `super::schema::users` | |
--> src/db/models.rs:2:21 | |
| | |
2 | use super::schema::{board_states, boards, posts, users}; | |
| ^^^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^ no `users` in `db::schema` | |
| | | | | |
| | | no `posts` in `db::schema` | |
| | no `boards` in `db::schema` | |
| no `board_states` in `db::schema` | |
| | |
= help: consider importing this module instead: | |
crate::db::board_states | |
= help: consider importing this module instead: | |
crate::db::boards | |
= help: consider importing this module instead: | |
crate::db::posts | |
= help: consider importing this module instead: | |
crate::db::users | |
error[E0433]: failed to resolve: could not find `boards` in `schema` | |
--> src/db/models.rs:18:42 | |
| | |
18 | #[diesel(table_name = crate::db::schema::boards)] | |
| ^^^^^^ could not find `boards` in `schema` | |
error[E0433]: failed to resolve: could not find `posts` in `schema` | |
--> src/db/models.rs:52:42 | |
| | |
52 | #[diesel(table_name = crate::db::schema::posts)] | |
| ^^^^^ could not find `posts` in `schema` | |
error[E0433]: failed to resolve: could not find `users` in `schema` | |
--> src/db/models.rs:82:42 | |
| | |
82 | #[diesel(table_name = crate::db::schema::users)] | |
| ^^^^^ could not find `users` in `schema` | |
error[E0433]: failed to resolve: could not find `board_states` in `schema` | |
--> src/db/models.rs:136:42 | |
| | |
136 | #[diesel(table_name = crate::db::schema::board_states)] | |
| ^^^^^^^^^^^^ could not find `board_states` in `schema` | |
error[E0433]: failed to resolve: could not find `boards` in `schema` | |
--> src/db/models.rs:18:42 | |
| | |
18 | #[diesel(table_name = crate::db::schema::boards)] | |
| ^^^^^^ could not find `boards` in `schema` | |
| | |
help: consider importing this module | |
| | |
1 + use crate::db::boards; | |
| | |
help: if you import `boards`, refer to it directly | |
| | |
18 - #[diesel(table_name = crate::db::schema::boards)] | |
18 + #[diesel(table_name = boards)] | |
| | |
error[E0433]: failed to resolve: could not find `posts` in `schema` | |
--> src/db/models.rs:52:42 | |
| | |
52 | #[diesel(table_name = crate::db::schema::posts)] | |
| ^^^^^ could not find `posts` in `schema` | |
| | |
help: consider importing this module | |
| | |
1 + use crate::db::posts; | |
| | |
help: if you import `posts`, refer to it directly | |
| | |
52 - #[diesel(table_name = crate::db::schema::posts)] | |
52 + #[diesel(table_name = posts)] | |
| | |
error[E0433]: failed to resolve: could not find `users` in `schema` | |
--> src/db/models.rs:82:42 | |
| | |
82 | #[diesel(table_name = crate::db::schema::users)] | |
| ^^^^^ could not find `users` in `schema` | |
| | |
help: consider importing this module | |
| | |
1 + use crate::db::users; | |
| | |
help: if you import `users`, refer to it directly | |
| | |
82 - #[diesel(table_name = crate::db::schema::users)] | |
82 + #[diesel(table_name = users)] | |
| | |
error[E0433]: failed to resolve: could not find `board_states` in `schema` | |
--> src/db/models.rs:136:42 | |
| | |
136 | #[diesel(table_name = crate::db::schema::board_states)] | |
| ^^^^^^^^^^^^ could not find `board_states` in `schema` | |
| | |
help: consider importing this module | |
| | |
1 + use crate::db::board_states; | |
| | |
help: if you import `board_states`, refer to it directly | |
| | |
136 - #[diesel(table_name = crate::db::schema::board_states)] | |
136 + #[diesel(table_name = board_states)] | |
| | |
Some errors have detailed explanations: E0432, E0433. | |
For more information about an error, try `rustc --explain E0432`. | |
error: could not compile `frozenbbs` (lib) due to 14 previous errors | |
Running migration 2024-11-23-073353_create_users | |
Running migration 2024-11-23-073848_create_boards | |
Running migration 2024-11-23-164017_create_posts | |
Running migration 2024-11-27-191209_create_board_states |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment