Giter VIP home page Giter VIP logo

Comments (6)

iambeingtracked avatar iambeingtracked commented on May 21, 2024

I have a somewhat similar thing, Spawning language server with cmd: /home/user/.local/share/nvim/lsp servers/lua-language-server/bin/Linux/lua-language-server failed.
Tho i reinstalled a lot of times, i followed the build instructions for sumneko lua language server. The directory 'Linux' does not exist

from nii-nvim.

Theory-of-Everything avatar Theory-of-Everything commented on May 21, 2024

yea, This seems to be an "issue" introduced my the sumneko maintainers. I currently have a fix on my local machine that you can apply. Expect that #25 should fix this issue as well.

Heres the patch:

diff --git a/lua/config/lsp/lua_lsp.lua b/lua/config/lsp/lua_lsp.lua
index bc2cb41..57acce9 100644
--- a/lua/config/lsp/lua_lsp.lua
+++ b/lua/config/lsp/lua_lsp.lua
@@ -1,5 +1,9 @@
+--[[
+	Setup script for the lua lsp server sumneko
+--]]
 local fn = vim.fn
 
+-- check for the underlying operating system
 local system_name
 if fn.has('mac') == 1 then
 	system_name = 'macOS'
@@ -13,7 +17,17 @@ end
 
 -- set the path to the sumneko installation (ABSOLUTE PATH)
 local sumneko_install_path = fn.stdpath('data') .. '/lspservers/lua-language-server'
-local sumneko_binary = sumneko_install_path .. '/bin/' .. system_name .. '/lua-language-server'
+local pathcheck = sumneko_install_path .. '/bin/' .. system_name
+local sumneko_binary
+
+-- check of weird build directories
+if fn.isdirectory(pathcheck) > 0 then
+	-- set binary path to that with a system directory
+	sumneko_binary = sumneko_install_path .. '/bin/' .. system_name .. '/lua-language-server'
+else
+	-- set binary path to just the (oddly) bin directory
+	sumneko_binary = sumneko_install_path .. '/bin/lua-language-server'
+end
 
 local runtime_path = vim.split(package.path, ';')
 table.insert(runtime_path, 'lua/?.lua')

you can create a patch file in the root of the repo/config directory, and apply it with the git apply cmd

from nii-nvim.

Theory-of-Everything avatar Theory-of-Everything commented on May 21, 2024

I have pushed my fixes to #25, (75d8f52) expect this it be merged into master in time soon.

For now if you want the bleeding changes, clone/pull/checkout from the dev branch.

from nii-nvim.

iambeingtracked avatar iambeingtracked commented on May 21, 2024

I've been experimenting with a lot of different nvim builds, and ended up breaking everything, i'll reinstall fully rn and then i'll answer how it went

from nii-nvim.

iambeingtracked avatar iambeingtracked commented on May 21, 2024

Ok, now i don't see this error, also there was a thing which told that something was moved (sorry i forgot what it was) but on the dev branch everything was fixed, awesome!
Also, i'm weebspirit, u might remember me on discord but i deleted my acc, and soon i will selfhost my own matrix homeserver, i'll message u then.

from nii-nvim.

Theory-of-Everything avatar Theory-of-Everything commented on May 21, 2024

cool @iambeingtracked I will probably be moving to host my projects at https://sr.ht in the near future, so watch out for that.

from nii-nvim.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.