Re: build error messages

Tim Lebedkov <[email protected]> Thu, 31 Jul 2003 19:36:29 +0200
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <[email protected]>
Hello Mike,

die you read the README?
http://tasklist.netbeans.org/source/browse/tasklist/compiler/README?rev=1.1&content-type=text/x-cvsweb-markup

Here is the content of the file:

How to achieve better results with Build Errors view:
1. Do not use treefs module (View over a Filesystem)
2. Use External compilation with javac 
   - open options dialog: Global menu/Tools/Options
   - go to the Options/Editing/Java Sources node 
     and edit the property Default Compiler
3. Change regular expression for javac:
   - open options dialog: Global menu/Tools/Options
   - go to the Options/Building/Compiler Types/External Compilation node 
     and edit the property Error Expression
   - in the opened dialog change the name of the error expression to
     "Better Sun javac"
   - create a new Error Expression with "Add" 
   - change the text in the field "Error expression" to 
     ^(.+):([0-9]+): ([^\x5e]+\x5e)[\n\r]*
   - press "Change"

--Tim

Mike Skells wrote:

> Hi,
> when I use the build error tab sometime the messages are less useful 
> than they could be
>  
> for example when a error is 'cannot resolve symbol' the symbol name is 
> not displayed. With the build error module deactivated then this is 
> displayed in the next line as 'symbol : xyz
>  
> on the suggestions view the display contains the the details as if 
> taken from the other lines
>  
> As a seperate point, the column number reported is incorrect, it 
> always reports 1. I presume that thhis is taken from the [<line>:<col>] format in the error message.
> could this be parsed from the location of the '^' in the error message 
> as this gives the actual location of the error.
> This would mean that when you goto the source then the curser is in 
> the right place
> It would be good to fix the javac compiler to output the correct 
> column number but I guess that would take a while longer!
>  
> Mike
>  
>  
>
> ------------------------------------------------------------------------
> This mailbox protected from junk email by Matador
> from MailFrontier, Inc. http://info.mailfrontier.com 
> <http://info.mailfrontier.com/>
>