Skip to content

cannot load std from a config file #8772

Closed

Description

@amtoine

Describe the bug

the standard library cannot be loaded from a config file.

the error looks like

Error: nu::parser::module_not_found

  × Module not found.
     ╭─[/home/amtoine/.config/nushell/config.nu:117:1]
 117 │
 118 │ use std clip
     ·     ─┬─
     ·      ╰── module not found
     ╰────
  help: module files and their paths must be available before your script is run as parsing occurs before anything is
        evaluated

How to reproduce

  1. add use std clip to config.nu
  2. save
  3. open nushell

Note
the error is the same with use clip and from env.nu or a custom module loaded from config.nu

Expected behavior

it should just work from anywhere.

Screenshots

No response

Configuration

key value
version 0.78.1
branch main
commit_hash 54a1899
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.66.1 (90743e729 2023-01-10)
rust_channel 1.66.1-x86_64-unknown-linux-gnu
cargo_version cargo 1.66.1 (ad779e08b 2023-01-10)
build_time 2023-04-05 19:40:51 +02:00
build_rust_channel release
features default, zip
installed_plugins len

Additional context

No response

Activity

  1. added this to the v0.79.0 milestone on Apr 7, 2023
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions