Re: [tasklist] java compilation warnings window on XML files!

Tor Norbye <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <1050072917.3577.2.camel@proto>
On Fri, 2003-04-11 at 03:07, Mike Skells wrote:
> Hi,
> It seems that there is some parsing of all files types.
> I notices today when I opened an XML files that there was a warning
> relating to a xml attribute with value PENDING, (not in a comment, but
> part of the normal XML)
>  
> what file types should be processed?
> What level of processing is done - I presume that there is just a text
> scan (so the tab name is incorrect?)
> should it scan XML files at all and if it does should it understand
> comments?

It can scan comments only, but that's not the default behavior.
(Somebody argued earlier on, on nbui I think when we had our UI
review, that they like to do something like this and want it
to show up:
   int mystub() {
     System.out.println("TODO! Implement mystub");
   }
and if we default to scanning comments only we wont catch it.

But I'm starting to think that we should only scan comments.
We got another bug filed a while ago too for a similar reason
(Somebody had PENDING as a constant in their Java code so
it showed up).

You can switch it to comments-only scanning in the Options
dialog - look for the tasklist icon on the left; there should
be one node for user task options and one for editor 
tasklist/scanning.

By the way, it scans only comments for recognized file types.
For file types it doesn't recognize, it will scan all the text.

-- Tor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.