Make Bevy warnings errors? #139
Replies: 4 comments 2 replies
-
Any examples of this? |
Beta Was this translation helpful? Give feedback.
-
I would like to have an example of a warning we'd like to do this on.
I believe so. I think we'd setup a custom tracing subscriber that would listen for certain logs and panic when it receives blacklisted logs. |
Beta Was this translation helpful? Give feedback.
-
I need to check 😄 Today I bashed my head on asset that I've declared in the metadata, but without adding the corresponding file. This was not causing a blank screen, however, I don't think there should be a legitimate case where we declare an asset, but not add the file. Well, at least, not that I'm aware of 😄 Regarding the instance of blank screen, I triggered one case while checking a former bug report, but I need to dig a bit. |
Beta Was this translation helpful? Give feedback.
-
The case was this. This is a warning:
but it actually causes a black window. |
Beta Was this translation helpful? Give feedback.
-
Certain warnings that Bevy logs, break the program, but don't panic. I think it'd be useful to cause panics instead, since the app is broken anyway, and if such warnings are accidentally missed by the developer (it happened to me a few times), one risks to waste time.
So, the questions are:
Beta Was this translation helpful? Give feedback.
All reactions