Error switching editors

I started a project in editor 1.0 and its works fine. I just switched to editor 2.0 and now the project will not build. I am getting an
"java.lang.AssertionError: Assert failed: Cycle detected on node type editor.collection/CollectionNode and output :build-targets
(not (contains? (:in-production ctx) [node-id label]))"

Is there something I need to change in the project settings? Or is there a common cause to this type of assert?

Any help would be appreciated!

Hi @siriq.duval!

The most common reason for this is that you have created a collection cycle. For instance a collection containing a game object with a collection proxy pointing out the original collection. Typically the chain is longer though.
Editor 1 is not as strict about this, and in Editor 2 - well, this should probably be reported as a build error instead of an assert :slight_smile:

This has also been reported on our public issue tracker: https://github.com/defold/editor2-issues/issues/1023

4 Likes