Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with emacs #37

Open
oivvio opened this issue Jan 3, 2020 · 5 comments
Open

Using with emacs #37

oivvio opened this issue Jan 3, 2020 · 5 comments

Comments

@oivvio
Copy link

oivvio commented Jan 3, 2020

This is not an actual issue. I'm just trying to get this plugin work with lsp-mode for emacs. I have mypy workon fine on the commandline and I have lsp-mode working fine in emacs.

When I add pyls-mypy to my virtualenv I get mypy messages in my buffers but it doesn't seem to be reading my mypy.ini

Any pointers on how to remedy that would be most welcome.

@ksafford
Copy link

ksafford commented Jan 22, 2020

This is sounds like my exact circumstance. I have tried setting flycheck-python-mypy-ini to point to a mypy config file and this doesn't seem to have any effect.

@poppyschmo
Copy link

(with-eval-after-load 'lsp-mode  ; try this or similar
    (lsp-register-custom-settings '(("pyls.plugins.pyls_mypy.enabled" t t))))

Also check *pyls::stderr* for complaints about a missing "future" package. Perhaps unrelated (maybe a regression of #1), but I had to install it manually before the plugin would load.
mypy-list

@akhilman
Copy link

akhilman commented Mar 1, 2020

Same with LanguageClient-neovim:

WARNING - pyls.config.config - Failed to load pyls entry point 'pyls_mypy': No module named 'future'

@Davidbrcz
Copy link

Just run pip install --user future

@karlicoss
Copy link

Can confirm, fix by installing future helps. Seems that it was fixed here #38, but it's not been published to pypi yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants