开发者

Eclipse tasks is empty

开发者 https://www.devze.com 2023-03-08 15:57 出处:网络
I\'m using Eclipse (Helios) and I added some tasks in my java classes, us开发者_如何学编程ing

I'm using Eclipse (Helios) and I added some tasks in my java classes, us开发者_如何学编程ing

// TODO: blah blah.

Near the line counting, I have the little icon that indicates the tasks is recognized but I can't see them in the Tasks view (I tried the tasks view and Task list view they're empty).

However, when I add a Task by right clicking near the line counting and choosing "Add a task", this new one appears in the "Tasks" view correctly!

What am I missing to make this work?


For those who are still having this problem, my case was that I was looking for my tasks in the TASK LIST view. I just had to open the correct view, i.e., the TASKS view. I know the author of the question mentioned that, but I missed it the first time :P


I tried all of the above and still my TODO's were not appearing on the Task view. Finally I ran Project->Clean and they did appear. Hoorah.


Task list is built on project build phase, so if you have any problems that prevent build, for example build path problems, then the task list is not populated.

Check Problems tab for build problems.


First, check the corresponding task tags defined in preferences: use the Preference page General/Editors/Structured Text Editors/Task Tags, and make sure, the corresponding tag is available.

Then, check the Tasks view content settings: open the view menu (white triangle next to the minimize and maximize icons), and select the option Configure contents. The most important things to check are the selected configurations on the left side and the scope settings on the right side.

EDIT: the Task list view is contributed by Mylyn, and does not use the task tags defined in the source.


see this, I've meet this problem recently and finally I found it's because that I import the project as maven project, the problem was solved after I run mvn eclipse:eclipse under the project dir and reimport the project as java project, hope this will be helpful for you.


I cleaned the project and they still weren't showing...however, when I went to another tab, and came back, there they were.


On a Maven project Maven/Upddate Project filled up the Tasks window will all the TODO items


same issue but I found this in Juno : One must have the "make target" view opened, and here the project highlighted. At this moment, the Tasks panel (not "task list") will show the filtered TODOs for the only project

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号