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

Language server erroring when indexing empty parentheses #570

Closed
Avril112113 opened this issue Jun 22, 2021 · 0 comments
Closed

Language server erroring when indexing empty parentheses #570

Avril112113 opened this issue Jun 22, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Avril112113
Copy link

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>
@Avril112113 Avril112113 changed the title Language server erroring when indexing empy parentheses Language server erroring when indexing empty parentheses Jun 22, 2021
@sumneko sumneko added the bug Something isn't working label Jun 23, 2021
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

2 participants