Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why don't I see my TODOs for my PHP files in Eclipse?

Why don't I see my TODOs for my PHP files in Eclipse?

I ran into this issue in PDT, I just wanted to put the answer up in case someone else did too.

like image 654
Resist Design Avatar asked Oct 01 '11 00:10

Resist Design


2 Answers

I ran into this issue in PDT, I just wanted to put the answer up in case someone else did too.

  • ANSWER * Although PHP doesn't really need to compile in your IDE, you need to "build" your project for TODO tags to be automatically added as tasks. If you enable Project->"Build Automatically" in Eclipse your TODOs will always become tasks upon saving your file.
like image 75
Resist Design Avatar answered Oct 14 '22 23:10

Resist Design


To get this to work for me (using Eclipse with the Aptana plugin) I had to enable "PHP" as a Project Nature in my project properties, under Project | Properties | Project Natures

I had it set to "Web" and I was only getting TODOs from my Javascript files.

like image 44
nullability Avatar answered Oct 15 '22 01:10

nullability