adjivas / ml

A library to generating UML language from Rust's project into graphiz/dot file.
https://adjivas.github.io/ml/mml
Apache License 2.0
81 stars 15 forks source link

error E0423 in syntex_syntax #8

Open jayvdb opened 2 years ago

jayvdb commented 2 years ago

When I try using this on a few projects, I get a build error

error[E0423]: expected function, tuple struct or tuple variant, found struct `ast::Name`
   --> /home/jayvdb/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.58.1/src/symbol.rs:146:27
    |
146 |                       name: ast::Name($index),
    |                             ^^^^^^^^^
...
165 | / declare_keywords! {
166 | |     // Invalid identifier
167 | |     (0,  Invalid,        "")
168 | |
...   |
231 | |     (56, CrateRoot, "{{root}}")
232 | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `declare_keywords` (in Nightly builds, run with -Z macro-backtrace for more info)

e.g. I tried this with https://github.com/swift-nav/esthri/tree/master/crates/esthri also some private projects which otherwise build normally.

robbespo00 commented 1 year ago

I have exactly the same problem

christopinka commented 1 year ago

Same. Using nightly at rustc 1.71.0-nightly (87b1f891e 2023-04-29). On m1 mac with nightly-aarch64-apple-darwin (default)

christopinka commented 1 year ago

@dan-da has something that works but has fallen behind again - https://github.com/dan-da/ml

tigger1005 commented 8 months ago

I had the same problem and solved it with pointing to the GitHub repository directly. Because on crates.io the version 0.1.41 is linked and on the git repo the newest version is 1.59.

build = "build.rs"
[build-dependencies]
mml = { git = 'https://github.com/adjivas/ml.git', branch = 'master' }

[dependencies]
mml = { git = 'https://github.com/adjivas/ml.git', branch = 'master' }

Furthermore I had to change my folder layout from:

" folder [utility]

" folder [utility]