Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite generation loop #5

Open
lucasmontec-fortis opened this issue Jan 19, 2024 · 0 comments
Open

Infinite generation loop #5

lucasmontec-fortis opened this issue Jan 19, 2024 · 0 comments

Comments

@lucasmontec-fortis
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant