Eclipse 任务为空
我正在使用 Eclipse (Helios),并在我的 java 类中添加了一些任务,使用
// TODO: blah blah.
近行计数,我有一个小图标,指示任务已被识别,但我在任务视图中看不到它们(我尝试了任务视图和任务列表视图它们是空的)。
但是,当我通过右键单击行计数附近并选择“添加任务”来添加任务时,这个新任务会正确显示在“任务”视图中!
为了使这项工作顺利进行,我缺少什么?
I'm using Eclipse (Helios) and I added some tasks in my java classes, using
// 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
对于那些仍然遇到此问题的人,我的情况是我正在任务列表视图中查找我的任务。我只需打开正确的视图,即 TASKS 视图。我知道问题的作者提到过这一点,但我第一次错过了:P
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
我尝试了上述所有方法,但我的待办事项仍然没有出现在任务视图上。最后我运行了 Project->Clean,它们确实出现了。万岁。
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.
首先,检查首选项中定义的相应任务标签:使用首选项页面常规/编辑器/结构化文本编辑器/任务标签,并确保相应的标签可用。
然后,检查任务视图内容设置:打开视图菜单(最小化和最大化图标旁边的白色三角形),然后选择选项配置内容。要检查的最重要的事情是左侧的选定配置和右侧的范围设置。
编辑:任务列表视图由 Mylyn 贡献,不使用源中定义的任务标签。
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.
看到这个,我最近遇到了这个问题,最后我发现这是因为我将项目导入为maven项目,在项目目录下运行 mvn eclipse:eclipse 并将项目重新导入为java项目后问题解决了,希望这个会对你有帮助的。
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.
在 Maven 项目上,Maven/Update Project 会填充任务窗口中的所有 TODO 项目
On a Maven project Maven/Upddate Project filled up the Tasks window will all the TODO items
同样的问题,但我在 Juno 中发现了这个:
必须打开“make target”视图,并在此处突出显示项目。
此时,任务面板(不是“任务列表”)将显示唯一项目的筛选 TODO
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