summaryrefslogtreecommitdiff
path: root/platform.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-11 10:52:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-11 10:52:30 +0800
commit890dfbd14127a5f7970d61e857c54cb36091b385 (patch)
treee0399d2e0a6147e7d017a137873bf512109558aa /platform.lua
parent51235c40a4874e7235281b8797a68b7646940955 (diff)
downloadlua-language-server-890dfbd14127a5f7970d61e857c54cb36091b385.zip
test
Diffstat (limited to 'platform.lua')
-rw-r--r--platform.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform.lua b/platform.lua
index 42d4b706..3f0ed9fe 100644
--- a/platform.lua
+++ b/platform.lua
@@ -11,6 +11,9 @@ end
local exePath = findExePath()
local dll = package.cpath:match '[/\\]%?%.([a-z]+)'
local bee = package.searchpath('bee', package.cpath)
+if not bee then
+ error('Can not find bee.dll? cpath = ' .. tostring(package.cpath))
+end
local ok, err = package.loadlib(bee, 'luaopen_bee_platform')
if not ok then
error(([[It doesn't seem to support your OS, please build it in your OS, see https://github.com/sumneko/vscode-lua/wiki/Build