-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
fix: no error '! Couldn't find frame ID folio' anymore #1943
Conversation
Well, even though it seemed to have worked sometimes, I noticed maybe it hasn't to do with this part lol, at least not at all, because it still give this error sometimes when using |
44369a6
to
a2a59b8
Compare
Now I finally got rid of it when running with The warning was pointing to where the BTW I'd like to know whether this is a good idea or not, and whether there are other ways to do this work without using global... |
It's perhaps a documentation problem? Silencing an error (absence of folio frame when the class expects it) is probably wrong, moreover using a global variable. |
My point it that the class shouldn't require a folio frame, when users create framesets without folio, they shouldn't be warned because of that. What is wrong in having no folio in the frameset? |
Nothing per se, but folios can be disabled with |
a2a59b8
to
1521b32
Compare
🤦 It's impressive how simply getting enough sleep can make our brains function a bit better... Now |
I understand your point, but please note that the only "error" this PR would hide it not an actual error! The current implementation of this package assumes every frame set as having a folio, what isn't true. It only would be an error unfairly hidden if the user wish to have a folio frame, but simple forgot to declare it, and received no warning, does this make any sense? But the opposite can happen as happened with me, but why have to explicitly call |
1521b32
to
770fcb1
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.
I'm sorry, I do get what you are trying to "fix" here but something doesn't feel right. Like @Omikhleia has mentioned hiding an error just to hide an error doesn't seem right. Using pcall()
to call external code that may or may not work right is one thing, but using it on our own internal code to spawn a bunch of work and just fail quietly if things go sideways and the work can't be done just isn't cosher. Sorry.
I do think there could be ways to fix this, but it is going to take a different approach. For now throwing an error if the user didn't turn off folios but did delete their expected frame is the right thing to do.
What about making folios on/off a class option and setting up the default frameset to not even create a folio frame if they are disabled?
This old PR now has conflicts, and last discussions pointed it would not occur as-is. |
This "error" always annoyed me when I create framesets without a folio frame and I suppose other people do it was well.
What you think?