nu_scripts icon indicating copy to clipboard operation
nu_scripts copied to clipboard

Job.nu script no longer works

Open JonathanReeve opened this issue 2 years ago • 2 comments

See this line, where the command spawn takes command: block as an argument, but according to the error, "blocks are not supported as values," and rather one should "use 'closure' instead of 'block.'" But changing that line to command: closure also fails, with "cannot convert closure to a string."

I'm on nu 0.84.0.

JonathanReeve avatar Sep 11 '23 01:09 JonathanReeve

@WindSoilder, are you still using pueue? If so, can you take a look at this?

fdncred avatar Sep 11 '23 11:09 fdncred

Sure. Sorry that I've changed to command: closure locally, but forget to create a pr.

But changing that line to command: closure also fails, with "cannot convert closure to a string."

@JonathanReeve Would you please provide a small reproducable code? Change to command: closure works fine for me

WindSoilder avatar Sep 12 '23 07:09 WindSoilder

Merged PR #602 supposedly solved this, with no response on whether the reporter still has the issue. It seems reasonable to close this ticket as complete.

Kissaki avatar Apr 20 '25 07:04 Kissaki