Source Highlighting is wrong

26 views
Skip to first unread message

yevsh

unread,
Nov 16, 2016, 3:59:21 AM11/16/16
to JaCoCo and EclEmma Users
Generated report highlighted source is completely messed up. 

Wrong lines are highlighted , even empty lines are highlighted in green color.

Also line number is wrong.

for example, in the html I see:





the line numbers do not match the source, also in source there are no 'new lines ' after each line of code...

I also compared source to decompiled class and they do match.

Marc Hoffmann

unread,
Nov 16, 2016, 5:30:50 AM11/16/16
to jac...@googlegroups.com
Hi,

there are two thinks to look at:

1) Are the source files the same source files the class files are
compiled from?
2) Maybe there is a line ending or rendering problem with the JaCoCo
report: Is the source representation in the JaCoCo report the same as
the underlying source file? Can you spot differences here e.g. in line
numbering?

Regards,
-marc

On 2016-11-16 09:59, yevsh wrote:
> Generated report highlighted source is completely messed up.
>
> Wrong lines are highlighted , even empty lines are highlighted in
> green color.
>
> Also line number is wrong.
>
> for example, in the html I see:
>
> [1]
>
> the line numbers do not match the source, also in source there are no
> 'new lines ' after each line of code...
>
> I also compared source to decompiled class and they do match.
>
> --
> You received this message because you are subscribed to the Google
> Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jacoco+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/222d05ed-0879-4962-b953-9e7311081e02%40googlegroups.com
> [2].
> For more options, visit https://groups.google.com/d/optout.
>
>
> Links:
> ------
> [1]
> https://lh3.googleusercontent.com/-7hlTwWxhBVs/WCwfJ8VTZuI/AAAAAAAAAA0/NKgKUPiCz5Ar4-myH-OZNLHUkHsrwnDAACLcB/s1600/snap.jpg
> [2]
> https://groups.google.com/d/msgid/jacoco/222d05ed-0879-4962-b953-9e7311081e02%40googlegroups.com?utm_medium=email&utm_source=footer

Marc Hoffmann

unread,
Nov 16, 2016, 5:48:22 AM11/16/16
to jac...@googlegroups.com
Hi,

to help investigating the issue you may provide the following files from
your build:

1) a example *.class file
2) the corresponding *.java file
3) the corresponding generated *.java.html file from the report

Regards,
-marc

On 2016-11-16 09:59, yevsh wrote:
> Generated report highlighted source is completely messed up.
>
> Wrong lines are highlighted , even empty lines are highlighted in
> green color.
>
> Also line number is wrong.
>
> for example, in the html I see:
>
> [1]
>
> the line numbers do not match the source, also in source there are no
> 'new lines ' after each line of code...
>
> I also compared source to decompiled class and they do match.
>
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages