JoshuaKGoldberg / JoshuaKGoldberg/TypeStat
Bug: infinite loop(s) on terriajs
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 47
- Avg merge
- 15h 55m
- Merged PRs (30d)
- 21
Description
### 🐛 Bug Report
- TypeStat version: 0.8.1
- TypeScript version: 5.2
- Node version: 20
#### Actual Behavior
```
Starting wave 68...
Completed wave 68. Wrote mutations to 0 files.
Starting wave 69...
Completed wave 69. Wrote mutations to 1 file.
It looks like TypeStat has ended up in an infinite loop.
Bailing out of applying more mutations.
Please file an issue to help us fix the bug for you:
https://github.com/JoshuaKGoldberg/TypeStat
Finished options object 1 of 1.
All done! ✨
```
Assuming there is no convergence, this is better than 0.7.3, that did 120+ rounds before bailing out with the same message.
#### Expected Behavior
#### Reproduction
```
git clone https://github.com/terriajs/terriajs
cd terriajs
docker run --user node -it -v `pwd`:/files node:20 bash
```
Put the following in `typestat.json` inside the terriajs directory:
```json
{
"fixes": {
"incompleteTypes": true
},
"include": ["lib/**/*.{ts,tsx}"],
"projectPath": "./tsconfig.json"
}
```
and run these commands in the docker container:
```
cd files
yarn install
npx typestat --config typestat.json
```
Contributor guide
Assessment
This issue has not been assessed yet.