I can see my coverage summary but not coverage in the gutter

1,408 views
Skip to first unread message

Nathan Schleifer

unread,
Aug 12, 2016, 1:34:01 PM8/12/16
to Illuminated Cloud Q&A
I recently upgraded to intellij 2016.2.1 from 2016.1.4 and now I cannot see the lines that are covered or not covered in my class files.

It is not necessarily associated with the upgrade since it has been about 3 weeks since I last wrote test code.  I can see the summary, I cannot see the red and green data in the gutter of the class that is being tested.

Is there a setting that needs to be set?

Thanks for the help.

Nathan


Auto Generated Inline Image 1

Scott

unread,
Aug 12, 2016, 1:41:21 PM8/12/16
to Illuminated Cloud Q&A
Nathan, I have another user with the same issue, though I'm not sure if it's related to updating the base IDE.  Here's the associated entry in the issue tracker:


I'll be looking into it today and this weekend to see if I can reproduce/diagnose it.  In that issue I've requested logs with a specific class configured for debug logging.  Would you mind setting yours up that way and showing code coverage so that I can see what it thinks it's trying to show?  That will help me understand if it's getting the right info but not displaying it in the IDE or not even getting the right info.

Thanks!
Scott

Scott

unread,
Aug 12, 2016, 1:50:46 PM8/12/16
to Illuminated Cloud Q&A
I just ran a test against one of my own projects running 2016.2.1 and I'm seeing coverage properly:


The green is hard to see against white (I really don't know why that's the default!), but it's there, as is the red for uncovered lines.  I'll be curious to see the debug log to understand whether it's trying to add line-level coverage info or just not getting the data at all.  Obviously something is going on, and I definitely want to get to the bottom of it!


Regards,

Scott


Scott

unread,
Aug 12, 2016, 3:24:34 PM8/12/16
to Illuminated Cloud Q&A
Just to close the loop on this, Nathan's issue was resolved by rebuilding indices as the last step of OST regeneration.

Jeremy Ross

unread,
Sep 9, 2016, 1:28:25 PM9/9/16
to Illuminated Cloud Q&A
I'm having this exact problem. I've got coverage data in project view and the coverage window, but nothing in the editor gutter. I've rebuilt OST, and caches and indices. Any other ideas?

Scott

unread,
Sep 9, 2016, 1:41:01 PM9/9/16
to Illuminated Cloud Q&A
Yep.  It's a bug in JetBrains' bundled OpenJDK JRE:


The problem occurs on both Mac and Windows, though the bundled JRE is only used by Windows for 32-bit.  Switching to 64-bit (idea64.exe instead of idea.exe) solves the problem there.  I've managed to provide a reproducible scenario for them and am waiting to see how they want to handle it.  In the interim, you can install an Oracle Java 8 JRE (or use one that's already installed) and switch IntelliJ IDEA to use it:


Hopefully once JetBrains resolves this issue in their bundled JRE, you can switch back.

Let me know if that doesn't resolve the problem for you.

Regards,
Scott

Jeremy Ross

unread,
Sep 20, 2016, 12:56:51 PM9/20/16
to Illuminated Cloud Q&A
I'm on a Mac. Using Intellij's bundled 64-bit JRE. Still no coverage in gutter.

Scott

unread,
Sep 20, 2016, 1:04:48 PM9/20/16
to qa...@illuminatedcloud.com
Yep, it seems the problem is broader than just the bundled OpenJDK JRE.  We've been able to reproduce it now in the more recent Oracle JREs, e.g., 1.8.0_102.  I know that it doesn't occur in 1.8.0_74, so it's something that's been introduced since then.  Luckily there are only four JRE releases between 74 and 102, so I'm trying to isolate the build that caused the regression, then hopefully I can figure out the nature of the regression and how best to address it.  Obviously I hate giving even more specific guidance, but I've verified that the Oracle 1.8.0_74 JRE does not exhibit this issue on either Mac or Windows.  I'm documenting my ongoing investigation in this issue if you'd like to keep an eye on it:


Regards,
Scott

Scott

unread,
Sep 21, 2016, 12:21:07 PM9/21/16
to Illuminated Cloud Q&A
FYI, I believe I have a solution for this that will work in both Oracle and OpenJDK JREs.  I need a little more time to incorporate it fully but hope to be able to release a build with it tomorrow.

Regards,
Scott

Scott

unread,
Sep 21, 2016, 2:38:31 PM9/21/16
to Illuminated Cloud Q&A
I just uploaded version 1.7.4.2 that has what I hope to be the final fix for this issue.  Since the original issue had to do with deserialization of line-level Coverage details from SOAP, I switched those queries to use the REST API and a different method for deserialization.  I've verified that the issue seems to be resolved in 1.8.0_102 where it occurred consistently on both Windows and Mac.  Please let me know if you still have problems with line-level coverage display after updating.

Best regards,
Scott

lest...@gmail.com

unread,
Feb 26, 2017, 6:28:43 PM2/26/17
to Illuminated Cloud Q&A
Hi Scott,

You mentioned in an earlier post the color can be configured (a year and a bit ago), where is this done? I agree it's hard to see especially in night mode on with flux on, would like to change the opactiy if possible.

Scott

unread,
Feb 26, 2017, 6:30:38 PM2/26/17
to Illuminated Cloud Q&A
Go into Settings>Editor>Colors & Fonts>General, then change Line coverage>Full and Line coverage>Uncovered to whatever you want.  I've just made mine more prominent green and red colors respectively.

Regards,
Scott
Reply all
Reply to author
Forward
0 new messages