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

gdscript_tokenizer error when right clicking on dictionary #47333

Closed
me2beats opened this issue Mar 24, 2021 · 1 comment
Closed

gdscript_tokenizer error when right clicking on dictionary #47333

me2beats opened this issue Mar 24, 2021 · 1 comment

Comments

@me2beats
Copy link

Godot version:

3.2.3

OS/device including version:

Issue description:

If I have a Dictionary variable, defined outside any functions like

var a = {
	x =true
}

and I right click somewhere between key and val, that is after x and before =true, I get this error in Output:

modules/gdscript/gdscript_tokenizer.cpp:1129
- Condition "tk_rb[ofs].type != TK_IDENTIFIER" is true. Returned: StringName()

The error doesn't appear if such variable is inside some function like:

func _init():
	var a = {
		x =true
	}

Also this happens only with "lua-style" defined pairs, that is the error doesn't appear here:

var a = {
	'x':true
}

Steps to reproduce:

  1. Create an empty script and paste this code:
var a = {
	x =true
}
  1. Right click on 2:6 or 2:7 (after x but before =true)
    You will get the error in Output

Minimal reproduction project:

@Calinou
Copy link
Member

Calinou commented Mar 24, 2021

Duplicate of #35994 (same cause).

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

No branches or pull requests

2 participants