You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nor error information is provided, vscode reports error in notification box that lsp failed to start The Noir Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
# Description
## Problem\*
Resolves <!-- Link to GitHub Issue -->
LSP panics when compiling Contracts with macro #4004
## Summary\*
While processing macro, we want to populate definitions instead of
returning early in case of error encountered by macro.
## Additional Context
LSP was crashing because definitions for crate were not populated when
macro error was encountered. Normally, we collect definitions and errors
are returned if encountered.
When macro is used, macro processor was returning early from collection
process and not allowing for definitions to be populated, therefore when
other parts were attempting to access collected defs , they were not
present where expected.
This PR fixes the problem by not returning early in collection process
when macro error is encountered and allowing definitions to be collected
therefore we populate crate definitions while retaining errors
encountered on the way.
## Documentation\*
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
---------
Co-authored-by: Tom French <tom@tomfren.ch>
Co-authored-by: kevaundray <kevtheappdev@gmail.com>
Aim
When opening noir source file in editor, LSP fails to start.
Expected Behavior
LSP starts normally allowing to see problems and/or use other lsp features.
Bug
LSP Panics with:
The local crate should be analyzed already
To Reproduce
The Noir Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
Installation Method
Compiled from source
Nargo Version
cc3c2c2
Additional Context
No response
Would you like to submit a PR for this Issue?
Yes
Support Needs
No response
The text was updated successfully, but these errors were encountered: