# Eclipse + Kotlin + Junit: @Test annotation errors

**URL:** <https://discuss.kotlinlang.org/t/eclipse-kotlin-junit-test-annotation-errors/11417>\
**Category:** Eclipse\
**Created:** [February 1, 2019, 10:14pm UTC](https://discuss.kotlinlang.org/t/eclipse-kotlin-junit-test-annotation-errors/11417 "2019-02-01T22:14:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lidisi](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@lidisi](https://discuss.kotlinlang.org/u/lidisi)\
**Post date:** [February 1, 2019, 10:14pm UTC](https://discuss.kotlinlang.org/t/eclipse-kotlin-junit-test-annotation-errors/11417/1 "2019-02-01T22:14:40Z")

</div>

Hi,

Whenever I use Junit @Test annotation in Kotlin code(see [1] below), Eclipse (or perhaps Kotlin plug-in for Eclipse) generates a bunch of errors that pop up every ten seconds or so, very annoying:

```
An internal error occurred during: "Kotlin Analysis".
Wrong annotation argument: 0

An internal error occurred during: "Install semantic highlighting".
Wrong annotation argument: 0

An internal error occurred during: "Compute launch button tooltip".
Wrong annotation argument: 0

An internal error occurred during: "Update occurrence annotations".
Wrong annotation argument: 0

```

The code[1] builds and runs without errors, the test is run as well and the test report is generated successfully.

Any ideas? Anything I can do to prevent/suspend the above errors? Thanks

My environment:

- Openjdk 11.0.2 2018-10-16
- Eclipse Java EE IDE for Web Developers, Version: 2018-09 (4.9.0) Build id: 20180917-1800
- Kotlin plug-in: 0.8.12
- Junit 4.12

[1] - test code where the above errors were generated

```
package test

import org.junit.Assert.assertTrue
import org.junit.Test

class KotlinTests {
	companion object a {
		@JvmStatic
		fun main(args : Array<String>) {
			println("In KotlinTests main: argsSize=${args.size}.")
			println("In KotlinTests main: args=${args.toString()}.")
			println("In KotlinTests main: args0=${args[0]}, args1=${args[1]}.")
		}		
	}
	@Test
	fun runASimpleTest() {
		println("In runASimpleTest")
		assertTrue(true)
    }
}

```

---

<div class="post-metadata">

**Author:** ![pawel.marks](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/pawel.marks/32/6547_2.png) [@pawel.marks](https://discuss.kotlinlang.org/u/pawel.marks)\
**Post date:** [February 1, 2019, 10:36pm UTC](https://discuss.kotlinlang.org/t/eclipse-kotlin-junit-test-annotation-errors/11417/2 "2019-02-01T22:36:34Z")

</div>

This particular bug is already fixed in the nightly build of the plugin. You can start using it by installing it from the updatesite: [https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin\_EclipsePlugin/.lastSuccessful/](https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_EclipsePlugin/.lastSuccessful/).  
It will be released as a stable version in the following days. If you find any other bugs feel free to submit them via our [youtrack](https://youtrack.jetbrains.com/issues/KE).

---

<div class="post-metadata">

**Author:** ![lidisi](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@lidisi](https://discuss.kotlinlang.org/u/lidisi)\
**Post date:** [February 1, 2019, 10:52pm UTC](https://discuss.kotlinlang.org/t/eclipse-kotlin-junit-test-annotation-errors/11417/3 "2019-02-01T22:52:55Z")

</div>

Am getting 404 error on that link.

```
# 404

## Invalid download path: repository/download/Kotlin_EclipsePlugin/latest.lastSuccessful

```

Tried several links on [Ring](https://teamcity.jetbrains.com/repository/download/Kotlin_EclipsePlugin/) page, all of them generate “404 Invalid download path” error for me. Thanks

---

<div class="post-metadata">

**Author:** ![pawel.marks](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/pawel.marks/32/6547_2.png) [@pawel.marks](https://discuss.kotlinlang.org/u/pawel.marks)\
**Post date:** [February 4, 2019, 10:07am UTC](https://discuss.kotlinlang.org/t/eclipse-kotlin-junit-test-annotation-errors/11417/4 "2019-02-04T10:07:39Z")

</div>

It look like you are trying to use this addresses via web browser. The plugins from update sites are intended to be installed via eclipse `Help -> Install new software` dialog.

---

<div class="post-metadata">

**Author:** ![lidisi](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@lidisi](https://discuss.kotlinlang.org/u/lidisi)\
**Post date:** [February 4, 2019, 10:14pm UTC](https://discuss.kotlinlang.org/t/eclipse-kotlin-junit-test-annotation-errors/11417/5 "2019-02-04T22:14:22Z")

</div>

Looks like this update solved the issue for now. Thanks.
