You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install and enable latest Godot Dialogue Manager addon
Check editor notifications
res://addons/dialogue_manager/components/code_edit.gd:280 - Parse Error: The function signature doesn't match the parent. Parent signature is "insert_text(String, int, int, bool = <default>, bool = <default>) -> void".
modules/gdscript/gdscript.cpp:2943 - Failed to load script "res://addons/dialogue_manager/components/code_edit.gd" with error "Parse error". (User)
Expected behavior
Well, I expect it not to crash 😄
Workaround (patch)
I changed the signature to be similar to the parent's.
Not sure what the purpose of new parameters, but multicarret editing is working even with old function body.
Index: addons/dialogue_manager/components/code_edit.gd
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/addons/dialogue_manager/components/code_edit.gd b/addons/dialogue_manager/components/code_edit.gd
--- a/addons/dialogue_manager/components/code_edit.gd (revision 9c68242a0f9dfc747692e609ec953d5ef9e238de)
+++ b/addons/dialogue_manager/components/code_edit.gd (date 1717929925474)
@@ -276,7 +276,7 @@
# Insert text at current caret position
# Move Caret down 1 line if not => END
-func insert_text(text: String) -> void:
+func insert_text(text: String, p_line: int, p_column: int, p_before_selection_begin: bool = true, p_before_selection_end: bool = false) -> void:
if text != "=> END":
insert_text_at_caret(text+"\n")
set_caret_line(get_caret_line()+1)
The text was updated successfully, but these errors were encountered:
Describe the bug
CodeEdit
class has changed signature ofinsert_text
function in godot 4.3 in order to support multiple carret editing feature.Affected version
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Well, I expect it not to crash 😄
Workaround (patch)
I changed the signature to be similar to the parent's.
Not sure what the purpose of new parameters, but multicarret editing is working even with old function body.
The text was updated successfully, but these errors were encountered: