From e3c493e3cd4954ac3f47e455025cc2922ab10099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 24 Sep 2019 09:53:11 +0800 Subject: =?UTF-8?q?=E6=95=B4=E7=90=86=E8=B0=83=E8=AF=95=E5=99=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server-beta/main.lua') diff --git a/server-beta/main.lua b/server-beta/main.lua index 83077681..91efcf34 100644 --- a/server-beta/main.lua +++ b/server-beta/main.lua @@ -2,7 +2,7 @@ local currentPath = debug.getinfo(1, 'S').source:sub(2) local rootPath = currentPath:gsub('[/\\]*[^/\\]-$', '') dofile(rootPath .. '/platform.lua') local fs = require 'bee.filesystem' -ROOT = fs.current_path() / rootPath +ROOT = fs.path(rootPath) LANG = LANG or 'en-US' collectgarbage 'generational' @@ -12,6 +12,6 @@ log.init(ROOT, ROOT / 'log' / 'service.log') log.info('Lua Lsp startup, root: ', ROOT) log.debug('ROOT:', ROOT:string()) -xpcall(dofile, log.debug, rootPath .. '/debugger.lua') +dofile(rootPath .. '/debugger.lua'):wait() local service = require 'service' service.start() -- cgit v1.2.3