Fix failing lsp-python-ms setup
Configuring lsp-python-ms variables properly.
This commit is contained in:
parent
3ed24436cd
commit
9dbc0b9d0c
|
@ -2196,6 +2196,7 @@ Other:
|
||||||
- Made python-send-shell-* functions faster (thanks to Trapez Breen)
|
- Made python-send-shell-* functions faster (thanks to Trapez Breen)
|
||||||
- Added support for 'black' formatter (thanks to Mike Macpherson)
|
- Added support for 'black' formatter (thanks to Mike Macpherson)
|
||||||
- Enabled =eldoc= for =anaconda-mode= (thanks to Vikash Balasubramanian)
|
- Enabled =eldoc= for =anaconda-mode= (thanks to Vikash Balasubramanian)
|
||||||
|
- Various fixes for =lsp-python-ms= setup (thanks to Trapez Breen)
|
||||||
**** Racket
|
**** Racket
|
||||||
- Restore smart closing paren behavior in racket-mode (thanks to Don March)
|
- Restore smart closing paren behavior in racket-mode (thanks to Don March)
|
||||||
**** Ranger
|
**** Ranger
|
||||||
|
|
|
@ -428,12 +428,14 @@ fix this issue."
|
||||||
:if (eq python-lsp-server 'mspyls)
|
:if (eq python-lsp-server 'mspyls)
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:config
|
:config
|
||||||
|
(when python-lsp-git-root
|
||||||
(if python-lsp-git-root
|
|
||||||
;; Use dev version of language server checked out from github
|
;; Use dev version of language server checked out from github
|
||||||
(progn
|
(setq lsp-python-ms-dir
|
||||||
(setq lsp-python-ms-dir
|
(expand-file-name (concat python-lsp-git-root
|
||||||
(expand-file-name (concat python-lsp-git-root "/output/bin/Release/")))
|
"/output/bin/Release/")))
|
||||||
(message "lsp-python-ms: Using version at `%s'" lsp-python-ms-dir))
|
(message "lsp-python-ms: Using version at `%s'" lsp-python-ms-dir)
|
||||||
;; Use a precompiled exe
|
;; Use a precompiled exe
|
||||||
(setq lsp-python-ms-executable "Microsoft.Python.LanguageServer"))))
|
(setq lsp-python-ms-executable (concat lsp-python-ms-dir
|
||||||
|
"Microsoft.Python.LanguageServer"
|
||||||
|
(and (eq system-type 'windows-nt)
|
||||||
|
".exe"))))))
|
||||||
|
|
Loading…
Reference in a new issue