[Bug 1202958] New: Neovim LSP errors possibly caused by modified script
http://bugzilla.opensuse.org/show_bug.cgi?id=1202958 Bug ID: 1202958 Summary: Neovim LSP errors possibly caused by modified script Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: screening-team-bugs@suse.de Reporter: ytriop@protonmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Neovim as packaged on OpenSUSE Tumbleweed produces an error when attempting to start an lsp client with Neovim's Lua interface. The traceback points to a unbound variable in the runtime script at /usr/share/nvim/runtime/lua/vim/uri.lua. In this script, at line 36, there is a line modified from the source: tohex = require'bit32'.tohex where tohex should be a function. However, the bit32 module doesn't contain a tohex member, leading to errors whenever the tohex function is invoked to percent-encode a filename. In the original source code, this line instead calls the 'bit' module which does contain a tohex function as a member: tohex = require('bit').tohex See source version of this script here: https://github.com/neovim/neovim/blob/master/runtime/lua/vim/uri.lua -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1202958 http://bugzilla.opensuse.org/show_bug.cgi?id=1202958#c2 --- Comment #2 from baramba <ytriop@protonmail.com> --- To reproduce: 1. Use neovim without a config to edit a file with a space: $ nvim --clean 'test file' 2. Initialize an lsp client in neovim (store the client id in a global var for future use): :lua vim.g.my_client_id=vim.lsp.start_client({cmd={'lua-language-server'}}) 3. Attach the current buffer to the initialized client: :lua vim.lsp.buf_attach_client(0, vim.g.my_client_id) The error should be printed: E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/uri.lua:44: attempt to call upvalue 'tohex' (a nil value ) stack traceback: /usr/share/nvim/runtime/lua/vim/uri.lua:44: in function </usr/share/nvim/runtime/lua/vim/uri.lua:43> [C]: in function 'uri_encode' /usr/share/nvim/runtime/lua/vim/uri.lua:68: in function 'uri_from_bufnr' /usr/share/nvim/runtime/lua/vim/lsp.lua:1234: in function 'buf_attach_client' [string ":lua"]:1: in main chunk -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1202958 http://bugzilla.opensuse.org/show_bug.cgi?id=1202958#c3 Martin Li��ka <martin.liska@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mcepl@suse.com --- Comment #3 from Martin Li��ka <martin.liska@suse.com> --- The patch was added by Mat��j: # PATCH-FIX-OPENSUSE neovim-0.1.7-bitop.patch mcepl@cepl.eu build with old Lua with external bit module Patch1: neovim-0.1.7-bitop.patch Can you please take a look? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1202958 Martin Li��ka <martin.liska@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|ronisbr@gmail.com |mcepl@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1202958 http://bugzilla.opensuse.org/show_bug.cgi?id=1202958#c4 --- Comment #4 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1202958) was mentioned in https://build.opensuse.org/request/show/1007737 Factory / neovim -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com