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
Open noir source document in editor with LSP support (vscode)
Expected Behavior
Noir source code opened normally with "some" LSP features available.
Bug
LSP craching with
[Info - 7:52:42 AM] Starting LSP client using command: /mnt/user-data/jan/aztec-packages/noir/target/release/nargo lsp
{"codeLensProvider":{"resolveProvider":false},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"nargo":{"tests":{"fetch":true,"run":true,"update":true}},"textDocumentSync":1,"typeDefinitionProvider":true,"resolvedTextDocumentSync":{"openClose":true,"change":1,"save":{"includeText":false}}}
Failed to Resolve Workspace - Nargo.toml not found for file: "/mnt/user-data/jan/aztec-packages/noir/tooling/nargo_fmt/tests/expected/contract.nr" (jsonrpc error -32803)
[Info - 7:52:42 AM] Connection to server got closed. Server will restart.
true
[Info - 7:52:42 AM] Starting LSP client using command: /mnt/user-data/jan/aztec-packages/noir/target/release/nargo lsp
LSP starting...
[Info - 7:52:42 AM] Starting LSP client using command: /mnt/user-data/jan/aztec-packages/noir/target/release/nargo lsp
{"codeLensProvider":{"resolveProvider":false},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"nargo":{"tests":{"fetch":true,"run":true,"update":true}},"textDocumentSync":1,"typeDefinitionProvider":true,"resolvedTextDocumentSync":{"openClose":true,"change":1,"save":{"includeText":false}}}
Failed to Resolve Workspace - Nargo.toml not found for file: "/mnt/user-data/jan/aztec-packages/noir/tooling/nargo_fmt/tests/expected/contract.nr" (jsonrpc error -32803)
[Error - 7:52:42 AM] 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 crash when source file not in workspace #4143
## Summary\*
## Additional Context
## 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.
Aim
Open noir source document in editor with LSP support (vscode)
Expected Behavior
Noir source code opened normally with "some" LSP features available.
Bug
LSP craching with
Reported by @benesjan - Thank You!
To Reproduce
Installation Method
Compiled from source
Nargo Version
nargo version = 0.23.0 (git version hash: 602f23f, is dirty: false)
Additional Context
This happens because this specific workspace will lack
noir workspace
definition in form ofNargo.toml
in ancestor folder structure.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: