diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-11 10:52:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-11 10:52:30 +0800 |
commit | 890dfbd14127a5f7970d61e857c54cb36091b385 (patch) | |
tree | e0399d2e0a6147e7d017a137873bf512109558aa /platform.lua | |
parent | 51235c40a4874e7235281b8797a68b7646940955 (diff) | |
download | lua-language-server-890dfbd14127a5f7970d61e857c54cb36091b385.zip |
test
Diffstat (limited to 'platform.lua')
-rw-r--r-- | platform.lua | 3 |
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 |