You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When typing for, VSCode would popup completion list like this:
Actual Behaviour
There are no popups and there are an error notification.
Reproduction steps
Config VSCode
Text Editor - Files: Associations
Item
Value
*.bytes
lua
Extensions - Lua > Runtime: Path
?.lua
?/init.lua
Common/?.bytes
Create an example project, file tree like this:
│ main.lua
│
└─Common
enum.bytes
main.lua
locala=require("enum")
print(a)
Common/enum.bytes
return {
name="zhangsan"
}
Change something of file enum.bytes (this is very important for reproducing this bug!), for example:
Common/enum.bytes
return {
name="zhangsan",
age=21
}
Type for in main.lua, wait VSCode do completion.
Additional Notes
No response
Log
script\core\completion\auto-require.lua:61: attempt to index a nil value
stack traceback:
script\core\completion\auto-require.lua:61: in function 'core.completion.auto-require.check'
script\core\completion\completion.lua:407: in upvalue 'checkModule'
script\core\completion\completion.lua:1457: in upvalue 'tryWord'
script\core\completion\completion.lua:2231: in upvalue 'tryCompletions'
script\core\completion\completion.lua:2247: in function 'core.completion.completion.completion'
script\provider\provider.lua:622: in function <script\provider\provider.lua:597>
[C]: in function 'xpcall'
script\proto\proto.lua:191: in function <script\proto\proto.lua:166>
[Error - 2:10:13 PM] Request textDocument/completion failed.
The text was updated successfully, but these errors were encountered:
Which OS are you using?
Windows
Expected Behaviour
When typing
for
, VSCode would popup completion list like this:Actual Behaviour
There are no popups and there are an error notification.
Reproduction steps
Config VSCode
Text Editor - Files: Associations
Extensions - Lua > Runtime: Path
Create an example project, file tree like this:
main.lua
Common/enum.bytes
Change something of file enum.bytes (this is very important for reproducing this bug!), for example:
Common/enum.bytes
Type
for
in main.lua, wait VSCode do completion.Additional Notes
No response
Log
The text was updated successfully, but these errors were encountered: