nushell / nushell/nu_scripts

Unable to run `cargo run --timings`

Open
#1,154 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nushell
Stars
1.3k
Forks
323
Avg merge
3h 34m
Merged PRs (30d)
4

Description

cargo run --timings worked fine initially.

But once the following code was added to ​config.nu, cargo run --timings stopped working:

source "nu_scripts/custom-completions/cargo/cargo-completions.nu"

and produced this error:

Error: nu::parser::missing_flag_param

  × Missing flag argument.
   ╭─[entry #2:1:13]
 1 │ cargo build --timings
   ·             ────┬────
   ·                 ╰── flag missing string argument
   ╰────

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with config.nu and the sourced nu_scripts/custom-completions/cargo/cargo-completions.nu file. Reproduce the problem with cargo run --timings after adding the source line, then compare it with cargo build --timings using the reported missing flag argument. Done means cargo run --timings works with the completion script sourced.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.