Parse candid argument early
Open
Nobody has claimed this yet.
accepted
triaged
- Dominant language
- Rust
- Stars
- 204
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
I've noticed that the --argument is not parsed when invoked, but only later one when used. Here's an example:
dfx deploy --no-wallet --argument 'version_info = "hello"'
Doing this, my canister will be built (~2mn) before I get a parse error. It would be great to fail early.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the dfx deploy entry point and trace how the --argument value is handled. Run the shown dfx deploy command with the invalid candid argument and observe when parsing fails relative to the build. Done means the parse error is reported before the canister build begins.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100