The LSP should add the --program-dir
flag to the test command
#2291
Labels
enhancement
New feature or request
--program-dir
flag to the test command
#2291
Problem
Currently, if you have a vscode project that doesn't have a
Nargo.toml
file at the root, thenargo test
command panics because it does not think there is any nargo package in the project. However, there could be a subdirectory that contains a nargo package and we're running a test inside of it. Since the LSP knows where the root of that workspace is, we can add--program-dir
to thenargo test
command and it'll work.See also noir-lang/vscode-noir#28 for more information.
Happy Case
Using the
Run Test
lens in vscode should always work.Alternatives Considered
No response
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: