Skip to content

Language server erroring when indexing empty parentheses #570

Description

@Avril112113

Describe the bug
Language server erroring when indexing empy parentheses.

To Reproduce
Steps to reproduce the behavior:

  1. In code, try index anything on empy pair of brackets
  2. Failed request notif in vscode and that file is not updated with code errors ect
-- Same thing with `:` instead of `.`
local t = ().

Environment (please complete the following information):

  • OS: Windows
  • Client: VSCode

Additional context
No additional context.

Provide logs

script\parser\guide.lua:975: attempt to index a nil value (local 'source')
stack traceback:
	script\core\noder.lua:190: in upvalue 'checkMode'
	script\core\noder.lua:326: in function <script\core\noder.lua:282>
	(...tail calls...)
	script\core\searcher.lua:689: in upvalue 'prepareSearch'
	script\core\searcher.lua:783: in function 'core.searcher.searchRefs'
	script\core\searcher.lua:878: in function 'core.searcher.requestReference'
	(...tail calls...)
	script\core\highlight.lua:10: in upvalue 'eachRef'
	script\core\highlight.lua:33: in upvalue 'find'
	script\core\highlight.lua:251: in function 'core.highlight'
	script\provider\provider.lua:381: in function <script\provider\provider.lua:374>
	[C]: in function 'xpcall'
	script\proto\proto.lua:143: in function <script\proto\proto.lua:122>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions