-
Notifications
You must be signed in to change notification settings - Fork 41
Server fails to start: Server mspyls:21400 status:starting existed with status signal #45
Comments
have you met the requirements at here, e.g. libicu |
It seems an issue of server configurations. Please check the information @lisp-the-great mentioned. |
Thank you. I've done a
I also have openssl installed. Interestingly, when I run the server from my terminal I get no output (i.e. no crash):
|
There is no output in my env as well. I think it can be started from |
Unfortunately |
Can you share your configurations of |
You're right it may be the server. I wish I could be more useful debugging this (sorry). I'm using Spacemacs. I have the following layers enabled: (python :variables
python-backend 'lsp)
dap
lsp I've added (use-package lsp-python-ms
:ensure t
:demand
:init (setq lsp-log-io t)
:hook (python-mode . lsp)) ; or lsp-deferred |
Since I am not using |
I could reproduce until a couple minutes ago, now it's fixed. Seemed to be the order with which Here's my before and after: Before(use-package lsp-mode
:defer 3
:commands lsp
:init (setq-default lsp-prefer-flymake nil
lsp-pyls-plugins-pylint-enabled nil
lsp-pyls-configuration-sources ["flake8"])
:hook ((c++-mode sh-mode) . lsp))
(use-package lsp-python-ms
:hook (python-mode . lsp)
:config
(setq lsp-python-ms-dir
(expand-file-name "~/Projects/python-language-server/output/bin/Release/"))
(setq lsp-python-ms-executable
"~/.local/bin/Microsoft.Python.LanguageServer")) After(use-package lsp-mode
:defer 3
:commands lsp
:init (setq-default lsp-prefer-flymake nil
lsp-restart 'auto-restart ;; Otherwise will get the restart message on exit.
lsp-pyls-plugins-pylint-enabled nil
lsp-pyls-configuration-sources ["flake8"])
;; THE lsp hook now goes here.
:hook ((c++-mode sh-mode python-mode) . lsp))
(use-package lsp-python-ms
;; Need to demand otherwise this never gets loaded.
:demand t
;; But only after lsp otherwise for some cryptic emacsy reason this doesn't work properly.
:after lsp
:config
(setq lsp-python-ms-dir
(expand-file-name "~/Projects/python-language-server/output/bin/Release/"))
(setq lsp-python-ms-executable
"~/.local/bin/Microsoft.Python.LanguageServer")) What I notice, though, is that the server now starts but I get an |
@dangom Currently the configuration is simple as below. (use-package lsp-python-ms
:ensure t
:demand
:hook (python-mode . lsp))
It's as designed for mspyls. |
Hello, I'm having some issues starting the LSP server. When I open a python file, immediately I receive the messages:
If I choose yes, the same error is shown again.
I've spent some time trying to debug this (looking for logs and variable values) but I'm not sure how to debug further. Any help would be appreciated.
I'm on macOS Mojave 10.14.5 and using Emacs 26.2 with Spacemacs.
I've enabled logging via
lsp-log-io
. Here's one of the traces:The text was updated successfully, but these errors were encountered: