sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
271 stars 14 forks source link

Some TypeScript files cause Sublime Merge to hang #1771

Closed gywn closed 7 months ago

gywn commented 1 year ago

Version info

Description

Some TypeScript files with enough lexical complexity will cause the GUI to wait indefinitely for the diff to appear. The worker thread cannot be terminated normally, but is forcibly terminated.

Steps to reproduce

  1. Install build 2083 (build 2079 is OK);
  2. Create empty new repository;
  3. Add a index.ts file with the following content;
  4. Open Sublime Merge and try to show index.ts's content in untracked files.
_ = () => {
  _(() => {
    if (_ && _._) {
      _ = _._(_._) as _ 
      _()
      _(_ => {
        for (_ of _._) { }
      })
    } 
  }, [_])

  _ = () => {
    if () {
      try { } catch (_: _) { }
    }
  }
}

Expected behavior

The content of index.ts to be shown

Screenshots Screenshot from 2023-06-24 14-46-40

dpjohnst commented 7 months ago

Hi @gywn,

I'm closing this issue as I believe it's been resolved in the latest build. Please feel free to reopen the issue if you're still experiencing it.

Kind regards, - Dylan from Sublime HQ