summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-09 20:22:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-03-09 20:22:40 +0800
commitcac06e55dbda2b077fabc9413e64e30a6ea164f9 (patch)
tree8350176c5017e93cf2af37bc11608d4420eee649 /script
parentaf57f89ebbfd7987c77e66dbea2599720c102ae5 (diff)
downloadlua-language-server-cac06e55dbda2b077fabc9413e64e30a6ea164f9.zip
fix #1955
Diffstat (limited to 'script')
-rw-r--r--script/cli/check.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/script/cli/check.lua b/script/cli/check.lua
index 37b6ad15..ea767fae 100644
--- a/script/cli/check.lua
+++ b/script/cli/check.lua
@@ -8,6 +8,9 @@ local jsonb = require 'json-beautify'
local lang = require 'language'
local define = require 'proto.define'
local config = require 'config.config'
+local fs = require 'bee.filesystem'
+
+require 'vm'
lang(LOCALE)
@@ -16,9 +19,10 @@ if type(CHECK) ~= 'string' then
return
end
-local rootUri = furi.encode(CHECK)
+local rootPath = fs.absolute(fs.path(CHECK)):string()
+local rootUri = furi.encode(rootPath)
if not rootUri then
- print(lang.script('CLI_CHECK_ERROR_URI', CHECK))
+ print(lang.script('CLI_CHECK_ERROR_URI', rootPath))
return
end