-
Notifications
You must be signed in to change notification settings - Fork 11
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
Track component initialisations for error messages #420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the note about that this should be erroring out instead of just warning.
d2f74c9
to
b675af2
Compare
What does the output look like now? Does the user have a chance to figure out where this happened? (We can keep track of the call stack during init and then use that to indicate the problem later.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changelog is missing.
PR doesn't included that yet so I'll draft this one |
db868fd
to
5380434
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning message should be improved:
- e.g. Component was not added.
self += …
missing? - We know the file and line number from the stack, put it out.
We don't want to have an error here. We just don't know what people are doing out there and having an error where you have no means of getting out of it is bad. |
We don't want to have an error here. We just don't know what people are doing out there and having an error where you have no means of getting out of it is bad.
closes #278
provides a warning if a component is initialized, but not prepared:
Say we have the
tutorial-helloworld
:component.py
:This gives us an error message like this:
Of course the warning is yellow too: