Skip to content

Infinite generation loop #5

Description

@lucasmontec-fortis

If I have the reload generation enabled, the generator runs indefinitely. I believe it's detecting its own generated source and triggering generation again. This only happens when the overwrite setting is set to true.

Also, the USG window stops detecting generators if I disable the automatic generation. I have to reopen the window to see my generators.

I believe this could be the cause:

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_iconButton () (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)
SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsPanel.Wakeup (UnityEditor.Editor& cachedEditor) (at ./Packages/Unity-AltSourceGenerator/Editor/ProjectSettingsPanel.cs:122)
SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsPanel+USGWindow.OnEnable () (at ./Packages/Unity-AltSourceGenerator/Editor/ProjectSettingsPanel.cs:71)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions