Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#[model] macro does not work in RustRover #4228

Closed
DCNick3 opened this issue Jan 23, 2024 · 1 comment
Closed

#[model] macro does not work in RustRover #4228

DCNick3 opened this issue Jan 23, 2024 · 1 comment
Labels
Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST macros

Comments

@DCNick3
Copy link
Contributor

DCNick3 commented Jan 23, 2024

Anything defined in the #[model] macro does not resolve and prevents code completion from working on basically everything in iroha_data_model. Commenting out the #[model] macro call makes everything defined there immediately available.

It would be nice to debug why this fails and make sure it either gets fixed in the intellij rust extension or worked around in our macro (for example by detecting the ij-rust invocation, see intellij-rust/intellij-rust#9711, and emitting simpler code)

When trying to manually expand the #[model] macro I get the following error message: "Failed to expand macro: cannot find ModData for mod containing the macro call (internal error)". I am also getting a lot of errors stating that the "Module model is private" (not sure why it thinks that it's private)

@DCNick3 DCNick3 added Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST macros labels Jan 23, 2024
@DCNick3
Copy link
Contributor Author

DCNick3 commented Jan 31, 2024

While this macro does seem to yield some trouble with my IDE, the effects seems to be transient =(

It disappeared after yet another cache invalidation and I can't seem to reproduce it anymore

@DCNick3 DCNick3 closed this as completed Jan 31, 2024
@DCNick3 DCNick3 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST macros
Projects
None yet
Development

No branches or pull requests

1 participant