Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lua-language-server-srb2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LJ Sonic
lua-language-server-srb2
Commits
919c4015
Commit
919c4015
authored
3 years ago
by
最萌小汐
Browse files
Options
Downloads
Patches
Plain Diff
merge cpath
parent
890dfbd1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform.lua
+4
-0
4 additions, 0 deletions
platform.lua
with
4 additions
and
0 deletions
platform.lua
+
4
−
0
View file @
919c4015
...
@@ -9,7 +9,9 @@ local function findExePath()
...
@@ -9,7 +9,9 @@ local function findExePath()
end
end
local
exePath
=
findExePath
()
local
exePath
=
findExePath
()
local
exeDir
=
exePath
:
match
(
'(.+)[/\\][%w_.-]+$'
)
local
dll
=
package.cpath
:
match
'[/\\]%?%.([a-z]+)'
local
dll
=
package.cpath
:
match
'[/\\]%?%.([a-z]+)'
package.cpath
=
(
'%s/?.%s;%s'
):
format
(
exeDir
,
dll
,
package.cpath
)
local
bee
=
package.searchpath
(
'bee'
,
package.cpath
)
local
bee
=
package.searchpath
(
'bee'
,
package.cpath
)
if
not
bee
then
if
not
bee
then
error
(
'Can not find bee.dll? cpath = '
..
tostring
(
package.cpath
))
error
(
'Can not find bee.dll? cpath = '
..
tostring
(
package.cpath
))
...
@@ -19,11 +21,13 @@ if not ok then
...
@@ -19,11 +21,13 @@ 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
error
((
[[It doesn't seem to support your OS, please build it in your OS, see https://github.com/sumneko/vscode-lua/wiki/Build
errorMsg: %s
errorMsg: %s
exePath: %s
exePath: %s
exeDir: %s
dll: %s
dll: %s
cpath: %s
cpath: %s
]]
):
format
(
]]
):
format
(
err
,
err
,
exePath
,
exePath
,
exeDir
,
dll
,
dll
,
package.cpath
package.cpath
))
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment