Closed ef4 closed 1 year ago
@ef4 I'm unable to reproduce this. I ran:
env EMBER_CLI_PNPM=true ember addon bug-example -b @embroider/addon-blueprint --pnpm --typescript
code bug-example/bug-example/
Then opened src/template-registry.ts
and hovered the Registry
identifier, which gave the expected double hover info (one from tsserver
, one from glint-language-server
):
Then created a src/test.gts
file, which Glint appears to provide correct hover info from:
My global ember-cli
version is 5.3.0, though a difference there doesn't seem super likely to be the culprit on this.
Do you know of others that have run into this as well? Any thoughts on what the difference might be?
I have just started experiencing this issue as of this morning @dfreeman. What information would you need?
Do you know of others that have run into this as well?
it could be that this is what I was running in to, and why I can't find confidence in my poking around the repo yet :sweat_smile: probably something else tho, as this message is unfamiliar to me:
2023-10-20 11:09:16.874 [error] Error: Client is not running and can't be stopped. It's current state is: starting
I think this may have been caused by having an unrelated deprecated extension installed.
Check your list of installed extensions in vscode, they will render with warnings next to them if they're deprecated. I had a deprecated ruby syntax highlighter.
I don't see any deprecated extension, but I did go ahead and remove all extensions that I know I'm not using. The glint server still fails, but at least now I can see the error messages which were disappearing before. The trace is:
[Trace - 4:23:19 PM] Sending request 'initialize - (0)'.
file:///Users/mhaugen/Code/adc/adc-web-frontend/node_modules/.pnpm/@glint+core@1.2.0_typescript@4.9.5/node_modules/@glint/core/lib/language-server/util/index.js:3
import VSCodeURI from 'vscode-uri';
^^^^^^^^^
SyntaxError: The requested module 'vscode-uri' does not provide an export named 'default'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
Node.js v18.15.0
[Error - 4:23:19 PM] Client Glint: connection to server is erroring. Shutting down server.
[Error - 4:23:19 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at xl.shutdown (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:39:8615)
at xl.stop (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:39:8194)
at xl.stop (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:39:50108)
at xl.handleConnectionError (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:39:13216)
at e (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:39:11915)
at /Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:39:21531
at sa.invoke (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:2:14334)
at Lr.fire (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:2:15103)
at ar (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:3:6529)
at sa.invoke (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:2:14334)
at Lr.fire (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:2:15103)
at ds.fireError (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:3:420)
at Socket.<anonymous> (/Users/mhaugen/.vscode/extensions/typed-ember.glint-vscode-1.0.3/dist/extension.js:3:1204)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
[Info - 4:23:19 PM] Connection to server got closed. Server will restart.
[Error - 4:23:19 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 4:23:19 PM] Glint client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
I think that is a different issue: https://github.com/typed-ember/glint/pull/629
tl;dr: your @glint/core
needs to be updated, @adc-mhaugen
Yes, that was it. Thank you @NullVoxPopuli and @ef4.
I have a reproducible situation where the language server appears to be dying or getting stuck.
The output is a monorepo, and the addon itself is located at
./bug-example/bug-example
. Open that directory as your workspace root in vscode.In the extension host output we see several stack traces from glint-vscode, starting with "Pending response rejected since connection got disposed". Full log:
No glint feedback is present in the editor.