summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/async/async.lua2
-rw-r--r--server/src/meta.lua2
-rw-r--r--server/src/meta/type.lua4
-rw-r--r--server/src/service.lua1
4 files changed, 6 insertions, 3 deletions
diff --git a/server/src/async/async.lua b/server/src/async/async.lua
index 3401c346..644a4061 100644
--- a/server/src/async/async.lua
+++ b/server/src/async/async.lua
@@ -36,7 +36,7 @@ local function task()
}, { __index = _ENV })
local f, err = load(dump, '=task', 't', env)
if not f then
- errlog:push(err)
+ errlog:push(err .. '\n' .. dump)
return
end
local result = f(arg)
diff --git a/server/src/meta.lua b/server/src/meta.lua
deleted file mode 100644
index c6fb3a38..00000000
--- a/server/src/meta.lua
+++ /dev/null
@@ -1,2 +0,0 @@
----@class uri string
----@class path
diff --git a/server/src/meta/type.lua b/server/src/meta/type.lua
new file mode 100644
index 00000000..9b47d5bc
--- /dev/null
+++ b/server/src/meta/type.lua
@@ -0,0 +1,4 @@
+---@class uri string
+---@class path
+
+"This is syntax error, due to `workspace.library`, this error never shows."
diff --git a/server/src/service.lua b/server/src/service.lua
index 0026fb05..0eb5e625 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -288,6 +288,7 @@ function mt:readLibrary(uri, path, buf, compiled)
self._files:save(uri, buf, 0)
self._files:setLibrary(uri)
self:needCompile(uri, compiled)
+ self:clearDiagnostics(uri)
end
---@param uri uri