When is added the TODO statement at editor code, the Error Stripe don't show
that, as before, with blue signal.
I am sorry, but this is currently acrroding the UI Spec:
Moreover, the error stripe is able to show only annotations, and the tasklist
module currently does not mark TODOs with annotations.
Reassigning to the tasklist module: if the TODOs were marked with annotations,
we could make them visible in the Error Stripe.
I, for one, think that TODOs should show in the error stripe, whatever it
takes. I use that feature a lot in the old error stripe module add-on in NB
The NB5 documentation at
http://www.netbeans.org/community/releases/50/index.html#editor actually says
that TODOs show in the error stripe. As does the IDE help system. At the very
least, remove it from the documentation and help.
But please get TODOs back into the error stripe somehow.
I'm missing this too :(
Hmm, There is To Do window for the same purpose. Well it takes little bit more
space, on the other hand it features keyboard navigation (F12) and more.
I understand the reasoning for the above, but I used to have it on the stripe
and I WANT IT BACK! :)
I used this a lot in 4.1 and in 5;0 I missing this feature a lot.
Despite the window, the error stripe is of the most convenience. I would like
it back as well. Also it would be great and I am not sure if this can be done
if the @FIXME tag was also considered...different symbol in the error stripe.
Much appreciated Netbeans team!
I miss it a lot too.
There is a small util taht implements this feature at http://freeweb.siol.net/kovica
The window at the bottom is helpful when looking for all the todos in a
directory, but the glyph in the Error Stripe is extremely helpful when looking
at a single file. I actually find these far more helpful than the glyphs
indicating an error. The compiler will tell me if I miss an error. However, if
while I am refactoring, I miss a todo that I made, I just have to wait for the
bug to show up or remember to scan all my files for a todo.
Having to keep a todo window open all the time just to see if there are any
todos is a waste of good screen space.
The extension at http://freeweb.siol.net/kovica no longer exists. It looks like
it has moved to http://kovica.googlepages.com/. However, besides adding a
toolbar item, it does not seem to do much in 5.5
Yes, the module that supports TODOs is at http://kovica.googlepages.com/, but I
don't have much time to make it work under 5.5. I promise I will do it in next
couple of weeks and I'll post to nbusers.
Is there any chance that with all the great new features in the 6.0 editor, this
can be included?
It looks like the error strip specification has expanded significantly to
include all sorts of great new features. It would seem that NB 6 would be a
great time to add this functionality.
Going by the votes, it seems like there is some general interest in this.
This is a MUST! Me and my developer's team are really missing this one...:(
Created attachment 81142 [details]
The proposed patch now add TODOs on error stripe. This is just the initial version where I wish to make available soon:
1. Remove manual highlight support and make annotation take care about it, but I need to submit another patch to update
TODO annotation to editor hints module (where the annotation I used is defined).
2. Make it usable for 6.5 too.
3. Respect property 'Show ToDos from comments only' from Option > Miscellaneous > Tasks
Your comments are welcome and I wish to integrate it at main/contrib asap.
I'd like to NetFIX  this issue. Is it possible? If you agree, the issue component should be changed to contrib. :-D
Created attachment 81146 [details]
Improved patch, now with Line.Part support and more
The second patch supports Line.Part where just the text after ToDos tokens are highlighted and now it respects 'Show
ToDos from comments only' from Option > Miscellaneous > Tasks option. Comments are welcome.
hmichel, your patches are probably ok, but in my opinion they miss the whole point of this issue? AFAIK
contrib/showtodos is an experimental module that is not part of the standard Netbeans distribution. There is the
tasklist module in Netbeans distro that recognizes TODO strings and several other patterns too. This issue (if I
understand it correctly) is about extending tasklist module to highlight TODO strings and show them in the error stripe.
IMO, this should be added to tasklist module and implemented as ParserResultTask associated with
Scheduler.EDITOR_SENSITIVE_TASK_SCHEDULER scheduler. Also you may need to have a look at how indexing is done in
tasklist, because it IMO scans files on disk rather then Documents for files that are opened in the editor. I'm CCing
Standa to give further advice/guidance if needed.
For now, I hope the plugin should work. I really wish to work on make it available for nb distro asap, but if we have an
plugin that do the work, I hope it will help until the final work is done. :-D
If you agree, I can integrate the code at main/contrib where I have push permission.
i agree with vstejskal - it'd be better to integrate error stripe support to tasklist module
I agree with you, but in mean time, why not have one alternative until it is done to ide default distro? And, since we
are in feature freeze will not be possible to integrate it for 6.7, and this plugin should solve this lack even for 6.X.
I really wish to do this for task list as soon as I have time to take a look at it, but I really wish have this
available asap in my development environment.
Well, since we are talking about an experimental module I think you are free to do whatever you want. IMO you are not
even obliged to follow 6.7 release rules for changes in this module.
@jlahoda: Could you update error stripe spec  with how TODOs should be shown at error stripe or tell who may do it?
As well, the color for TODO marks and icon too, if possible. :-D
I updated the plugin to highlight TODOs using green color (#65B56B).
The plugin is already available for 'Latest Development Build' update center. I will use this to inspire things like
colors and icons to implement the default implementation for the NetBeans release. Comments are really welcome.
The plugin should work for nb 6.5.1 and 6.7.
Thanks, seems to work fine, except some small glitches (#164870). I do not think it is necessary to change the spec
(yet) - the module is not part of a standard distro, and the spec is most likely obsolete anyway.
Thanks for reply. About spec, I will need it to implement it for next nb release. Probably I will make plugin reflect
every behaviour from next release, just to have the same feature without an backport and it will be a way to make the
idea tested. :-D
BTW #164870 is already fixed.
As a side note, the current Editor TODO Highighting plugin is nice. Maybe they should be integrated.
Version: 184.108.40.206 Source: Latest Development Build
This module highlights tasklist's TODO items in edited files. The highlighting color can be customized in Tools-Options
-> Fonts & Colors -> Syntax -> All Languages -> TODO and the words that are recognized as TODO items in Tools-Options ->
Miscellaneous -> Tasks.
This just doesn't seem that hard. I think I saw an experimental module that would do this at one point. It used to be a blue stripe back in the old days. Now there is a module that can be installed that can highlight the todos in the editor. That's nice, but please just put the blue line back in the error stripe.
I'd like to have the blue marker and syntax highlighting (maybe black on yellow ground) for FIXME and TODO inside comments.
Btw, where can I get the "Editor TODO Highighting plugin" that was mentioned in the last post? I cannot find it neither in Options->Plugins nor on www.netbeans.org -> Plugins.