Calling methods on a third party plugin marked `@I...
# gradle
j
Calling methods on a third party plugin marked
@Internal
causes intelliJ to no longer do syntax highlighting in that file and eventually IntelliJ locks up and you can't edit the file. You don't get any error though. It's very strange For example this:
Copy code
import org.ccrusius.erlang.tasks.Application

plugins {
    id("org.ccrusius.erlang") version "2.0.8"
}

val helloWorldAppTask = task<Application>("helloWorldApp") {
    version = "1"
    setBaseDir(".")
    afterEvaluate {
        dependsOn(outAppFileTask)
        outBeamFileTasks.forEach { dependsOn(it) }
    }
}
Where
outAppFileTask
and
outBeamFileTasks
are annotated as
@Internal
Normally, I wouldn't call them but I need to to get around a bug. Maybe I'm totally misunderstanding the problem... Hrm... This is strange... This works fine:
Copy code
val helloWorldAppTask = task<Application>("helloWorldApp") {
    version = "1"
    setBaseDir(".")
   dependsOn(outAppFileTask)
   outBeamFileTasks.forEach { dependsOn(it) }
}