Hi, just a couple of issues I seem to having after upgrading to latest Eclipse (4.7.3a) and Kotlin plugin (0.8.18).
a) I get the following error popup every time I open a kt file (but after dismissing everything seems ok, except the file is marked as modified, though git shows it as unmodified even after saving):
An error has occurred. See error log for more details.
Compilation unit name must end with .java, or one of the registered Java-like extensions
b) “Open Implementation” is not available when hovering mouse (with Ctrl) over a function call in kotlin. Works fine for java code.
c) HotSwap doesn’t work - no errors but the changed code is not hotswapped into place.
d) can’t run an individual JUnit test on a kotlin test class. If done from the source code it just runs all the tests, if done from the JUnit view for a specific test case, I get
Rerun com.foo.BarTest.testMyFunction[+611010103983 - XAZ987]
initializationError(org.junit.runner.manipulation.Filter)
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testMyFunction[+611010103983 - XAZ987]], {ExactMatcher:fDisplayName=testMyFunction+611010103983 - XAZ987]] from org.junit.internal.requests.ClassRequest@31b7dea0
at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createFilteredTest(JUnit4TestLoader.java:80)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:71)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:46)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:522)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)
These happen to be some of the functions I use most in Eclipse, and I’m loathe to continue our plan to convert gradually from Java to Kotlin while these issues persist. Are they known issues at all, and are there any workarounds?
Thanks!
Dylan