Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内置的第三方库失效 #1431

Closed
fesily opened this issue Aug 3, 2022 · 3 comments
Closed

内置的第三方库失效 #1431

fesily opened this issue Aug 3, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@fesily
Copy link
Contributor

fesily commented Aug 3, 2022

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

MacOS

What is the issue affecting?

Libraries

Expected Behaviour

require "string"
require "resty.core.base"

VSCODE无法读取内置的文件
image

Actual Behaviour

image

Reproduction steps

但是require的时候是有提示的,这个问题我不知道该如何去定位
image
image

Additional Notes

No response

Log File

file_Users_apple_func_typescripttolua_test.log

@sumneko sumneko added the bug Something isn't working label Aug 3, 2022
@fesily
Copy link
Contributor Author

fesily commented Aug 4, 2022

我尝试了所有的内置库,除了skynet,其他任何文件名带有.的都不认

---ok
require "skynet.debug"  --skynet.debug.lua
require "ngx“ --ngx.lua
--error
require "cc.data"  --cc.data.lua
require "table.clear"  --table.clear.lua

@fesily
Copy link
Contributor Author

fesily commented Aug 5, 2022

\一直在提示第三方库,自动检测已经关闭

 "Lua.workspace.checkThirdParty": false

@flrgh
Copy link
Contributor

flrgh commented Aug 29, 2022

@sumneko looking at 04fa96b I see that files in ./meta/3rd were renamed from a.b.c.lua to a/b/c.lua. Should I rename all of my annotations like this as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants