Show annotations not working

三世轮回 提交于 2019-12-17 23:11:01

问题


I use Eclipse with egit plugin. When I click Team -> Show Annotations, it shows up nothing. But I could view annotations by going to the history and then right clicking on the desired change set.

Shouldn't the first way show annotations from the latest version of that file I am working on?


回答1:


I found eclipse bug 394161 that says the show annotations functionality won't work unless you set your EGit preferences to ignore whitespace changes. You can do that by going to Window -> Preferences -> Team -> Git and checking the box that says "Ignore whitespace changes". That fixed the problem for me.




回答2:


I was having the same problem and this worked for me (in two different computers):

  1. Make sure annotations are well set up, for example, if you want to see errors on the vertical ruler, you must have that option activated. Preferences > General > Editors > Text Editors > Annotations > Errors > Show in > Vertical ruler

  2. Make sure your project is marked as a PyDev project. Right-click on your project > PyDev > Set as PyDev Project (if you see Remove PyDev Project config it is already marked as one)

  3. Lastly, make sure your source folder is correctly identified. Right-click on your source folder > PyDev > Set as source folder (add to PYTHONPATH)

In the last step, if you see Set as non-source folder (remove from PYTHONPATH) it is already marked as one and, in that case, this solution shouldn't work for you, but you can try to undo and redo steps 2 and 3.

I'm using Eclipse Kepler, PyDev 3.2 and EGit 3.2.




回答3:


I banged my head on this for a bit today. Right-clicking a file in Project Explorer or Package Explorer, then selecting "Team" > "Show Annotations" does not work (at least in version 4.5.1). So don't do that. I found the easiest way to show annotations is just click on the vertical ruler then select "Show Annotations" from there.

By the way, the ignore whitespace bug that @Derek mentions has been fixed. From the bug ticket,

After updating to the 3.4.0.201405071430 showing the annotations worked also without setting the property "Ignore whitespace changes" So the bug seems to be fixed.

I verified that I am not impacted by the bug in 4.5.1



来源:https://stackoverflow.com/questions/19726389/show-annotations-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!