inshellisense icon indicating copy to clipboard operation
inshellisense copied to clipboard

Long command crash

Open dmgnr opened this issue 7 months ago • 0 comments

Describe the bug I was building Modrinth App using nix and sometimes later, inshellisense stops it and throws Node.js error.

To Reproduce Steps to reproduce the behavior:

  1. Run long running command(Mine is nix-shell -p modrinth-app)
  2. Wait for bunch of outputs
  3. See inshellisense throws error

Expected behavior Command proceeds normally and inshellisense does not throw any error.

Environment

  • OS: NixOS
  • Output of is --version: 0.0.1-rc.20
  • Nodejs Version: 20.19.2
  • Shell: Nushell
  • Shell Version: 0.104.0

Additional context

Downloading @tauri-apps/[email protected]: 5.35 MB/7.50 MB
Downloading @tauri-apps/[email protected]: 4.80 MB/8.02 MB
Fetching https://crates.io/api/v1/crates/heck/0.5.0/download -> tarballs/heck-0.5.0.tar.gz
Exception in PromiseRejectCallback:
file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:250
    return runArg(tokens.slice(1), args.slice(1), subcommand, cwd, shell, persistentOptions, acceptedTokens.concat(activeToken), fromOption, false);

RangeError: Maximum call stack size exceeded

file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:217
    else if (!tokens.at(0)?.complete) {
                     ^

RangeError: Maximum call stack size exceeded
    at Array.at (<anonymous>)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:217:22)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:236:16)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:236:16)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:236:16)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:236:16)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:236:16)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:236:16)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:236:16)
    at runArg (file:///nix/store/0i9s40xlxw1x3gi76c9210dab70l739a-inshellisense-0.0.1-rc.20/lib/node_modules/@microsoft/inshellisense/build/runtime/runtime.js:236:16)

Node.js v22.14.0

dmgnr avatar May 26 '25 03:05 dmgnr