# fatal error: all goroutines are asleep - deadlock! (select with no cases)

- **ID:** `go/select-no-case-ready`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A select statement has no case that is ready, and no default, causing the goroutine to block forever.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.0 | active | — | — |
| 1.21 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   Ensure at least one channel in the select will eventually receive or send. Use context or done channels.
   ```
2. **** (85% success)
   ```
   Include a default case to handle the situation when no channel is ready.
   ```

## Dead Ends

- **** — Adding default changes the semantics; it may cause busy looping. (60% fail)
- **** — Sleep does not guarantee that channels will become ready; it just delays. (80% fail)
- **** — This may break the logic and cause other issues. (70% fail)
