mfussenegger / nvim-lint

An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
GNU General Public License v3.0
1.77k stars 191 forks source link

Help getting the plugin to work (mypy) #523

Open karb94 opened 5 months ago

karb94 commented 5 months ago

Hi, I've been trying for an hour to get the plugin to lint using mypy. I can see that a mypy process spawns in my process monitor but there is nothing showing up in Neovim.

My config:

require('lint').linters_by_ft.python = { 'mypy', }

Then in Neovim I run manually :lua require("lint").try_lint() and nothing shows up. If I run :lua = vim.diagnostic.get() I get an empty table.

if I run mypy in my terminal with the same default flags:

mypy --show-column-numbers --hide-error-codes --hide-error-context --no-color-output --no-error-summary --no-pretty myfile.py

I get mypy output with the errors in my file.

Are there any logs of the ouput somewhere I can check?

replicaJunction commented 5 months ago

Are you on Windows? #480 affects mypy on Windows, and it would be fixed by #513.

karb94 commented 5 months ago

I'm on Linux (NixOS)

BSiddharth commented 3 months ago

@karb94 Were you able to fix this? I am having the same problem (I am on windows tho)

Edit: It does not work on my linux system either