Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show annotations not working

Tags:

eclipse

egit

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?

like image 596
Vignesh Avatar asked Nov 01 '13 12:11

Vignesh


People also ask

How to Show annotation in eclipse?

I found the easiest way to show annotations is just click on the vertical ruler then select "Show Annotations" from there.

What are Eclipse annotations?

Using AnnotationsAnnotations in Java 5 can be applied to package and type declarations (classes, interfaces, enums, and annotations), constructors, methods, fields, parameters, and variables. Annotations are specified in the program source by using the @ symbol.


2 Answers

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.

like image 98
Derek Avatar answered Sep 19 '22 17:09

Derek


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.

like image 41
iled Avatar answered Sep 22 '22 17:09

iled