-
Notifications
You must be signed in to change notification settings - Fork 316
LogDialog improvements #1385
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
base: master
Are you sure you want to change the base?
LogDialog improvements #1385
Conversation
|
|
||
| /** | ||
| * JTextPane only wraps on whitespace, and never breaks words, regardless of length. | ||
| * LineWrapTextPane breaks after a BREAK_PATTERN match, or breaks long strings if a valid |
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.
So what is the BREAK_PATTERN, exactly? I see that the LogDialog with wrapping enabled just breaks based on the size of the inner textbox, so I'd need some help fully getting BREAK_PATTERN.
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.
It's defined below as a regular expression...
private static final Pattern BREAK_PATTERN = Pattern.compile("[\\s,{}:]");\swhitespace,comma{left curly brace}right curly brace:colon
|
Tested and I took a brief look at the code. Everything looks great and I'm sure there's no need for a deeper code review from me. Also left a suggestion for a "Copy All" functionality, since I'd think that would be a common use for the window. Feel free to ignore, it's intern code! 🤣 Out of curiosity, how does the |
We have a theme change detector, then the class just need to implement You mentioned in PM that you were able to cause a hard-crash when this occurred. If if this is the case, we need to patch before merging. |
|
@RebeccaDeField FYI, placeholder artwork committed via 9873086. Feel free to scrutinize and fix on master branch at any time. |
|
@Vzor- I found a weird performance issue.... Running the following code on Ubuntu 24.04 ARM64 VM to spam the logs with the Log Dialog open causes the system to slow to a crawl. const connectAndDisconnect = () => qz.websocket.isActive() ? qz.websocket.disconnect().then(() => qz.websocket.connect().then(() => qz.websocket.disconnect())) : qz.websocket.connect().then(() => qz.websocket.disconnect()); const connectionInterval = setInterval(connectAndDisconnect, 100);
If the CPU cycles are being spent on the coloring, we may need to add a checkbox to toggle this off for systems that can't handle it. |
tresf
left a comment
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.
Need to address performance issues on Ubuntu 24.04 ARM as noted here #1385 (comment).
fixes #1384
This fixes
New features
todo:
logs.mov