Coder Social home page Coder Social logo

rietmann-nv / lsp-python-ms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emacs-lsp/lsp-python-ms

0.0 0.0 0.0 32 KB

emacs lsp-mode client for Microsoft's python language server

License: BSD 3-Clause "New" or "Revised" License

Emacs Lisp 100.00%

lsp-python-ms's Introduction

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:

    dotnet publish -c Release -r osx-x64   # mac
        

    change the value of the -r flag depending on your architecture and operating system. See Microsoft’s Runtime ID Catalog for the right value for your system.

    Then, link the executable to somewhere on your path, e.g.

    ln -sf $(git rev-parse --show-toplevel)/output/bin/Release/osx-x64/publish/Microsoft.Python.LanguageServer ~/.local/bin/
        

    note that, on some systems (for example, Fedora), the executable comes out as Microsoft.Python.LanguageServer.LanguageServer.

  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, if it's not symlinked on your PATH
      (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

lsp-python-ms's People

Contributors

andrew-christianson avatar cpbotha avatar emoses avatar maxking avatar rietmann-nv avatar seanfarley avatar snarisi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.