Repository navigation
fix(env): use the named completer input in env.nu for Nushell 0.116 - #3267
Conversation
Nushell 0.116 deprecates a positional completer parameter such as `context`. The env.nu completers now declare `buffer`, which Nushell 0.116 and later bind by name and earlier versions fill positionally. nu-complete vpr removes earlier pipeline elements from `buffer` before it translates `vpr` to `vp run`. Closes voidzero-dev#3127
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
2 similar comments
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review
|
On Nushell 0.116+, buffer holds the whole line up to the cursor. A quote in an earlier command ended the single-quoted fish argument, and the regex that removed earlier pipeline elements failed for multiline input and for delimiters inside quotes. The completers now use place.command, which Nushell parses, and pass the command to fish as an argument.
Nushell 0.115 and earlier pass the current command and the cursor position by position. CI has only Nushell 0.116, so call the completers in that form directly and compare the result with the completion of the same line.
Move the current-command selection and the fish call into helpers that the `vp` and `vpr` completers share, and document why `place` is `any`.
Nushell 0.115 always passes two positional values to a completer, and Nushell 0.116 binds place by name. Neither release omits place, so make the parameter required and remove the test call that omitted it.
Context
Nushell 0.116 deprecates positional completer input. A completer now gets its input by parameter name (
buffer,place,token). Theenv.nucompleters still use a positionalcontextparameter, so each completion shows a deprecation warning, and completion will stop when Nushell removes the old form. This PR moves the completers to the named input now. See Unified custom completions.Before (Nushell 0.116.1)
After