cursorless-dev / cursorless

Don't let the cursor slow you down
https://www.cursorless.org/
MIT License
1.13k stars 79 forks source link

neovim: building the extension sometimes fails #2327

Open saidelike opened 4 months ago

saidelike commented 4 months ago

The Build test harness task fails sometimes when building the extension:

 *  Executing task in folder test-harness: pnpm run build

      0 [main] dirname (25948) child_copy: cygheap read copy failed, 0x0..
0x800010BB0, done 0, windows pid 25948, Win32 error 299
      0 [main] cygpath (26336) child_copy: cygheap read copy failed, 0x0..
0x800010B38, done 0, windows pid 26336, Win32 error 299
node:internal/modules/cjs/loader:1145
  throw err;
  ^

Error: Cannot find module 'C:\Program Files\Git\node_modules\pnpm\bin\pnpm
.cjs'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
    at Module._load (node:internal/modules/cjs/loader:983:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/
run_main:142:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v21.7.1

 *  The terminal process "C:\Program Files\Git\bin\bash.exe '--login', '-i', '-c', 'pnpm run build'" terminated with exit code: 1.
 *  Terminal will be reused by tasks, press any key to close it.

The workaround solution is just to rebuild and it works fine.

pokey commented 4 months ago

Are you using corepack?

saidelike commented 4 months ago

Are you using corepack?

I am probably not. How do i check it?