Skip to content

File/Directory auto completion failed after execute custom command within an overlay. #6522

Closed as duplicate

Description

@WindSoilder

Describe the bug

It's a little hard to express, please see the reproduce steps.

How to reproduce

  1. create two files, test.nu, test-env.nu.
# test.nu
export alias gt = overlay use test-env.nu
# test-env.nu
export def-env tt () {
    cd /tmp
}
  1. run use test.nu *, so alias gt is introduced
  2. run gt, to activate overlay test-env
  3. run tt, then the current directory is changed to /tmp.
  4. then we can see the path auto completion is broken..

Expected behavior

Auto completion should work as expected

Screenshots

asciicast

Configuration

key value
version 0.68.0
branch
commit_hash b0e5723
build_os macos-x86_64
build_target x86_64-apple-darwin
rust_version rustc 1.63.0 (4b91a6ea7 2022-08-08)
rust_channel stable-x86_64-apple-darwin
cargo_version cargo 1.63.0 (fd9c4297c 2022-07-01)
pkg_version 0.68.0
build_time 2022-09-06 20:01:28 +00:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins

Additional context

It only happened when using alias with overlay use.
If I use overlay use directly, the auto completion works fine.
Or if I use use, the auto completion also works.

Activity

  1. added
    category:bug
    A:completions
    on Sep 8, 2022
  2. kronberger-droid commented on Nov 13, 2026

    @kronberger-droid
    Contributor

    This is the same problem as #19449, which got fixed on main with #19458 and will be in the next release.
    Please reopen if completion is still stale after an overlay use through an alias with that release.

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

    A:completionscategory:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions