Enabling LSP - Language Server Protocol - features

719 views
Skip to first unread message

Greg Raven

unread,
Jul 20, 2021, 8:32:46 AM7/20/21
to BBEdit Talk
OK, so I went through the installation process for Node and NPM, and for the languages I use most often. However, I got lost in the section about symlinking. It says it may not be necessary, but for me it seems it is. I have no new entries in my $PATH, no new files in my Language Modules folder, and the relevant menu items are grayed out.

Can anyone provide the missing link between what I have and what I think I'm supposed to be able to do with it?

Rich Siegel

unread,
Jul 20, 2021, 8:56:36 AM7/20/21
to BBEdit Talk
Since I can't see your screen, I have questions:

1. What language(s)?

2. What server(s)?

3. For any given server executable, what is the output of `which` with
that server executable name, in a Terminal window?

4. Are you using zsh or bash? If zsh, is your PATH configured in
~/.zshrc or is it in ~/.zshenv ?

R.

--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

Greg Raven

unread,
Jul 20, 2021, 11:22:34 AM7/20/21
to BBEdit Talk
I tried to enable the preconfigured servers for CSS, HTML, JavaScript, JSON, and PHP. I install node / npm via brew, and the rest via npm -- using the command-line snippets provided here:


If I understand your question, the which command returns this, for example:

/usr/local/bin/vscode-json-languageserver

I'm using Zshell.

I don't seem to have any defined $PATH statements or a .zshenv file, but my .zshrc file has a bunch of custom instructions.

Greg Raven

unread,
Jul 20, 2021, 12:24:58 PM7/20/21
to BBEdit Talk
More info:

Found using which:

/usr/local/bin/html-languageserver
/usr/local/bin/intelephense
/usr/local/bin/vscode-json-languageserver
/usr/local/bin/yaml-language-server

MIA according to which:

typescript not found
vscode-css-languageserver-bin not found
vscode-html-languageserver-bin not found

echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

On Tuesday, July 20, 2021 at 5:56:36 AM UTC-7 sie...@barebones.com wrote:

Greg Raven

unread,
Jul 20, 2021, 12:51:48 PM7/20/21
to BBEdit Talk
Also, for some reason I am unable to create symlinks to the files of interest in /usr/local/bin/. I created a Language Servers folder inside by BBEdit Application Support folder, navigated to it, and issued the ln -s command for each of the subject files. The command seems to run to completion but the links never appear inside the Language Servers folder.

I even tried using the path to the actual language file (using the path found in the /usr/local/bin listing) and still nothing.

I'm stumped.

On Tuesday, July 20, 2021 at 5:56:36 AM UTC-7 sie...@barebones.com wrote:

ollie

unread,
Aug 13, 2021, 8:55:56 AM8/13/21
to BBEdit Talk
Any progress on this Greg? I’m having similar frustrations.

I have installed a couple servers globally with npm:
* CSS (vscode-css-languageserver-bin), and
* JavaScript (typescript, typescript-language-server)

BBEdit says “Server command not found.” for both CSS and JavaScript with the Language server enabled leaving the default settings.

In my terminal (zsh):
> which css-languageserver
/Users/ollie/.npm-global/bin/css-languageserver

> which typescript-language-server
/Users/ollie/.npm-global/bin/typescript-language-server

> which node
/usr/local/bin/node

> node -v
v14.17.5

In ~/.zshrc:
export PATH=~/.npm-global/bin:$PATH

ollie

unread,
Aug 13, 2021, 9:20:39 AM8/13/21
to BBEdit Talk
Breakthrough!

After some searching around I moved:
export PATH=~/.npm-global/bin:$PATH

to ~/.zshenv

and restarted BBEdit and I have the little green dot with Ready to start server
\o/

Greg Raven

unread,
Aug 13, 2021, 10:06:25 AM8/13/21
to BBEdit Talk
Excellent. Thanks!
Reply all
Reply to author
Forward
0 new messages