Skip to content

bug: node_modules are visited during workspace lookup in npm-based projects #486

@r4zendev

Description

@r4zendev

Neovim version (nvim -v)

nightly

Operating system/version

MacOS Sonoma 14.3

Describe the bug

In any JavaScript/TypeScript monorepo which has multiple nested packages and non-hoisted node_modules folders - the node_modules of those workspaces are still being walked and makes the neovim instance freeze for unreasonable amount of time and add tasks from installed modules making it really annoying and hard to work with. A possible workaround is to check for whether currently walked directory matches node_modules, which I tested myself locally and submitted a PR for in #485

What is the severity of this bug?

tolerable (can work around it)

Steps To Reproduce

  1. open any medium-/high- sized TypeScript monorepo with multiple packages and non-hoisted node_modules
  2. Open neovim and run :OverseerRun
  3. Get your Neovim frozen for like 10-20 seconds before the task list is parsed

Expected Behavior

Avoid node_modules during traversing

Minimal example file

No response

Minimal init.lua

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions