emacs lsp-mode client for Microsoft's python language server
Clone or download
andrew-christianson Merge pull request #7 from maxking/patch-1
Fix the lsp entrypoint for new lsp.el
Latest commit c26d496 Jan 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Cask cask: add new project file to install dependencies Dec 20, 2018
README.org Merge pull request #7 from maxking/patch-1 Jan 15, 2019
lsp-python-ms.el lisp: remove duplicate methods from a bad merge Dec 20, 2018

README.org

lsp-mode client leveraging microsoft’s python-language-server

Installation

  1. Install dotnet-sdk
  2. Clone and install python-language-server:
    git clone https://github.com/Microsoft/python-language-server.git
    cd python-language-server/src/LanguageServer/Impl
    dotnet build -c Release
        

    If you choose, compile the language server to a single executable with one of:

    dotnet publish -c Release -r osx-x64   # mac
    ln -sf $(git rev-parse --show-toplevel)/output/bin/Release/osx-x64/publish/Microsoft.Python.LanguageServer ~/.local/bin/  # or whereever you put your executables
        
    dotnet publish -c Release -r win10-x64 # windows 10
        
  3. Include lsp-python-ms in your config in your preferred manner. A minimal use-package initialization might be:
    (use-package lsp-python-ms
      :ensure nil
      :hook (python-mode . lsp)
      :config
    
      ;; for dev build of language server
      (setq lsp-python-ms-dir
            (expand-file-name "~/python-language-server/output/bin/Release/"))
      ;; for executable of language server
      (setq lsp-python-ms-executable
            "~/python-language-server/output/bin/Release/osx-x64/publish/Microsoft.Python.LanguageServer"))
        

For developement, you might find it useful to run cask install.

Credit

All credit to cpbotha on vxlabs! This just tidies and packages his work there