Jira Browser
I am getting some exception trying to use the Jira Browser which conflicts with TODO syntax.
Illegal/unsupported escape sequence near index 12
\b(TODO[^])\b
^
java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 12
\b(TODO[^])\b
^
at java.util.regex.Pattern.error(Pattern.java:1713)
at java.util.regex.Pattern.escape(Pattern.java:2177)
at java.util.regex.Pattern.range(Pattern.java:2338)
at java.util.regex.Pattern.clazz(Pattern.java:2268)
at java.util.regex.Pattern.sequence(Pattern.java:1818)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.group0(Pattern.java:2530)
at java.util.regex.Pattern.sequence(Pattern.java:1806)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.compile(Pattern.java:1460)
at java.util.regex.Pattern.]]>(Pattern.java:1133)
at java.util.regex.Pattern.compile(Pattern.java:823)
at com.talios.jira.idea.intentions.JiraTODOIssueCreationIntention.isAvailable(JiraTODOIssueCreationIntention.java:83)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:81)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.a(ShowIntentionsPass.java:190)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doApplyInformationToEditor(ShowIntentionsPass.java:116)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.applyInformationToEditor(TextEditorHighlightingPass.java:65)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$3.run(PassExecutorService.java:5)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:13)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:176)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:175)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
请先登录再写评论。
DOH. Will look at it shortly.
What version of the plugin?
Florian Hehlen wrote:
>
The problem is the ^ in my generated TODO regex (a combination of all
todo pattersn). What patterns do you have setup?
Florian Hehlen wrote:
>
Just posted an update to the plugin to ignore invalid regex patterns
(check your TODO settings - if you have any patterns that are red,
they're invalid regex expressions).
Florian Hehlen wrote:
thanks for the quick fix.
Although these might be invalid regex's they are accepted(not red) and working as a todo filters.
florian
Out of curiosity - what filters do you actually have? I wonder if
jetbrains are massaging the filter somehow..
Florian Hehlen wrote:
>
>