Skip to content

Config is not updated properly #5986

Closed

Description

@kubouch

Describe the bug

Strange issue related to overlays and config.

How to reproduce

  1. Move config.nu and env.nu somewhere so that you have no config files
  2. Put the following to a new config.nu:
overlay new spam

let-env config = { table_mode: light }
  1. Put the following to a new env.nu:
overlay new base
  1. Launch nu
  2. $env.config will show the "light" table mode correctly but ls will show the old rounded table
  3. exit
  4. Remove the overlay new spam line from config.nu
  5. Launch nu
  6. Everything works as it should

Expected behavior

The config changes should be visible in point 4 even when the overlay is active.

Screenshots

No response

Configuration

key value
version 0.65.1
branch
commit_hash f3036b8
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.62.0 (a8314ef7d 2022-06-27)
rust_channel stable-x86_64-unknown-linux-gnu
cargo_version cargo 1.62.0 (a748cf5a3 2022-06-08)
pkg_version 0.65.1
build_time 2022-07-11 23:59:41 +03:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins gstat

Additional context

Curiously, in my real config, the effect is the opposite: Setting table_mode to light works as expected but shows up as rounded when running $env.config.

Activity

  1. added
    category:bug
    on Jul 7, 2022
  2. kubouch commented on Jul 7, 2022

    @kubouch
    ContributorAuthor

    I think what might be happening is that each overlay gets its own config somehow and they are shadowed.

    There might also be missing merge_delta() somewhere between evaluating the config files. Or there might be some extra config file being read that shouldn't be read, or they are not read in the right order (see #5983).

  3. added
    status:investigate
    on Jul 7, 2022
  4. kubouch commented on Jul 7, 2022

    @kubouch
    ContributorAuthor

    Seems like the default config might be read by default which I think it shouldn't if there is an existing config.

  5. added this to the v0.106.0 milestone on Jul 12, 2025
  6. added a commit that references this issue on Jul 13, 2025
    60ca889
  7. added a commit that references this issue on Aug 25, 2025
    8021f98
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

    category:bugstatus:investigate

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions