Internal error when starting IntelliJ after installing Junit plugin

I downloaded the junit plugin for IntelliJ and when I restart IntelliJ, I get an "Internal error has occurred". Successive restarts just hang. If I remove the unitTest directory from the plugin directory, it works fine.

I am using IntelliJ 3.0.1 with jdk 1.4.1_03. My directory structure looks like the following after installing the plugin:

C:\IntelliJ-IDEA-3.0.1\plugins\unitTest\lib
antExtensions.jar
commons-lang-1.0.jar
unitTest.jar

The date on unitTest.jar is 6/22/03

I have Junit 3.8.1 and my project includes the junit.jar in the classpath. Alternately, I have put IntelliJ's junit.jar in the class path and I have had no junit.jar specified but each time I get the same results.

I got the plugin from http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin

This is the first time I have added a plugin.

Can you tell me what I need to do to get this to work?

7 comments
Comment actions Permalink

Which version did you donwload? There is one version for the EAP build and one for the release version. It looks like you may have installed the EAP build (by the date on unitTest.jar) which is not compatible with the release version.

Ben

0
Comment actions Permalink

I don't know the answer to that. Tech support sent me to the following URL which is where I got the download from.

http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin

How do I get a different (correct) build?

0
Comment actions Permalink

I should clarify (now that I know what EAP stands for). I asked tech support if there were plans to provide a way to generate stubbed Junit tests automatically through IntelliJ (i.e. generate the test methods, etc). They pointed me to the plugin. According to the write up, it's exactly what I am looking for but I can't even load IntelliJ. I don't know if there is something wrong with this build (6/22/03) or something wrong in my setup.

I tried to contact the authors listed on the page but the e-mail addresses failed. I thought this forum might help me get in touch with the correct people.

Are you saying that this plugin won't work with the released version of IntelliJ 3.0.1?

ref.: http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin

0
Comment actions Permalink

On the JUnitTestPlugin page, there are links to download a number of
different versions of the plugin. If you're using IDEA 3.0.1 (is there a
reason you're not using 3.0.5, out of interest?), then you probably want
this one:

http://www.intellij.org/twiki/pub/Main/JUnitTestPlugin/unitTest696.zip

The reason this plugin is quite sensitive to version differences, BTW, is
that it uses the semi-open PSI API. That API tends to change from version to
version, which is why it hasn't been officially opened for public use yet.

Hope that helps,
Vil.

Suzanne Dorman wrote:

I should clarify (now that I know what EAP stands for). I asked tech support if there were plans to provide a way to generate stubbed Junit tests automatically through IntelliJ (i.e. generate the test methods, etc). They pointed me to the plugin. According to the write up, it's exactly what I am looking for but I can't even load IntelliJ. I don't know if there is something wrong with this build (6/22/03) or something wrong in my setup.

I tried to contact the authors listed on the page but the e-mail addresses failed. I thought this forum might help me get in touch with the correct people.

Are you saying that this plugin won't work with the released version of IntelliJ 3.0.1?

ref.: http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin


--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

Sorry I wasn't more clear. As Vilya said, when you go to the link that tech support sent you, you will see various downloads for the plug-in (5 as of this writing). The top one (unitTest.zip) is only for the EAP build #833. If you are using IntelliJ 3.0.1, then you should download unitTest696.zip. However, as Vilya pointed out, you may want to upgrade to IntelliJ 3.0.5 (or at least to 3.0.4) unless you have a good reason not to. If you do so, then you should download unitTest701.zip accordingly.

Good luck,
Ben Wong

0
Comment actions Permalink


Ben Wong wrote:

... (or at least to 3.0.4) ...


Oops. That was what I meant. :)

Vil.
--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

Thanks so much for the help Vilya and Ben! I didn't see the extra zips at the bottom of the page and I didn't realize there was a new version of IntelliJ (seems like I just upgraded). Thanks for the enlightenment!

0

Please sign in to leave a comment.