Closed ffMathy closed 5 months ago
I just tried using #296 against my repo, and I get the following log output:
[INFO 21:42:21] [Vitest] Extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace. [INFO 21:42:21] [API] Vitest config {"folder":{"uri":{"$mid":1,"fsPath":"/Users/redacted/Documents/src/redacted","external":"file:///Users/redacted/Documents/src/redacted","path":"/Users/redacted/Documents/src/redacted","scheme":"file"},"name":"redacted","index":0},"id":"/Users/redacted/Documents/src/redacted/vitest.workspace.ts","vitestNodePath":"file:///Users/redacted/Documents/src/redacted/nodemodules/.pnpm/vitest@1.4.0@types+node@20.11.27_@vitest+ui@1.3.1_jsdom@24.0.0_less@4.1.3_stylus@0.59.0/node_modules/vitest/dist/node.js","version":"1.4.0"} [INFO 21:42:21] [API] Running Vitest: v1.4.0 (redacted) [INFO 21:42:22] [WORKER] onMessage {"type":"init","meta":[{"vitestNodePath":"file:///Users/redacted/Documents/src/redacted/nodemodules/.pnpm/vitest@1.4.0@types+node@20.11.27_@vitest+ui@1.3.1_jsdom@24.0.0_less@4.1.3_stylus@0.59.0/node_modules/vitest/dist/node.js","folder":"/Users/redacted/Documents/src/redacted","workspaceFile":"/Users/redacted/Documents/src/redacted/vitest.workspace.ts","id":"/Users/redacted/Documents/src/redacted/vitest.workspace.ts"}]} [INFO 21:42:22] [WORKER] initializing [INFO 21:42:22] [WORKER] loading vitest instance {"vitestNodePath":"file:///Users/redacted/Documents/src/redacted/nodemodules/.pnpm/vitest@1.4.0@types+node@20.11.27_@vitest+ui@1.3.1_jsdom@24.0.0_less@4.1.3_stylus@0.59.0/node_modules/vitest/dist/node.js","folder":"/Users/redacted/Documents/src/redacted","workspaceFile":"/Users/redacted/Documents/src/redacted/vitest.workspace.ts","id":"/Users/redacted/Documents/src/redacted/vitest.workspace.ts"} [INFO 21:42:22] [WORKER] importing vitest node file:///Users/redacted/Documents/src/redacted/nodemodules/.pnpm/vitest@1.4.0@types+node@20.11.27_@vitest+ui@1.3.1_jsdom@24.0.0_less@4.1.3_stylus@0.59.0/node_modules/vitest/dist/node.js [INFO 21:42:22] [WORKER] creating vitest instance
So it is freezing at await vitestNode.createVitest
. It never terminates, nor throws an exception. How can I debug it further?
Interesting. I was suspecting something with the import. I had a .npmrc
file which contained:
symlink=true
I deleted it, deleted node_modules
and ran pnpm install
again. That worked. Hmmm. Perhaps that's repro enough (just having symlink to true for PNPM).
I tried reproing the .npmrc
thing with the sample repos. I couldn't make it re-occur. I suspect maybe my node_modules
folder maybe got corrupted? It's just strange.
Any advice I can use to continue debugging is still useful.
There is still no repro. Let's close this issue for now, I cannot give you more debugging tips unfortunately.
Describe the bug
Reproduction
Repro will come soon.
System Info
Used Package Manager
pnpm
Validations