ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.91k stars 458 forks source link

omg, install vint via mason not working #1322

Closed jwangtobeno1 closed 2 months ago

jwangtobeno1 commented 2 months ago

Version confirmation

Following prerequisites

Neovim version

nvim v0.10.0

Branch info

main (Default/Latest)

Minimal (user) folder structure required to reproduce the issue

`~/.config/nvim/lua/user/setting.lua`

-- Please check `lua/core/settings.lua` to view the full list of configurable settings
local settings = {}

settings["use_ssh"] = false

settings["colorscheme"] = "catppuccin"

settings["lsp_deps"] = function(defaults)
    return {
        defaults[5],
        defaults[6],
        "verible",
    }
end

settings["null_ls_deps"] = function(defaults)
    return {
        defaults[5],
        defaults[6],
        defaults[7],
    }
end

settings["dap_deps"] = function(defaults)
    return {
        defaults[1],
        defaults[3],
    }
end

settings["treesitter_deps"] = function(defaults)
    return {
        defaults[1],
        defaults[2],
        defaults[3],
        defaults[9],
        defaults[10],
        defaults[12],
        defaults[13],
        defaults[14],
        defaults[15],
        defaults[16],
        defaults[17],
        defaults[19],
    }
end

return settings

Minimal config with steps on how to reproduce the issue

When I open vimscript the message shown below is displayed:

vint-error

I try paru -S python-setuptools, but the problem also exist.

Expected behavior

Don't show the error.

Additional information

The OS is ArchWSL

CharlesChiuGit commented 2 months ago

report to mason

CharlesChiuGit commented 2 months ago

u can try install the missing package in mason's venv. no need to install globally

jwangtobeno1 commented 2 months ago

I try :MasonInstall Vint, the problem also exist.

jwangtobeno1 commented 2 months ago

u can try install the missing package in mason's venv. no need to install globally

emmm....pls tell me how to do it specifically, thank u very much.

CharlesChiuGit commented 2 months ago
cd ~/.local/share/nvim/mason/packages/vint
source venv/bin/activate
pip install --upgrade setuptools
deactivate
jwangtobeno1 commented 2 months ago
cd ~/.local/share/nvim/mason/packages/vint
source venv/bin/activate
pip install --upgrade setuptools

the problem was solved perfectly, thank u!