Regular expression to match error ouput
Posted: Thu Jun 27, 2002 9:08 pm
Hello,
When I try to compile and double-click on the errors in the "Command Results", it says, "Cannot jump to item under cursor". It does work if just using the stock "Compile Java" menu item from the Tools menu, but compiling from a batch file with a list of commands, .i.e., to put the class files in another directory, it doesn't work.
For example, here is an error line:
.\metadigm\util\PromptDialog.java:810: cannot resolve symbol
and here is the default regular expression copied from "Compile Java"
^\(\(\(\[^\]+\[^\]+\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):
file register 1
line register 4
I tried
^\([^:]*\):\([0-9]+\)
but it didn't work either.
Any ideas?
Thanks!
Linda
When I try to compile and double-click on the errors in the "Command Results", it says, "Cannot jump to item under cursor". It does work if just using the stock "Compile Java" menu item from the Tools menu, but compiling from a batch file with a list of commands, .i.e., to put the class files in another directory, it doesn't work.
For example, here is an error line:
.\metadigm\util\PromptDialog.java:810: cannot resolve symbol
and here is the default regular expression copied from "Compile Java"
^\(\(\(\[^\]+\[^\]+\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):
file register 1
line register 4
I tried
^\([^:]*\):\([0-9]+\)
but it didn't work either.
Any ideas?
Thanks!
Linda