Code Monkey home page Code Monkey logo

lapce-pyright's Introduction

Pyright

Pyright LSP for the Lapce editor

Installing

Pyright

The pyright language server must be available on the path. You can install it in many ways, choose the one you like the most in the official guide (You must follow the "command line" section).

The most important part is that you need to have pyright-langserver on your path.

Editor extension

You can install the extension directly via the Lapce editor, in the extensions tab. Just search for Python (pyright).

Obs: Don't forget to check the author name.

Configuration

All additional functionality and configuration should work the same as described in the README for pyright.

The recommended way of configuring it would be be using a pyproject.toml file. You can see an example section bellow:

[tool.pyright]
venvPath = "./"
venv = ".venv"
reportMissingImports = true
reportMissingTypeStubs = false
typeCheckingMode = "off"
pythonVersion = "3.11.1"

Build

Before building, you must ensure that you have the wasm32-wasi target setup.

rustup target add wasm32-wasi

Debug

cargo build --target wasm32-wasi

Release

cargo build --release --target wasm32-wasi

Develop

OSX / Linux

cd <lapse_dir>/dev.lapce.Lapce/plugins
mkdir lapce-pyright

cd lapce-pyright

ln -s <source_dir>/target/wasm32-wasi/debug/lapce-pyright.wasm ./bin/

lapce-pyright's People

Stargazers

Francisco Boni avatar RGBCube avatar Semen avatar Nico avatar

Watchers

James Cloos avatar Matheus Abreu avatar

lapce-pyright's Issues

Not working on OSX

Hey! First of all, thanks for this plugin!. In windows is working super nice, but i cannot make it work on OSX. The server is installed :

Screenshot 2022-12-20 at 11 25 46 AM

But it doesn't work:

Screenshot 2022-12-20 at 11 26 24 AM

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.