tsantalis / JDeodorant

JDeodorant
https://marketplace.eclipse.org/content/jdeodorant
MIT License
139 stars 59 forks source link

Using Multiple Smell Scans leads to "Incomprehensible Rainbow" Documents 🌈 #82

Closed starlocke closed 4 years ago

starlocke commented 4 years ago

(details to come later)

tsantalis commented 4 years ago

I am very curious for this one!

starlocke commented 4 years ago

Okay. So, originally, I thought it was a symptom of "multiple smell scanners from JDeodorant", but it's actually a UX oversight when JDeodorant is used in combination with Code Coverage testing/reporting.

Expected result:

Actual result:

Screenshot 1 of 2 (many pointers in one):

000140

Screenshot 2 of 2 (pointing out that one line whose highlight colour randomly flips):

000141

tsantalis commented 4 years ago

Thanks @starlocke That's because both JDeodorant and Eclipse Code coverage tool are using the same marker annotation mechanism to highlight the code.

If you go to the Coverage window and click on Remove Active Session the test coverage highlights will disappear.

Screenshot from 2020-10-24 13-49-49

JDeodorant clears all its previously placed marker annotations, whenever you double-click on another refactoring opportunity.