-
Notifications
You must be signed in to change notification settings - Fork 189
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
lang: semantic tests #949
lang: semantic tests #949
Conversation
3516dbb
to
654483b
Compare
//! > semantic_diagnostics | ||
error: Identifier not found. | ||
--> get_inline_macro:2:96 | ||
let mut __get_macro_keys__ = array::ArrayTrait::new();serde::Serde::serialize(@key, ref __get_macro_keys__); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we improve formatting here? i.e. new line. I guess it's not possible to define key / suppress this? It adds noise to the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just showing the whole line where stuff happens. I think most straightforward is to add some line breaks in macro expansion. Which is what I've done in the latest commit 😉
d7023eb
to
23e568e
Compare
with concise diagnostics
23e568e
to
f2ee50c
Compare
//! > semantic_diagnostics | ||
error: Identifier not found. | ||
--> get_inline_macro:3:26 | ||
serde::Serde::serialize(@key, ref __get_macro_keys__); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we add key and world to setup and intern dojo-core in the semantic db i think these diagnostics will go away
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aah, I misunderstood...
Yeah, I can look into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To get rid of all diagnostic, we actually need the whole dojo crate to have it work.
Or mock stuff we need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Semantic tests for set! and get! macros.
#924