stevearc / conform.nvim

Lightweight yet powerful formatter plugin for Neovim
MIT License
2.54k stars 135 forks source link

bug: isort: error: argument --le/--line-ending: expected one argument #423

Open Barmaley0 opened 1 month ago

Barmaley0 commented 1 month ago

Neovim version (nvim -v)

0.9.5

Operating system/version

Windows 10

Add the debug logs

Log file

conform.log

Describe the bug

When applying isort formatting, an error occurs. Error isort

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

image 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

Additional context

Has anyone encountered this and found a solution?

vSkyper commented 1 week ago

I encountered an identical bug, any solution?

Barmaley0 commented 1 week ago

Unfortunately no. I will solve this problem later. If you find any solution please write.