Skip to content

Cannot find * in crate::codegen #58

@clifton

Description

@clifton

Bug report

during a cargo xtask install i get the following error

error[E0432]: unresolved import `crate::codegen::SyntaxKind`
 --> crates/parser/src/lexer.rs:8:5
  |
8 | use crate::codegen::SyntaxKind;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SyntaxKind` in `codegen`

error[E0432]: unresolved imports `crate::codegen::get_nodes`, `crate::codegen::Node`, `crate::codegen::SyntaxKind`
 --> crates/parser/src/parse/libpg_query_node.rs:4:15
  |
4 |     codegen::{get_nodes, Node, SyntaxKind},
  |               ^^^^^^^^^  ^^^^  ^^^^^^^^^^ no `SyntaxKind` in `codegen`
  |               |          |
  |               |          no `Node` in `codegen`
  |               no `get_nodes` in `codegen`
  |
  = help: consider importing one of these items instead:
          cstree::util::NodeOrToken::Node
          petgraph::data::Element::Node
          petgraph::graph::Node
          pg_query::Node
          pg_query::protobuf::node::Node
          pg_query_proto_parser::FieldType::Node
          pg_query_proto_parser::Node

error[E0432]: unresolved import `crate::codegen::SyntaxKind`
 --> crates/parser/src/parse/source.rs:1:5
  |
1 | use crate::codegen::SyntaxKind;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SyntaxKind` in `codegen`

error[E0432]: unresolved import `crate::codegen::SyntaxKind`
 --> crates/parser/src/parse/statement.rs:6:5
  |
6 | use crate::codegen::SyntaxKind;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SyntaxKind` in `codegen`

error[E0432]: unresolved import `crate::codegen::SyntaxKind`
 --> crates/parser/src/parse/statement_start.rs:4:5
  |
4 | use crate::codegen::SyntaxKind;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SyntaxKind` in `codegen`

error[E0432]: unresolved import `crate::codegen::SyntaxKind`
  --> crates/parser/src/parser.rs:11:5
   |
11 | use crate::codegen::SyntaxKind;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SyntaxKind` in `codegen`

error[E0432]: unresolved import `crate::codegen::SyntaxKind`
 --> crates/parser/src/sibling_token.rs:1:5
  |
1 | use crate::codegen::SyntaxKind;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SyntaxKind` in `codegen`

error[E0432]: unresolved import `crate::codegen::SyntaxKind`
 --> crates/parser/src/syntax_node.rs:9:5
  |
9 | use crate::codegen::SyntaxKind;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SyntaxKind` in `codegen`

error[E0432]: unresolved import `crate::codegen::SyntaxKind`
  --> crates/parser/src/lib.rs:32:9
   |
32 | pub use crate::codegen::SyntaxKind;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SyntaxKind` in `codegen`

error[E0412]: cannot find type `TokenProperty` in module `crate::codegen`
   --> crates/parser/src/parse/libpg_query_node.rs:416:35
    |
416 | fn cmp_tokens(p: &crate::codegen::TokenProperty, token: &crate::lexer::Token) -> bool {
    |                                   ^^^^^^^^^^^^^ not found in `crate::codegen`

System information

  • OS: WSL2 ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions