Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cdietrich opened this issue Jun 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cdietrich
Copy link
Contributor

[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

@cdietrich cdietrich added the bug Something isn't working label Jun 28, 2024
@cdietrich cdietrich changed the title The vitest configs in generator langium templates prevent the vitest extension to work in the repo langium-development: The vitest configs in generator langium templates prevent the vitest extension to work in the repo Jun 28, 2024
@kaisalmen
Copy link
Contributor

kaisalmen commented Jun 28, 2024

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

@kaisalmen
Copy link
Contributor

kaisalmen commented Jun 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants