Does the Atlassian Clover for IDEA support IntelliJ 13?

When I added the Atlassian Clover for IDEA plugin to a fresh IntelliJ 13 install my project will not build with clover enabled and has the following error on every class:

package com_cenqua_clover does not exist.

Anyone else running into this or is this a problem in just my environment?

1 answer

1 accepted

0 vote

Yes, there are few compatibility issues related with the latest IDEA13. See:

https://jira.atlassian.com/browse/CLOV-1395

Update: I'm working on it and I expect to release Clover 3.2.1 with a hot fix in January.

Problem:

Clover 3.2.0 under IDEA13 throws "NoSuchMethodError" when trying to load a license key from a file ('About Clover' window > 'License' button > 'Load' button).

Workaround:

Copy a license key to the clipboard and use the 'Paste' button.

Problem:

Compilation of code instrumented by Clover 3.2.0 under IDEA13 fails with an error message "package com_cenqua_clover does not exist". This is caused by a fact that the Clover JAR file is not found (the "Clover IDEA Plugin" in Project Structure > Global Libraries) in the external build process. This is releated with a bug http://youtrack.jetbrains.com/issue/IDEA-118928.

Workaround:

Copy the Clover JAR to a location outside the IDEA's plugin directory (typically ~\.IntelliJIdea\config\plugins). Add this JAR as a dependency to your module(s).

For example:

Open the Project Structure dialog. Go to the "Platform Settings > Global Libraries". Find the "Clover IDEA Plugin" global library on the list and copy the path to JAR (e.g. "c:\Users\Alice\.IntellijIDEA\config\plugins\clover-idea-3.2.0.jar"). Copy this JAR to another location (e.g. "C:\MyLibraries\clover-idea-3.2.0.jar"). Define new global library (e.g. "Clover IDEA Plugin 2"). Add this library as dependency to your modules.

Tip: do not modify exisiting "Clover IDEA Plugin" - if you change a path, it will be reset by Clover.

Problem:

Whenever a run configuration (for instance for JUnits) is edited, new NullPointerException entries will appear in the Event Log view. For example:

null
java.lang.NullPointerException
	at com.cenqua.clover.idea.junit.config.OptimizedConfigurationSettingsPanel.resetEditorFrom(OptimizedConfigurationSettingsPanel.java:63)
 

or

null
java.lang.NullPointerException
	at com.cenqua.clover.idea.junit.config.OptimizedConfigurationSettingsPanel.applyEditorTo(OptimizedConfigurationSettingsPanel.java:76)

This is related with Clover's test optimization feature.

Workaround:

Not possible. Test optimization with Clover 3.2.0 and IDEA13 will not work. Please wait for a Clover 3.2.1 bug fix release.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

59 views 2 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you