IDEA: Cannot access internal methods from tests

Hi all,

The day before updating IDEA to ULTIMATE 2017.2, I was able to run all tests successfully using kotlinVersion = 1.1.2-2 in build.gradle. Since updating, I receive the following message on all references to internal class methods in my tests:

If I drop kotlinVerison down to 1.1.1, they run fine. Also, ./gradlew test runs the tests successfully under any version.

Any idea what might be causing this hangup with IDEA?

Kotlin plugin version: 1.1.3-release-IJ2017.2-2

You may be affected by, which is fixed in the currently available 1.1.4 EAP release.

1 Like

That fixed it. Thanks @yole!

I am still seeing this issue with the latest IntelliJ Ultimate version (Not working for me):
IntelliJ IDEA 2017.2.1
Build #IU-172.3544.35, built on July 31, 2017
JRE: 1.8.0_152-release-915-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
And Kotlin plugin (1.1.4-eap-54-IJ2017.2-1).
macOS: Sierra (Version: 10.12.16) 16G29

It was also giving me error on Using API version 1.1 features while my Kotlin Compiler setting was at 1.1. I had to go back to an older version on IntelliJ which helped me overcome the issue. Looks like the very recent update built on July 31, 2017 has some regressions related to Kotlin lang support.

Stable working version of IJ
IntelliJ IDEA 2017.2
Build #IU-172.3317.76, built on July 15, 2017
JRE: 1.8.0_152-release-915-b5 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6

Please look into it. Thanks in advance!

1 Like

Same problem with IJ 2020.3.2
Kotlin plugin: 203-1.4.21-release-IJ6682.9
JDK 14
Windows 10

When will this issue be fixed? Essentially we can’t no longer compile our projects or run tests with IJ…

Please try to “File | Invalidate caches/restart”, remove cache from ~/.gradle, remove .idea project directory and reimport the project.

1 Like