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

Bug: infinite loop(s) on terriajs #2014

Open
pjonsson opened this issue Nov 29, 2024 · 1 comment
Open

Bug: infinite loop(s) on terriajs #2014

pjonsson opened this issue Nov 29, 2024 · 1 comment
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: bug Something isn't working :( 🐛

Comments

@pjonsson
Copy link
Contributor

pjonsson commented Nov 29, 2024

🐛 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
@JoshuaKGoldberg
Copy link
Owner

Heh, I was hoping #2024 would fix this, but it looks like no. I ran out of time today to investigate more deeply but there are definitely some more bugs in TypeStat to be fixed. Thanks so much for trying the project out and giving a great reproduction repository @pjonsson! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: bug Something isn't working :( 🐛
Projects
None yet
Development

No branches or pull requests

2 participants