Duga
Duga copied to clipboard
PatternSyntaxException: Unclosed group near index 24
No idea what this is or why this happens.
http://chat.stackexchange.com/transcript/message/25792461#25792461
Sounds like a missing closing brace in a regex pattern...
Sent from my toaster
But why would it appear now? It has never appeared before that I know of, and nothing in the code has changed.
Sent from my 418 - I'm a teapot
Correction, first occurance at september 10: http://chat.stackexchange.com/transcript/20298?m=23994936#23994936
Also sent from my teapot
Has the Java version been updated recently?
To me it looks like internally in the regex matcher something crashed, the error message in any case does not seem to be intended for end-users.
This is a really important issue as it might be a reason for why Duga stops working. After two of these errors recently, she went dead for 4 days. See http://chat.stackexchange.com/transcript/message/28613081#28613081
This happened again recently and made @DugaBot be silent for several hours until I restarted her. https://chat.stackexchange.com/transcript/20298?m=45791996#45791996
In the repo there's only a few places where Pattern or replace are used. For one that is the CommentClassification groovy task, the ChatMessageHelper as well as the ProgrammersClassification.java.
All usages of replace have regex specifiers that are shorter than 24 characters or no braces / parens at all. Accordingly something should be problematic in one of the Pattern usages...
This is really strange, but I'm kinda wondering if it might be related to not having any internet. I noticed that between 23:16 on Friday evening and until today (Sunday) at 17, I have been getting this error seemingly once every minute.
On Friday at 21:00 I had a power failure causing @DugaBot to shutdown. I started @DugaBot again at 23:14:33 on Friday I had no internet between Friday at 21:00 until today at 17:00. I restarted @DugaBot at 17:02:33 today.