question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connecting signals doesn't work

See original GitHub issue

Given I have a signal on a button connected with a script in the parent node

[connection signal="pressed" from="VBoxContainer/Player1" to="." method="_on_Player1_pressed"]

And I have a function registered like this:

@RegisterClass
class LoginScene : PanelContainer() {
    @RegisterFunction
    fun _on_Player1_pressed() {
        println("clicked player1")
    }
}

Then I get this error:

ERROR: Object::emit_signal: Error calling method from signal 'pressed': 'PanelContainer(LoginScene.kt)::_on_Player1_pressed': Method not found..
   At: core\object.cpp:1260

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
chippmanncommented, Apr 24, 2021

Aah now i get what you mean. Yeah i see what i can do. Maybe something similar to what rider does with reference usage but I’m unsure if IDEA does support that. I’ll try though. IMG_20210424_231820.jpg

1reaction
TheElancommented, Apr 24, 2021

It would be nice to have some hint (similar to how type hints are displaying) of how registered function will be named in godot after conversion. What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

qt - My signal / slot connection does not work - Stack Overflow
1) Check the debug console output: · 2) Use the full signature of signal and slot: · 3) Use existing overloads: · 4)...
Read more >
Why Isn't My Turn Signal Working? - Wrench
Neither turn signal light is working.​​ If both lights are not working, this is likely a sign of a blow fuse or a...
Read more >
Turn Signal Problems and Diagnosis - AxleAddict
This guide helps you diagnose turn signal problems when one or more of the signal lights refuses to work.
Read more >
Signal issues / no service troubleshooting | T-Mobile Support
No signal bars or a "no service" error means no connection. We want to fix that. Read me first. Before you dive too...
Read more >
Registration troubleshooting - Signal Support
Confirm that you are using the most recent version of Signal. · Enable all the permissions for Signal through your Android phone Settings....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found