[Windows] `laravel dev` hangs PowerShell and triggers repeated `Terminate batch job (Y/N)?` prompts on `Ctrl+C`

Open
#150 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, node.js, rust
Domain
cli, devtools

Research direction

Start by tracing how laravel dev launches concurrently and its server, queue, and Vite child processes on Windows. Reproduce the shutdown in PowerShell and Command Prompt, then inspect the process launch and signal handling paths. Done means Ctrl+C stops all processes and returns to the shell without a frozen terminal or repeated batch-job prompts.

Written by the indexing model from the issue text.

Description

Environment
  • OS: Windows 11
  • Laravel CLI Version: 0.5.0
  • Shells tested: PowerShell 5, PowerShell 7, and Command Prompt
  • Project type: Laravel for Rust (laravel/rust)
  • Command: laravel dev
Steps to reproduce
  1. Run laravel dev in a Laravel for Rust project on Windows.
  2. Wait until the server, queue worker, and Vite are running.
  3. Press Ctrl+C to stop the processes.
Actual behavior
  • In PowerShell 5 and PowerShell 7, the terminal becomes unresponsive during shutdown.
  • In Command Prompt, repeated Terminate batch job (Y/N)? prompts appear for Vite, the server, and the queue worker. The processes eventually exit, but stopping requires additional input (Ctrl+C, Enter, Enter, Y, Enter, Enter). A further Terminate batch job (Y/N)? prompt may appear after the process output.
Expected behavior

Pressing Ctrl+C should stop the server, queue worker, Vite, and their child processes cleanly, then return to the shell prompt without repeated batch-job confirmations or a frozen terminal.

Relevant output

laravel dev starts:

concurrently --kill-others --names server,queue,vite ...

On shutdown:

[server] Stopping. Waiting up to 20s for the work in progress.
Terminate batch job (Y/N)?
[vite] Terminate batch job (Y/N)?
[server] Terminate batch job (Y/N)?
[queue] Terminate batch job (Y/N)?

The processes then report exit code 1 and concurrently sends SIGTERM to the other processes.

Dominant language
Rust
Stars
2.2k
Forks
105
Avg merge
7h 19m
Merged PRs (30d)
41

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from laravel/rust

All issues in laravel/rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.