Eclipse does not show TODO tasks

Viewed 13135

After upgrading to Eclipse Juno and importing an existing Java EE project, the Tasks view does not show TODOs from comments in my .java files. I can manually add new TODO tasks by specifically right-clicking the gutter and selecting Add Task... from the popup menu, but Eclipse should create TODOs from my comments on its own.

I went through all the preferences related to task tags, they are all default (thus OK), still no tags appear. I tried closing/opening the project, re-building it, I checked Git repo to see that no dot files (.project etc) were modified since everything worked in the older Eclipse.

This question did not help me... how to make Eclipse show my Java TODOs?

4 Answers

In my case I was just not aware of the fact that the project has to build correctly in order for the TODOs to show up. After I fixed the build errors there was no problem anymore to see the TODOs.

Be sure to enable Project -> Build Automatically. Then trigger an auto-build by adding, removing or modifying a resource.

Related