rrevenantt / antlr4rust

ANTLR4 parser generator runtime for Rust programming laguage
Other
398 stars 70 forks source link

could not find `impl_tid` in `antlr_rust` #77

Open Code7R opened 1 year ago

Code7R commented 1 year ago

Situation:

Problem: the gencode does not compile!


error[E0433]: failed to resolve: could not find `impl_tid` in `antlr_rust`
   --> src/cparser.rs:419:15
    |
419 | #[antlr_rust::impl_tid]
    |               ^^^^^^^^ could not find `impl_tid` in `antlr_rust`
rrevenantt commented 1 year ago

Matching generator is on releases page: https://github.com/rrevenantt/antlr4rust/releases/tag/antlr4-4.8-2-Rust0.3.0-beta Does it not work with that one?

woile commented 9 months ago

Hi there, first thanks for pulling out all this effort for this tool, I hope its development continues 💪🏻

In my case, it did not work with the release, not a direct link to github, nor the release on cargo.

Some of the errors I see are:

cannot find derive macro `Tid` in this scope
failed to resolve: could not find `impl_tid` in `antlr_rust`
could not find `impl_tid` in `antlr_rust`
failed to resolve: could not find `type_id` in `antlr_rust`
could not find `type_id` in `antlr_rust`

Any thoughts on possible fixes?