Coder Social home page Coder Social logo

dmypy-ls's Introduction

dmypy-ls: mypy language server

It is a PoC language server using dmypy internal API, not intended to be daily used.

It supports diagnostics only.

The first run is very slow as dmypy has to build a cache, and dmypy rebuilds the cache for no obvious reason when multiple files are opened.

These days mypy cli is still faster because of the efficient disk cache it has now.

Install

$ pipx install dmypy-ls

vim-lspconfig

dmypy-ls's People

Contributors

sileht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

felipelema dsully

dmypy-ls's Issues

cannot run dmypy-ls after pip-installing to virtualenv

Expected Behavior

dmypy-ls runs

Actual Behavior

dmypy-ls exits with the following error

Traceback (most recent call last):
  File "/home/user/dev/venvs/dmypy_ls/bin/dmypy-ls", line 5, in <module>
    from dmypy_ls import main
  File "/home/user/dev/venvs/dmypy_ls/lib/python3.11/site-packages/dmypy_ls/__init__.py", line 36, in <module>
    from pygls.lsp import methods
ImportError: cannot import name 'methods' from 'pygls.lsp' (/home/user/dev/venvs/dmypy_ls/lib/python3.11/site-packages/pygls/lsp/__init__.py)

Steps to Reproduce the Problem

  1. pypy3 -m venv dmypy_ls
  2. source dmypy_ls/bin/activate
  3. pip install --upgrade pip dmypy-ls
  4. dmypy-ls

Specifications

  • Pull Request URL:
  • Mergify Config URL:

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.