NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
FIXME and TODO behavior


Joined: 11 Apr 2010
Posts: 90
Location: Prague, Czech Republic
Reply with quote
Hello.

When using the TODO and FIXME tags, I ran into these problems.

1) Simple "FIXME" and "TODO" tags without the ending colon ":" character are not added to the todo list. This is a problem, because other IDE's like Zend Studio recognize versions without ending colon ":" and when I use projects from Zend in phpEd, this poses a huge problem, because the todo lists are not generated at all. Could you please change the todo list generating behavior, so "FIXME" and "TODO" tags without ending colon are recognized too? Example follows:
Code:
// TODO: this is recognized properly and added to the todo list
// TODO this is NOT recognized properly and is missing in todo list, also single TODO without the ending colon and without any text is not recognized
// FIXME: this is recognized properly and added to the todo list
// FIXME this is NOT recognized properly and is missing in todo list, also single FIXME without the ending colon and without any text is not recognized

2) In some cases, the FIXME and TODO are not recognized. I've noticed, that when a single line comment is inside a multi-line comment, the phpEd does not recognize FIXME and TODO tags under these conditions. Example follows:
Code:
/* FIXME: this is recognized properly and added to the todo list
   // some unimportant comment
   commented_function(); // FIXME: this is NOT recognized and is missing in todo list
   commented_function(); // TODO: this is NOT recognized and is missing in todo list
*/
View user's profileFind all posts by fibizaSend private message


Joined: 14 Aug 2009
Posts: 35
Reply with quote
Any update on this? I'm finding the same issue at the moment in a project originally authored by someone else.
View user's profileFind all posts by cr0wn3rSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
I suggest you submit this via the support system as a feature request.
View user's profileFind all posts by simshaunSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
The "official" tags, that i know of are @FIXME and @TODO, phpDoc syntax
Those are recognized without the colon.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 06 Jul 2009
Posts: 72
Reply with quote
The '@TODO' etc gets recognised, but you lose the checkbox in the 'To-Do List' tab, whereas using 'TODO:' will enable the checkbox which when selected will automagically change 'TODO:' to 'DONE:'.

Using the combination of @ and : chars removes it from the 'To-Do List' tab entirely.



Regards,

Ian
View user's profileFind all posts by Ian.HSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Probably because there's nothing about "@DONE" in the PhpDoc syntax. There's some pretty strange logic sometimes behind the way NuSphere does things Smile
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 11 Apr 2010
Posts: 90
Location: Prague, Czech Republic
Reply with quote
But I was talking about TODO, FIXME, etc. tags in comments from start, not @todo tags in phpDoc. The letter is ok, but I need the former to work properly.

@simshaun - I'll do as you suggest
View user's profileFind all posts by fibizaSend private message


Joined: 11 Apr 2010
Posts: 90
Location: Prague, Czech Republic
Reply with quote
I've contacted support and got this answer: Sad Sad Sad

phpEd Support wrote:
According to our engineering, colon should be used for all tags except phpdoc's. We don't process comments inside comments separately, so for TODO to work you need to make sure that there is nothing to the left in the comment.
View user's profileFind all posts by fibizaSend private message


Joined: 16 Jan 2013
Posts: 1
Reply with quote
Hi everyone, I think it'll be a great improvement to configure those "// todo:" tags
Like a regular pattern : ~(//|#) *(todo|jack|rob|whatever)(subject)$~
In order to have more (customisable lists or todo tabs)

example : I tend to use the hash tag to put comments in php
#jack: do this
#rob:check for this array

in the coding process ( having multiple users )

Regards, rob
View user's profileFind all posts by r74Send private message
FIXME and TODO behavior
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic