Skip to content

Importing Drizzle and stopping the server crashes the PowerShell console when using tsx watch #711

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

Open
4 of 6 tasks
IcyFoxe opened this issue Mar 28, 2025 · 1 comment
Open
4 of 6 tasks
Labels
bug Something isn't working pending triage

Comments

@IcyFoxe
Copy link

IcyFoxe commented Mar 28, 2025

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I understand this is a bug tracker and anything other than a proven bug will be closed
  • I understand this is a free project and relies on community contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

https://github.com/IcyFoxe/tsx-powershell-crash

Problem & expected behavior (under 200 words)

Hello, I've noticed that after adding Drizzle to my project, my VSCode PowerShell console starts crashing after stopping the server that runs using the tsx watch command.

It crashes with this error:
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: 2.

I've created the minimal reproduction repo. Please give it a try.

Some important notes:

  • this doesn't happen if using Command Prompt instead PowerShell in VSCode
  • it also doesn't happen if running the server without the watch command (so only using tsx)
  • commenting out the drizzle import also stops the crashing problem

Hopefully this info will help you trace the issue. If you have any more questions, feel free to ask.
Thanks for your work.

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work will speed up resolution and support the project

  • I'm willing to offer $10 for financial support
@IcyFoxe IcyFoxe added bug Something isn't working pending triage labels Mar 28, 2025
@IcyFoxe
Copy link
Author

IcyFoxe commented Mar 31, 2025

Just to add, it crashes in other cases too, not only when using Drizzle. I have no idea what's causing it, but maybe the minimal reproduction example can still be useful a bit.

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

No branches or pull requests

1 participant