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

Investigate Why Main is Failing to Build with TypeScript 5.5.4 #2694

Open
LukeAbby opened this issue Jul 30, 2024 · 0 comments
Open

Investigate Why Main is Failing to Build with TypeScript 5.5.4 #2694

LukeAbby opened this issue Jul 30, 2024 · 0 comments

Comments

@LukeAbby
Copy link
Collaborator

See this pull request by dependabot #2686

Updating from TS 5.3.3 to 5.5.4 has caused:

  history: Array<
      CanvasHistory<ConcretePlaceableOrPlaceableObject<InstanceType<ConfiguredObjectClassForName<DocumentName>>>>
  >;

To error with:

Type instantiation is excessively deep and possibly infinite.

All other errors are almost certainly tangential, cascading from an error in CONFIG. It may be a good reproduction for TypeScript itself. The process would involve minimizing down the reproduction to at most 500 lines if at all possible. Realistically 50 is usually doable.

The process to do this by hand can be tedious. It mostly involves deleting irrelevant files and then deleting everything that depended on that over and over. You have to be very careful that the error does NOT go away after deletion though so you have to take it slowly. The issue with errors like Type instantiation is excessively deep and possibly infinite. is that they can be effected by small changes in seemingly unrelated files.

Still making a reproduction is possible for anyone, if time consuming. Some more advanced ways of looking into this would be looking at the traces, debugging the compiler, or trying out something like https://github.com/csmith-project/creduce. I can't speak to the efficacy of creduce myself as I haven't tried it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant