lua-language-server: update to 2.4.5

lua-language-server: fix `install_path.patch`

lua-language-server: update `unittests.patch`

lua-language-server: update `unittests.patch` and rename to `make.lua.patch`
This commit is contained in:
Aditya Alok 2021-10-16 17:53:20 +05:30
parent 7b49473d84
commit dbca306198
No known key found for this signature in database
GPG Key ID: 5A52117417798AC7
4 changed files with 52 additions and 30 deletions

View File

@ -1,11 +0,0 @@
--- lua-language-server/make/install.lua 2021-08-09 14:36:08.073522963 +0530
+++ lua-language-server-patch/make/install.lua 2021-08-10 10:55:34.845906577 +0530
@@ -3,7 +3,7 @@
local pf = require 'bee.platform'
local CWD = fs.current_path()
-local output = CWD / 'bin' / pf.OS
+local output = CWD / 'bin' / 'Android'
local bindir = CWD / builddir / 'bin'
local exe = pf.OS == 'Windows' and ".exe" or ""
local dll = pf.OS == 'Windows' and ".dll" or ".so"

View File

@ -0,0 +1,13 @@
'pf.OS' returns 'linux' but output is expected in 'android' dir
--- lua-language-server/make/install.lua 2021-10-15 19:14:29.794791240 +0530
+++ lua-language-server-patch/make/install.lua 2021-10-15 19:16:39.334791191 +0530
@@ -1,7 +1,7 @@
local fs = require 'bee.filesystem'
local pf = require 'bee.platform'
local CWD = fs.current_path()
-local output = CWD / 'bin' / pf.OS
+local output = CWD / 'bin' / 'Android'
if pf.OS == 'Windows' then
require 'msvc'.copy_vcrt('x64', output)

View File

@ -0,0 +1,39 @@
--- lua-language-server/make.lua 2021-10-16 18:04:03.750643184 +0530
+++ lua-language-server-patch/make.lua 2021-10-16 18:24:55.260642707 +0530
@@ -2,7 +2,7 @@
local platform = require 'bee.platform'
local exe = platform.OS == 'Windows' and ".exe" or ""
-lm.bindir = "bin/"..platform.OS
+lm.bindir = "bin/Android"
lm.EXE_DIR = ""
lm.INTERNAL = "on"
@@ -40,25 +40,8 @@
output = lm.bindir.."/main.lua",
}
-lm:build "bee-test" {
- lm.bindir.."/lua-language-server"..exe, "3rd/bee.lua/test/test.lua",
- pool = "console",
- deps = {
- "lua-language-server",
- "copy_bootstrap"
- },
-}
-
-lm:build 'unit-test' {
- lm.bindir.."/lua-language-server"..exe, 'test.lua',
- pool = "console",
- deps = {
- "bee-test",
- }
-}
-
lm:default {
- "bee-test",
- "unit-test",
+ "lua-language-server",
+ "copy_bootstrap",
"install",
}

View File

@ -1,19 +0,0 @@
--- lua-language-server/make.lua 2021-10-04 00:13:48.079999941 +0530
+++ lua-language-server-patch/make.lua 2021-10-04 00:18:30.059999834 +0530
@@ -21,16 +21,3 @@
'bee',
}
}
-
-local fs = require 'bee.filesystem'
-local pf = require 'bee.platform'
-local exe = pf.OS == 'Windows' and ".exe" or ""
-lm:build 'unittest' {
- fs.path 'bin' / pf.OS / ('lua-language-server' .. exe), 'test.lua', '-E',
- pool = "console",
- deps = {
- 'install',
- }
-}
-
-lm:default 'unittest'