Skip to content

Infinite generation loop #5

@lucasmontec-fortis

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)

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