I’ve reasonably recently switched from the old pyls to the new fork pylsp (I spent a while not doing much python, so I my setup got stale), and I’ve noticed an odd issue - I’m just wondering if anyone else has seen it before I put in a bug report.
What’s happening is that when I run
lsp-formatting (either directly or via a BufWritePre hook), if any changes are made to the file my position in the file is lost and I end up at the bottom of the file, with a new empty line at the end. This doesn’t happen with Rust (using rust-analyzer/rustfmt); I don’t have any other language servers set up to test with beyond these two.
Has anyone else seen this, or have any idea what might be happening?