LuaLS/lua-language-server

it just crashes

gameplays12303 opened this issue · 3 comments

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?

Other

Expected Behaviour

to work

Actual Behaviour

just crashing

Reproduction steps

don't know it's just crashing

Additional Notes

i have reinstalled vs Code to running your extension without other extension it's just crashing

Log File

file_c%3A_Users_Owner_AppData_Roaming_CraftOS-PC_computer_0.log

[11:56:25.050][error][#0:script\vm\global.lua:457]: script\vm\global.lua:457: attempt to concatenate a nil value (local 'name')
stack traceback:
	script\vm\global.lua:457: in function 'vm.vm.getGlobal'
	script\vm\compiler.lua:1174: in upvalue 'compileFunctionParam'
	script\vm\compiler.lua:1251: in upvalue 'compileLocal'
	script\vm\compiler.lua:1445: in function <script\vm\compiler.lua:1444>
	(...tail calls...)

local extClass = vm.getGlobal('type', ext[1])

By git blame, seems related to @sumneko 's recent change: 7c481f5


Can you also upload the file that you encountered crash as well?
Or even better a minimal reproduction code snippet. @gameplays12303

I could but the reason I name it just crashes is because it wasn't tied to any specific file it was crashing across the entire workspace

Seems it get fixed in latest master already, you may try it out by adding the related patch in your local luals before a new version is released 😄