nushell / nushell/vscode-nushell-lang

Module not found

Open
#229 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nushell
Stars
153
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Setup

  • Windows 11 Pro
  • Nushell 0.111.0
  • VSCodium 1.110.11631
  • Nushell extension 2.0.4 (same behaviour on this and the release version)

Environment

I have a suite of Docker images containing Nu scripts, grouped into modules.

In the VSCodium workspace config I have various 'nushellLanguageServer.includeDirs' defined to import modules into the source for each Docker image.

Error

Switching on today to update one of my images I noticed the following:

Image

The files / modules all exist and have correct mod.nu etc, and the image runs fine, so I am assuming this is an issue with the extension? I have switched trace on in the extension settings and don't see anything useful in there. It feels like the include directories are no longer being included by the extension / LSP?

Unfortunately both Nushell and VSCodium have had updates since I last worked on the project.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report with the workspace's nushellLanguageServer.includeDirs settings and the Docker-image module layout. Inspect the extension's language-server trace and include-directory handling to determine why existing mod.nu modules are reported missing; done means the modules resolve correctly in VSCodium.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, vscode
Domain
devtools, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.