Skip to content

wt config show emits false positive "not detected as integration" warning for Nushell #1735

Closed

Description

@saschabratton

wt config show correctly identifies the Nushell integration and prints:

○ nu: Already configured shell extension & completions @ ~/.config/nushell/vendor/autoload/wt.nu

But then also emits a warning for the same file:

▲ Found wt in ~/.config/nushell/vendor/autoload/wt.nu:7 but not detected as integration:
  export def "nu-complete wt" [context: string] {
  let external = (which -a wt | where type == "external")
  export def --env --wrapped wt [...args: string@"nu-complete wt"] {                                                                                                      let external = (which -a wt | where type == "external")
  msg: "wt binary not found in PATH. Install with 'cargo install --path .' or set $env.WORKTRUNK_BIN"

The flagged lines are source code from the integration file itself: variable lookups, string literals, and function definitions that happen to contain wt at a word boundary. The integration is working correctly; the warning is a false positive.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions