summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-15 18:45:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-15 18:45:05 +0800
commit4eadbf384b56c6106f98cefa173faab6e5b0a6fb (patch)
tree5df5586871e36f0072e187ab682a7958ca6e99bd /server
parenta5835c7d4e49aedfb2391ba442df2a2958f6db4c (diff)
downloadlua-language-server-4eadbf384b56c6106f98cefa173faab6e5b0a6fb.zip
修正log中显示的路径错误
Diffstat (limited to 'server')
-rw-r--r--server/main.lua2
-rw-r--r--server/publish.lua4
-rw-r--r--server/test.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/server/main.lua b/server/main.lua
index d1673836..9ba8fc92 100644
--- a/server/main.lua
+++ b/server/main.lua
@@ -9,7 +9,7 @@ package.path = rootPath .. 'src/?.lua'
.. ';' .. rootPath .. 'src/?/init.lua'
local fs = require 'bee.filesystem'
-ROOT = fs.path(rootPath)
+ROOT = fs.absolute(fs.path(rootPath))
LANG = LANG or 'en-US'
--collectgarbage('generational')
diff --git a/server/publish.lua b/server/publish.lua
index b6750341..bc3588dd 100644
--- a/server/publish.lua
+++ b/server/publish.lua
@@ -10,8 +10,8 @@ package.path = rootPath .. 'src/?.lua'
local fs = require 'bee.filesystem'
local subprocess = require 'bee.subprocess'
-ROOT = fs.path(rootPath)
-EXTENSION = fs.path(rootPath .. '..')
+ROOT = fs.absolute(fs.path(rootPath))
+EXTENSION = fs.absolute(fs.path(rootPath .. '..'))
require 'utility'
local json = require 'json'
diff --git a/server/test.lua b/server/test.lua
index c1d128f1..7068b072 100644
--- a/server/test.lua
+++ b/server/test.lua
@@ -10,7 +10,7 @@ package.path = rootPath .. 'src/?.lua'
local fs = require 'bee.filesystem'
local subprocess = require 'bee.subprocess'
-ROOT = fs.path(rootPath)
+ROOT = fs.absolute(fs.path(rootPath))
local function runTest(root)
local is_macos = package.cpath:sub(-3) == '.so'