Skip to content

Commit cac06e5

Browse files
committed
fix #1955
1 parent af57f89 commit cac06e5

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* `FIX` [#1924]
1010
* `FIX` [#1928]
1111
* `FIX` [#1945]
12+
* `FIX` [#1955]
1213
* `FIX` [#1978]
1314

1415
[#1715]: https://github.com/LuaLS/lua-language-server/issues/1715
@@ -18,6 +19,7 @@
1819
[#1924]: https://github.com/LuaLS/lua-language-server/issues/1924
1920
[#1928]: https://github.com/LuaLS/lua-language-server/issues/1928
2021
[#1945]: https://github.com/LuaLS/lua-language-server/issues/1945
22+
[#1955]: https://github.com/LuaLS/lua-language-server/issues/1955
2123
[#1978]: https://github.com/LuaLS/lua-language-server/issues/1978
2224

2325
## 3.6.13

main.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ log.info('METAPATH:', METAPATH)
7070
log.info('VERSION:', version.getVersion())
7171

7272
require 'tracy'
73-
require 'cli'
7473

7574
xpcall(dofile, log.debug, (ROOT / 'debugger.lua'):string())
7675

76+
require 'cli'
77+
7778
local _, service = xpcall(require, log.error, 'service')
7879

7980
service.start()

script/cli/check.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ local jsonb = require 'json-beautify'
88
local lang = require 'language'
99
local define = require 'proto.define'
1010
local config = require 'config.config'
11+
local fs = require 'bee.filesystem'
12+
13+
require 'vm'
1114

1215
lang(LOCALE)
1316

@@ -16,9 +19,10 @@ if type(CHECK) ~= 'string' then
1619
return
1720
end
1821

19-
local rootUri = furi.encode(CHECK)
22+
local rootPath = fs.absolute(fs.path(CHECK)):string()
23+
local rootUri = furi.encode(rootPath)
2024
if not rootUri then
21-
print(lang.script('CLI_CHECK_ERROR_URI', CHECK))
25+
print(lang.script('CLI_CHECK_ERROR_URI', rootPath))
2226
return
2327
end
2428

0 commit comments

Comments
 (0)