Skip to content

Bug: infinite loop(s) on terriajsΒ #2014

@pjonsson

Description

@pjonsson

πŸ› 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:

{
  "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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this! πŸ™type: bugSomething isn't working :( πŸ›

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions