noir
noir copied to clipboard
lsp panics when contract with #[event]
Aim
Open noir source file with contract which uses events
Expected Behavior
LSP to function as usual
Bug
lsp crashes with
method not found
To Reproduce
- Open contract source code with
#[event]
- Editor reports lsp crash
Installation Method
Compiled from source
Nargo Version
nargo version = 0.23.0 (git version hash: 882639de109f0ecccf2a8522e2181a301145e19f, is dirty: false)
Additional Context
Sample snippet
contract Foo {
#[event]
struct FooEvent {
value: Field,
}
}
Would you like to submit a PR for this Issue?
Yes
Support Needs
No response