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

The terminal crashes when using Ctrl+C to exit the process. #8022

Closed
2 of 4 tasks
Kaidesuyoo opened this issue Apr 26, 2024 · 2 comments
Closed
2 of 4 tasks

The terminal crashes when using Ctrl+C to exit the process. #8022

Kaidesuyoo opened this issue Apr 26, 2024 · 2 comments

Comments

@Kaidesuyoo
Copy link

Kaidesuyoo commented Apr 26, 2024

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

v9

Which area(s) of pnpm are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

Run a Vue Vite project using pnpm run dev.
Press Ctrl+C to terminate the process.

Describe the Bug

When I use Ctrl+C to exit the process, the terminal crashes. I'm not entirely sure if this should be considered a bug in Vite, but I didn't encounter this issue when using vite version 4.5.2. However, there is a high probability of encountering this situation in vite version 5.2.10.

It works fine when using npm.

Snipaste_2024-04-26_20-47-50

Snipaste_2024-04-26_20-49-52

image

System:
OS: Windows 11 10.0.22635
CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
Memory: 19.59 GB / 31.91 GB
Binaries:
Node: 20.12.2 - D:\Program Files\nodejs\node.EXE
npm: 10.5.0 - D:\Program Files\nodejs\npm.CMD
pnpm: 9.0.6 - D:\Program Files\nodejs\pnpm.CMD
npmPackages:
vite: ^5.2.10 => 5.2.10

Expected Behavior

Hope the terminal won't crash.

Which Node.js version are you using?

v20.12.2

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

@nachoaldamav
Copy link
Contributor

Hi! I tested this myself and my terminal does not crash, I see that you are using Powershell 5, does the issue fix if you use the newer versions of Powershell?
image

@Kaidesuyoo
Copy link
Author

Hi! I tested this myself and my terminal does not crash, I see that you are using Powershell 5, does the issue fix if you use the newer versions of Powershell? image

In both PowerShell 5 and 7, this issue occurs. However, I haven't seen anyone else report a similar problem. I suspect it might be a bug caused by some configuration settings on my personal computer. I'll test it on other computers when I have time. Therefore, I'll close this issue. Thank you for taking the time to answer my question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants