We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NVIM v0.10.0
Arch Linux 6.9.7
Using Ruff and Python, if the wrong indentation is used and Trouble is brought up, a concat error is thrown, usually many times.
def main() -> None: prnt('a') print('b') if __name__ == "__main__": main()
:lua require("trouble").open("diagnostics")
def main() -> None: print('a') print('b') if __name__ == "__main__": main()
:
Any errors should ideally show up once - this causes continuous errors after the cursor is moved around a few times.
-- DO NOT change the paths and don't remove the colorscheme local root = vim.fn.fnamemodify("./.repro", ":p") -- set stdpaths to use .repro for _, name in ipairs({ "config", "data", "state", "cache" }) do vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name end -- bootstrap lazy local lazypath = root .. "/plugins/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, }) end vim.opt.runtimepath:prepend(lazypath) -- install plugins local plugins = { "folke/tokyonight.nvim", "folke/trouble.nvim", { -- for getting ruff installed "williamboman/mason.nvim", build = ":MasonUpdate", dependencies = { "WhoIsSethDaniel/mason-tool-installer.nvim", }, config = function() local mason = require("mason") local mason_tool_installer = require("mason-tool-installer") mason.setup({}) mason_tool_installer.setup({ ensure_installed = { "ruff", }, auto_update = false, run_on_start = true, start_delay = 0, debounce_hours = 0, }) end, }, { -- to get ruff linting "mfussenegger/nvim-lint", config = function() local lint = require("lint") lint.linters_by_ft = { python = { "ruff" }, } local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true }) vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "TextChanged" }, { group = lint_augroup, callback = function() lint.try_lint() end, }) end, } } require("lazy").setup(plugins, { root = root .. "/plugins", }) vim.cmd.colorscheme("tokyonight") -- add anything else here
The text was updated successfully, but these errors were encountered:
edd9684
Something weird is going on with ruff and Neovim. It generates a vim.NIL as the diagnostics code, whcih is not supposed to happen.
vim.NIL
Fixed it anyway. Thank you for the detailed bug report!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0
Operating system/version
Arch Linux 6.9.7
Describe the bug
Using Ruff and Python, if the wrong indentation is used and Trouble is brought up, a concat error is thrown, usually many times.
Steps To Reproduce
:lua require("trouble").open("diagnostics")
:
Expected Behavior
Any errors should ideally show up once - this causes continuous errors after the cursor is moved around a few times.
Repro
The text was updated successfully, but these errors were encountered: