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

Error spam while typing legal and functional code #93799

Closed
inhalt120g opened this issue Jun 30, 2024 · 0 comments · Fixed by #93815
Closed

Error spam while typing legal and functional code #93799

inhalt120g opened this issue Jun 30, 2024 · 0 comments · Fixed by #93815

Comments

@inhalt120g
Copy link

inhalt120g commented Jun 30, 2024

Tested versions

v4.3.beta2.official [b75f048]

System information

Godot v4.3.beta2 - macOS 14.5.0 - Vulkan (Forward+) - integrated Apple M1 - Apple M1 (8 Threads)

Issue description

While I'm typing functional code, the console is getting flooded with error reports:
image

The code functions as expected (and looks fully in order when checked using various "print"s) once the game is launched.

Steps to reproduce

Add a vertical container to a project.
Add two buttons or so to the container.
Add a script to the container (in my case I'm using an inbuilt script if it matters).
Paste this into the script:

func _ready():
	menu_buttons = get_children()
	for B in menu_buttons:
		B.pressed.connect(button_trigger)
		
	if menu_buttons.size() > 0 :
		menu_buttons[0].grab_focus()

func button_trigger():
	pass

(If you launch the project it should work.)

In the script, erase the last line and start typing it back in.
When you type past "[0]." part, a new error will be reported for every keypress and the console will get flooded.

Minimal reproduction project (MRP)

Buttons and a container.

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

Successfully merging a pull request may close this issue.

2 participants