Skip to content

basic type undefined #1636

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

Closed
fjqingyou opened this issue Oct 16, 2022 · 7 comments
Closed

basic type undefined #1636

fjqingyou opened this issue Oct 16, 2022 · 7 comments
Labels
duplicate This issue or pull request already exists

Comments

@fjqingyou
Copy link

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking

Expected Behaviour

boolean or string or number basic type not exists warn

Actual Behaviour

exists undefined warn

Reproduction steps

  1. create a empty folder
  2. vscode open this folder
  3. create a Test.lua and input this body
--- object test
---@class ObjectTest
---@field x number
---@field y number


--- function test
--- @param paramTestStr string
--- @param paramTestNum string
local function functionTest(paramTestStr, paramTestNum)

end

Additional Notes

image

OS
image

Please ask if I need any more information

Log File

log.zip

@sumneko sumneko added the Info Needed More information is required label Oct 17, 2022
@sumneko
Copy link
Collaborator

sumneko commented Oct 17, 2022

Please check if it fixed with latest master https://github.com/sumneko/lua-language-server/actions/runs/3241931339

@fjqingyou
Copy link
Author

I'm so sorry!
I'm not familiar with 'Actions'
Are you determining the version of the client?
VSCode Extension Lua v3.5.6

@sumneko
Copy link
Collaborator

sumneko commented Oct 18, 2022

页面拉到最下面,有自动集成的新版本包,挑一个适合你的版本(应该是 lua-language-server-33b0d66-win32-x64)。
然后解压出来覆盖你本地的插件文件(应该在 <USER>\.vscode\extensions\sumneko.lua-3.5.6-win32-x64\server)就可以手动更新成最新版本,重启VSCode测试一下就行了。
先把VSCode关掉再覆盖,否则可能会有文件占用问题。

@fjqingyou
Copy link
Author

替换后确认已经恢复了正常了!谢谢!是否现在关闭这个 issue ?

@sumneko
Copy link
Collaborator

sumneko commented Oct 18, 2022

再确认一下,你的VSCode目录或插件目录中是包含了软链接吗?

@fjqingyou
Copy link
Author

是的。因为 C 盘空间不够用,而 .vscode 这个文件夹默认在C盘。所以通过目录的软连接指向了外置硬盘!

@sumneko sumneko added duplicate This issue or pull request already exists and removed Info Needed More information is required labels Oct 18, 2022
@sumneko
Copy link
Collaborator

sumneko commented Oct 18, 2022

#1611

@sumneko sumneko closed this as completed Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants