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
Issue description:
I have two nodes to be defined by a plugin. One instances the other internally, but not vice versa in any way (neither directly nor through a chain of classes)
Both nodes compile and behave as expected. But after refactoring the instanced one to the same folder as its consumer, I get (script error or cyclic dependency) error.
Steps to reproduce:
Given the following source tree:
Addons
plugin_name
plugin.gd
controller
controller.gd
cursor
cursor.gd
Refactor to:
Addons
plugin_name
plugin.gd
controller
controller.gd
cursor
cursor.gd
Expected:
Plugin behaves the same
Actual:
An error (script error or cyclic dependency) is shown where Cursoris instanced.
Minimal reproduction project:
Inside plugin.gd, instantiation to custom types are done like:
tool
class_name Controller
extends Node
var cursor: Cursor = Cursor.new() # <--- This is the line where the issue is shown
func _enter_tree() -> void:
GlobalRepository.add_controller(self) # Silly autoloaded plugin for some kind of context for dependency injection
func _ready() -> void:
add_child(cursor)
The text was updated successfully, but these errors were encountered:
Godot version:
3.2.3.Stable
OS/device including version:
Windows 10 Home.
Issue description:
I have two nodes to be defined by a plugin. One instances the other internally, but not vice versa in any way (neither directly nor through a chain of classes)
Both nodes compile and behave as expected. But after refactoring the instanced one to the same folder as its consumer, I get
(script error or cyclic dependency)
error.Steps to reproduce:
Given the following source tree:
Refactor to:
Expected:
Plugin behaves the same
Actual:
An error
(script error or cyclic dependency)
is shown whereCursor
is instanced.Minimal reproduction project:
Inside plugin.gd, instantiation to custom types are done like:
Nothing fancy in cursor.gd:
But In controller.gd, instantiation is made like:
The text was updated successfully, but these errors were encountered: