Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Sublime Text 3 LSP package will not start this language server. #625

Open
ctrl-alt-adrian opened this issue Aug 9, 2019 · 5 comments
Open

Comments

@ctrl-alt-adrian
Copy link

ctrl-alt-adrian commented Aug 9, 2019

Per the LSP Docs, I've ran npm install -g javascript-typescript-langserver to install this language server.

For a while, things were working great. I then closed Sublime Text 3 as I was done with work, and later reopened editor to continue working on a side project. I now get the following error:

Picture

In my node_modules (where the language server was installed locally) there exists a language-server-stdio file.

I've uninstalled and reinstalled the language server but the error still persists. Even with the typescript files I was working with earlier.

I've made no changes to any packages or npm installs. Sublime Text 3's LSP package still won't start this.

Any ideas?

I'm using Version 3.2.1 Build 3207 of Sublime Text 3 and version 0.8.5 of LSP from Package Control.

@felixfbecker
Copy link
Contributor

Hey @AdrianDeveloper, does Sublime log the stack trace of the error anywhere?

@mtangoo
Copy link

mtangoo commented Aug 10, 2019

I have also experienced problems with the TCP version with our in-house editor. I will find time and gather information to see if this might be a cause the same. You have to restart editor several times for it to work. Disabling this LS things works fine

@nvmnghia
Copy link

nvmnghia commented Dec 4, 2019

I don't face the same error, but I cannot use LSP in sublime. The options (Find Occurences,... basically all LSP options in right mouse menu) are just grayed out.

@digitized
Copy link

@nvmnghia Ran into this same issue where I would enable it, but it would refuse to start the server. It seems like there might be another package that causes some issue with LSP (Haven't pinpointed which package was causing the problem). I decided to remove some packages and it started working.

@dalisoft
Copy link

Same thing, from Console i see this

reloading plugin TypeScript.main
2020-01-25 00:41:24,414: 4533923264: WARNING: TypeScript plugin initialized.
plugins loaded
LSP: global configs ['gopls=False', 'golsp=False', 'ra-lsp=False', 'dart=False', 'flow=False', 'clangd=False', 'lsp-tsserver=False', 'eslint=False', 'pyls=True', 'metals=False', 'reason=False', 'cquery=False', 'jdtls=False', 'intelephense-ls=False', 'typescript-language-server=False', 'ruby=False', 'vscode-css=False', 'rlang=False', 'elixir-ls=False', 'polymer-ide=False', 'ocaml=False', 'javascript-typescript-langserver=True', 'rls=False', 'phpls=False', 'haskell-ide-engine=False', 'bashls=False']
LSP: window 3 starting 1 initial views
lang_service_enabled: True
Path of tsserver.js: /Users/dalisoft/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js
Path of tsc.js: /Users/dalisoft/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsc.js
Trying to spawn node executable from: /usr/local/bin/node
ref view not found
Emmet: No need to update PyV8
Package Control: Skipping automatic upgrade, last run at 2020-01-25 00:05:43, next run at 2020-01-25 01:05:43 or after
Unable to open /Users/dalisoft/Library/Application Support/Sublime Text 3/Packages/Default/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Unable to open /Users/dalisoft/Library/Application Support/Sublime Text 3/Packages/LSP/LSP.sublime-settings
reloading settings Packages/User/LSP.sublime-settings
LSP: global configs ['gopls=False', 'golsp=False', 'ra-lsp=False', 'dart=False', 'flow=False', 'clangd=False', 'lsp-tsserver=False', 'eslint=False', 'pyls=True', 'metals=False', 'reason=False', 'cquery=False', 'jdtls=False', 'intelephense-ls=False', 'typescript-language-server=False', 'ruby=False', 'vscode-css=False', 'rlang=False', 'elixir-ls=False', 'polymer-ide=False', 'ocaml=False', 'javascript-typescript-langserver=True', 'rls=False', 'phpls=False', 'haskell-ide-engine=False', 'bashls=False']

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants