Error "error: unexpected argument {part_of_path} found" when calling the Compile or Info command, if there is a space in the path of the project from which the command is called #78
Trying to execute commands Compile | Info | Profile:
Expected Behavior
The commands will be executed
Bug
My project path has spaces in the folder name:
/home/user/myRepos/Test repo/aztec.js-test/aztec-app
When i try to run Compile or Info, i get an error in the console:
Executing task: /home/user/.aztec/bin/aztec-nargo compile --program-dir /home/user/myRepos/Test repo/aztec.js-test/aztec-app/src/contracts --package boxreact
error: unexpected argument 'repo/aztec.js-test/aztec-app/src/contracts' found
Usage: nargo compile [OPTIONS]
For more information, try '--help'.
* The terminal process "/home/user/.aztec/bin/aztec-nargo 'compile', '--program-dir', '/home/user/myRepos/Test repo/aztec.js-test/aztec-app/src/contracts', '--package', 'boxreact'" terminated with exit code: 2.
* Press any key to close the terminal.
if i move my project to the other folder (path to folder without spaces), like:
/home/user/myRepos/OtherRepo - all working fine
Open VScode with project, which created in first step
Open file: src/contracts/src/main.nr
Press the 'Compile' over contract name
Environment
Ubuntu 22.04.3 LTS
nargo version = 0.25.0
noirc version = 0.25.0+b11911b9d664d37ba21edaee99d4e027e25a9d70
(git version hash: b11911b9d664d37ba21edaee99d4e027e25a9d70, is dirty: false)
Additional Context
ill try to fix it in vscode-noir/src/extension.ts in registerCommands method, but its didnt help me
result:
* Executing task: /home/user/.aztec/bin/aztec-nargo compile --program-dir "/home/user/myRepos/Test repo/aztec.js-test/aztec-app/src/contracts" --package boxreact
error: unexpected argument 'repo/aztec.js-test/aztec-app/src/contracts"' found
Usage: nargo compile [OPTIONS]
For more information, try '--help'.
* The terminal process "/home/user/.aztec/bin/aztec-nargo 'compile', '--program-dir', '"/home/user/myRepos/Test repo/aztec.js-test/aztec-app/src/contracts"', '--package', 'boxreact'" terminated with exit code: 2.
* Press any key to close the terminal.
Aim
Trying to execute commands Compile | Info | Profile:![image](https://github.com/noir-lang/vscode-noir/assets/78767328/ac4eea40-023a-435b-81dd-e31425477f1a)
Expected Behavior
The commands will be executed
Bug
My project path has spaces in the folder name:
/home/user/myRepos/Test repo/aztec.js-test/aztec-app
When i try to run Compile or Info, i get an error in the console:
if i move my project to the other folder (path to folder without spaces), like:
/home/user/myRepos/OtherRepo
- all working fineTo Reproduce
Environment
Ubuntu 22.04.3 LTS
nargo version = 0.25.0 noirc version = 0.25.0+b11911b9d664d37ba21edaee99d4e027e25a9d70 (git version hash: b11911b9d664d37ba21edaee99d4e027e25a9d70, is dirty: false)
Additional Context
ill try to fix it in![image](https://github.com/noir-lang/vscode-noir/assets/78767328/16f12110-c511-4d2a-b9af-74e7d997a8bf)
vscode-noir/src/extension.ts
inregisterCommands
method, but its didnt help meresult:
Would you like to submit a PR for this Issue?
Maybe
Support Needs
Where i need to look to fix that?