noir-lang / vscode-noir

Apache License 2.0
6 stars 7 forks source link

feat: Add execute command to handle Execute code lens #31

Closed phated closed 1 year ago

phated commented 1 year ago

Description

Problem*

Ref https://github.com/noir-lang/noir/pull/2330

Summary*

This adds a nargo.execute command that will be triggered via the > Execute code lens.

Additional Context

PR Checklist*

TomAFrench commented 1 year ago

I'm building this with npm run package (and then selecting "Install Extension VSIX" in the sidebar) and running it with Nargo built from your PR. I'm not getting any display and a "Unable to locate any nargo binary. Did you install it?" error.

Should I be doing something different to test this?

phated commented 1 year ago

So the published extension doesn't work for you either? I use a custom absolute path to my nargo binary since I iterate on the features so I've not experienced this. Seems entirely unrelated to this PR

TomAFrench commented 1 year ago

Yeah, I really doubt it has anything to do with this PR. Just trying to get to a state where I can meaningfully test it.

phated commented 1 year ago

I'm guessing that your vscode shell doesn't have access to a nargo in its path. I'm going to see if I can replicate but you can also add a hardcoded path in settings.

TomAFrench commented 1 year ago

I don't get any errors on the published extension (v0.0.3) but nothing past syntax highlighting either. I've switched back to the locally installed extension and don't get the error anymore but no output either. Adding an explicit path causes no change.

TomAFrench commented 1 year ago

Ah ha! I've managed to get signs of life.

TomAFrench commented 1 year ago

Ok, I can execute circuits using this now.