#I need help on `glint-language-server` ?
1 messages · Page 1 of 1 (latest)
What editor do you use?
Using Lsp in Vim
Vanilla vim? No neovim?
Ah, well the actual language server lives in @glint/core
Right, it's just neovim has had some nice abstractions for them
I'll get you the underlying config, one sec
Alright, thanks
It can not be installed globally?
I installed it globally npm install -g @glint/core , then I which to get the path which @glint/core, no output
Thanks, this works which glint-language-server
you could, but I don't like installing globally, because each project can be an different versions
Hi @small barn what is the status of coc-glint?
No, It does not
I think it will be of help to the general community, if there documentation for configuring LSP client for glint
# Glint language server
{
name: '@glint/core',
filetype: [
'html.handlebars',
'handlebars',
'typescript',
'typescript.glimmer',
'javascript',
'javascript.glimmer',
],
rootSearch: [
'.glintrc.yml',
'.glintrc',
'.glintrc.json',
'.glintrc.js',
'glint.config.js',
'package.json',
],
path: '~/.nvm/versions/node/v20.14.0/bin/glint-language-server',
args: ['--stdio'],
},
I setup Lsp in vim, as above but did not workLsp
do you have glint-language-server at that path?
what does your :messages or whatever say?
how you run an LSP is a little different between each ecosystem, and I'm not sure if general "how to communicate with an LSP" would be super helpful.
I'll happily merge a PR to the glint repo adding things on this topic tho
I got the path from which, but no code-completion nor suggestion
does your editor have a log for you to debug with?
Using 'yegappan/lsp`, I checked if the server is on:
This is content of the log file;
08/30/24 09:14:58: Sent {'method': 'textDocument/completion', 'params': {'context': {'triggerCharacter': '', 'triggerKind': 1}, 'textDocument': {'uri': 'file:///home/olutayo/lab/emberlab/dutycalculator/app/components/currency.gjs'}, 'position': {'character': 1, 'line': 2}}}
08/30/24 09:14:58: Received {'id': 2, 'jsonrpc': '2.0', 'result': null}
08/30/24 09:15:00: Sent {'method': 'textDocument/completion', 'params': {'context': {'triggerCharacter': '', 'triggerKind': 1}, 'textDocument': {'uri': 'file:///home/olutayo/lab/emberlab/dutycalculator/app/components/currency.gjs'}, 'position': {'character': 2, 'line': 2}}}
08/30/24 09:15:00: Received {'id': 3, 'jsonrpc': '2.0', 'result': null}
08/30/24 09:15:00: Sent {'method': 'textDocument/completion', 'params': {'context': {'triggerCharacter': '', 'triggerKind': 1}, 'textDocument': {'uri': 'file:///home/olutayo/lab/emberlab/dutycalculator/app/components/currency.gjs'}, 'position': {'character': 3, 'line': 2}}}
but no completion or suggestion!
I tested by typing import but no completion nor suggestion
do other language servers work? 🤔
Javascriptt works
how's their config / setup look like compared to what you're making for Glint?