Skip to content

pylsp delete all text when formatting #1025

@nkta3m

Description

@nkta3m

Version confirmation

  • Confirm

Following prerequisites

  • Confirm

Not a user config issue

  • Confirm

Neovim version

NVIM v0.9.4 Build type: Release LuaJIT 2.1.1692716794

Operating system/version

Debian

Terminal name/version

alacritty

$TERM environment variable

No response

Branch info

main (Default/Latest)

Fetch Preferences

HTTPS (use_ssh = false)

Affected language servers

pylsp

How to reproduce the issue

  1. open python file
  2. save

Actual behavior

normal format

Expected behavior

No response

Support info

2023-10-18 14_47_02-Window
2023-10-18 14_47_25-Window

Logs

[ERROR][2023-10-18 14:41:56] .../vim/lsp/rpc.lua:734	"rpc"	"~/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-10-18 14:41:56,891 CST - ERROR - pylsp_ruff.plugin - Error running ruff: error: unexpected argument '--format' found\n\n  tip: to pass '--format' as a value, use '-- --format'\n\nUsage: ruff check <--verbose|--quiet|--silent> [FILES]...\n\nFor more information, try '--help'.\n\n"

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglspLSP related issuesupstreamUpstream (neovim/plugin) issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions