Skip to content

Config is not updated properly #5986

@kubouch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions