When formatting any file that contains imports. This error occurs.
Expected Behavior
Here is the config. When mp is pressed, all formatters work except isort.
Minimal example file
No response
Minimal init.lua
-- 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",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{
"stevearc/conform.nvim",
config = function()
require("conform").setup({
log_level = vim.log.levels.DEBUG,
-- add your config here
})
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Neovim version (nvim -v)
0.9.5
Operating system/version
Windows 10
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
conform.log
Describe the bug
When applying isort formatting, an error occurs.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
When formatting any file that contains imports. This error occurs.
Expected Behavior
Here is the config. Whenmp is pressed, all formatters work except isort.
Minimal example file
No response
Minimal init.lua
Additional context
Has anyone encountered this and found a solution?