-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Lua runtime error - LSP -> RPC: no 'is_closing' attribute #20001
Comments
Testing for whether bisect was right was actually incorrect, originally mentioned commit ( |
@levouh are you using any non- EDIT: See jose-elias-alvarez/null-ls.nvim#1052 |
This one is from |
So the issue isn't really with |
I understand that. I'm asking which commit in Neovim introduced the change that now requires other plugins to be updated. |
Ah. Sorry, my bad. Your bisect seems to be correct ( |
null-ls will need a small change like this: diff --git a/lua/null-ls/rpc.lua b/lua/null-ls/rpc.lua
index 43a3fe3..12fd0b9 100644
--- a/lua/null-ls/rpc.lua
+++ b/lua/null-ls/rpc.lua
@@ -157,10 +157,16 @@ M.start = function(dispatchers)
end,
kill = function()
stopped = true
end,
},
+ is_closing = function()
+ return stopped
+ end,
+ terminate = function()
+ stopped = true
+ end,
}
end
M.flush = function()
for uri, notification in pairs(notification_cache) do |
So is this a intentional breaking change then @mfussenegger? Should I close this issue? Should there be a post on ths issue dedicated to breaking changes that calls this out? Also note the original issue has nothing to do with |
The change is intentional yes. Looks like null-ls also patched this already: jose-elias-alvarez/null-ls.nvim@de75168 The good news is that the changes made now no longer make such hacks necessary, and what null-ls does (once it adapts fully, the commit linked above is only the quick-fix) is no longer considered a hack but supported. |
Neovim version (nvim -v)
NVIM v0.8.0-dev-980-gefacb6e97 (self-built appimage using Ubuntu 18.04 image)
Vim (not Nvim) behaves the same?
Yes
Operating system/version
Fedora 35
Terminal name/version
N/A
$TERM environment variable
N/A
Installation
appimage (self-built appimage using Ubuntu 18.04 image)
How to reproduce the issue
Bisected to
126fe7fbc9c88c412c8067d9d146d998baf6dd47
introducing the issue.CC: @mfussenegger
Expected behavior
No error when calling
rpc.is_closing
vialsp.is_stopped
.Actual behavior
The text was updated successfully, but these errors were encountered: