Skip to content

Script error when typing out for loops #1275

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
Nexela opened this issue Jul 4, 2022 · 0 comments
Closed

Script error when typing out for loops #1275

Nexela opened this issue Jul 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Nexela
Copy link
Contributor

Nexela commented Jul 4, 2022

Start typing

for _, something in pairs({}) do end

As soon as you finish the in it will start erroring unitl you finish end

[Error - 9:35:09 PM] Request textDocument/semanticTokens/range failed.
  Message: [14:41:03.880][error][#0:script/vm/compiler.lua:1015]: script/vm/compiler.lua:1015: attempt to index a nil value (field '_iterVars')
stack traceback:
	script/vm/compiler.lua:1015: in upvalue 'compileLocal'
	script/vm/compiler.lua:1292: in function <script/vm/compiler.lua:1291>
	(...tail calls...)
	script/vm/compiler.lua:1903: in upvalue 'compileByNode'
	script/vm/compiler.lua:2021: in function 'vm.compileNode'
	script/vm/infer.lua:205: in function 'vm.getInfer'
	script/core/semantic-tokens.lua:199: in function <script/core/semantic-tokens.lua:113>
	(...tail calls...)
	script/core/semantic-tokens.lua:833: in local 'callback'
	script/parser/guide.lua:659: in function 'parser.guide.eachSourceBetween'
	script/core/semantic-tokens.lua:832: in function 'core.semantic-tokens'
	script/provider/provider.lua:960: in function <script/provider/provider.lua:953>
	[C]: in function 'xpcall'
	script/proto/proto.lua:184: in function <script/proto/proto.lua:159>

  Code: -32603 

Latest Vscode, Lastest Master

@sumneko sumneko added the bug Something isn't working label Jul 4, 2022
@sumneko sumneko closed this as completed in f8104cc Jul 4, 2022
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