eclipse-langium / langium

Next-gen language engineering / DSL framework
https://langium.org/
MIT License
740 stars 66 forks source link

langium-development: The vitest configs in generator langium templates prevent the vitest extension to work in the repo #1564

Open cdietrich opened 4 months ago

cdietrich commented 4 months ago
[Worker] failed to load config from /Users/dietrich/git/langium/packages/generator-langium/templates/web/vite.config.ts
[Error 07:26:56] [Error Error] Vitest failed to start: 

r
Error: Vitest failed to start: 

r
    at ChildProcess.f (/Users/dietrich/.vscode/extensions/vitest.explorer-0.12.3/dist/extension.js:18:5392)
    at ChildProcess.emit (node:events:514:28)
    at emit (node:internal/child_process:951:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
[INFO 07:26:56] [API] Vitest v1.5.0 (test/vitest.config.ts) process 53185 created
[INFO 07:26:56] [API] Vitest v1.5.0 (langium/vite.config.mts) process 53184 created

workaround: rm ./packages/generator-langium/templates/test/vitest.config.ts ./packages/generator-langium/templates/web/vite.config.ts

kaisalmen commented 4 months ago

This should be fixed with #1520 I will double-check that.

kaisalmen commented 4 months ago

@cdietrich yes, PR #1520 introduces vitest.workspace.js that fixes that problem.