Skip to content
New issue

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

Automatic newline on save never sends a didChange notification #20129

Open
fredrikekre opened this issue Sep 9, 2022 · 1 comment
Open

Automatic newline on save never sends a didChange notification #20129

fredrikekre opened this issue Sep 9, 2022 · 1 comment
Labels
bug issues reporting wrong behavior lsp

Comments

@fredrikekre
Copy link
Contributor

fredrikekre commented Sep 9, 2022

Neovim version (nvim -v)

v0.7.2 and v0.8.0-dev+539-g662681694

Language server name/version

LanguageServer.jl v4.3.1

Operating system/version

Ubuntu 20

Steps to reproduce using "nvim -u minimal_init.lua"

init:

require'lspconfig'.julials.setup({})
vim.lsp.set_log_level("TRACE")

Opening a file, delete all lines (e.g. ggdG), save. The deletion of files sends a change notification, but then on save the file content has a newline appended. There is no change notification for this addition, which I believe there should be. The error doesn't happen with :set noeol. See julia-vscode/LanguageServer.jl#1025 for more details.

Expected behavior

No response

Actual behavior

No response

Log file

https://gist.github.com/fredrikekre/6a2fb3543893a36a9bf20355ef98e75a

@fredrikekre fredrikekre added bug issues reporting wrong behavior lsp labels Sep 9, 2022
@justinmk
Copy link
Member

is #15532 related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior lsp
Projects
None yet
Development

No branches or pull requests

2 participants