Godot: Erroneous Error: The signal is declared but never emitted. UNUSED_SIGNAL

Created on 18 Jul 2020  路  2Comments  路  Source: godotengine/godot

Godot version:
3.2.1

OS/device including version:
Win 10, PC

Issue description:
Erroneous Error indicating unused signal:

W 0:00:00.755 The signal 'something' is declared but never emitted.
UNUSED_SIGNAL
Node2D.gd:3

Steps to reproduce:
Indicate a signal is created. with "signal" keyword.
Cause signal to be emitted without using the emit_signal function directly.
This could be from an Animation track, a connection call back, call_deferred command, etc.
Observe error in errors window, after saving/running the project

Minimal reproduction project:
SignalsError.zip

bug discussion editor gdscript

Most helpful comment

I guess we can just remove this warning.

All 2 comments

WDYT @vnen? I doubt this can be solved easily, so I guess either the warning is not reliable and should be removed, or this situation should be documented as something that needs an annotation if a declared signal is not going to be emitted in a detectable way.

I guess we can just remove this warning.

Was this page helpful?
0 / 5 - 0 ratings