#I need help on `glint-language-server` ?

1 messages · Page 1 of 1 (latest)

hushed elbow
#

How is it set up?

Is it something like this?

{
  name: 'angular',
  filetype: 'html',
  path: '/usr/local/bin/ngserver.cmd',
  args: ['--stdio', '--ngProbeLocations',]
 }
small barn
#

What editor do you use?

hushed elbow
small barn
#

Vanilla vim? No neovim?

hushed elbow
#

Vanilla vim

#

Lsp in general is universal with difference in conf

small barn
#

Ah, well the actual language server lives in @glint/core

small barn
#

I'll get you the underlying config, one sec

hushed elbow
#

Alright, thanks

hushed elbow
#

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

small barn
hushed elbow
small barn
#

I'm not sure. I don't use coc anymore

#

Does it still work?

hushed elbow
#

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

small barn
#

do you have glint-language-server at that path?

#

what does your :messages or whatever say?

small barn
hushed elbow
small barn
#

does your editor have a log for you to debug with?

hushed elbow
hushed elbow
#

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}}}
hushed elbow
small barn
#

that's great!

#

it looks like it's working

hushed elbow
#

but no completion or suggestion!

#

I tested by typing import but no completion nor suggestion

small barn
#

do other language servers work? 🤔

hushed elbow
#

Javascriptt works

small barn
#

how's their config / setup look like compared to what you're making for Glint?