mattpocock / mattpocock/ts-error-translator

Plugin cannot start due to an error or works only partially

Open
#239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.5k
Forks
92
PR merge metrics
No merged PRs in 30d

Description

Sometimes the plugin cannot start due to an error.

2023-11-16 17:42:23.116 [error] Activating extension mattpocock.ts-error-translator failed due to an error:
2023-11-16 17:42:23.116 [error] TypeError: Cannot read properties of undefined (reading 'filter')
	at updateDiagnostics (c:\Users\DawidNitka\.vscode\extensions\mattpocock.ts-error-translator-0.10.1\out\extension.js:61730:36)
	at activate (c:\Users\DawidNitka\.vscode\extensions\mattpocock.ts-error-translator-0.10.1\out\extension.js:61742:11)
	at q.ib (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:136:13170)
	at q.hb (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:136:12896)
	at c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:136:11037
	at async v.n (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:124:6205)
	at async v.m (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:124:6168)
	at async v.l (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:124:5625)

And sometimes it starts but after opening some bigger file (presumably it's about type imports)
it stops showing underlines with hints and logs an error in an endless loop.
Somehow smaller/simpler files are still ok and hints are served even with the endless error loop running in the background.

2023-11-16 17:47:23.117 [error] TypeError: Cannot read properties of undefined (reading 'filter')
    at updateDiagnostics (c:\Users\DawidNitka\.vscode\extensions\mattpocock.ts-error-translator-0.10.1\out\extension.js:61730:36)
    at h.value (c:\Users\DawidNitka\.vscode\extensions\mattpocock.ts-error-translator-0.10.1\out\extension.js:61751:13)
    at c.y (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902)
    at c.z (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1972)
    at c.fire (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2188)
    at p.$acceptModelChanged (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:127:10094)
    at n.S (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:10836)
    at n.Q (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:10602)
    at n.M (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:9686)
    at n.L (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:8762)
    at h.value (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:134:7565)
    at c.y (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902)
    at c.fire (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2119)
    at d.fire (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:14047)
    at h.value (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:7918)
    at c.y (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902)
    at c.fire (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2119)
    at d.fire (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:14047)
    at MessagePortMain.<anonymous> (c:\Users\DawidNitka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:6198)
    at MessagePortMain.emit (node:events:513:28)
    at MessagePortMain.emit (node:domain:489:12)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367)

It's seems to be connected to the https://github.com/mattpocock/ts-error-translator/issues/143

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the related issue 143 and the reported updateDiagnostics stack trace in out/extension.js. Reproduce both activation and larger-file cases in VS Code, then verify that the extension starts, keeps showing translated underlines, and no longer logs the repeated TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.