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

TypeError: Cannot read properties of undefined (reading 'entries') #14

Open
samhh opened this issue Feb 1, 2024 · 0 comments
Open

TypeError: Cannot read properties of undefined (reading 'entries') #14

samhh opened this issue Feb 1, 2024 · 0 comments

Comments

@samhh
Copy link
Member

samhh commented Feb 1, 2024

In Helix with typescript-language-server I see this repeatedly in my logs, though the plugin does work:

$ hx -v
$ cat ~/.cache/helix/helix.log
2023-09-30T18:19:23.240 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-09-30T18:20:31.235 helix_lsp::transport [ERROR] <- ServerError(1): <semantic> TypeScript Server Error (5.2.2)
Cannot read properties of undefined (reading 'entries')
TypeError: Cannot read properties of undefined (reading 'entries')
    at proxy.getCompletionsAtPosition (/Users/sam/Dev/unsplash/web/node_modules/@unsplash/ts-namespace-import-plugin/dist/index.js:111:50)
    at IpcIOSession.getCompletions (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:184375:54)
    at completionInfo (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:182769:43)
    at /Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:185151:69
    at IpcIOSession.executeWithRequestId (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:185143:14)
    at IpcIOSession.executeCommand (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:185151:29)
    at IpcIOSession.onMessage (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:185193:51)
    at process.<anonymous> (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:186782:14)
    at process.emit (node:events:514:28)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
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