Everything works fine, but JOOQ relative auto compilation and code analysis are painfully slow.
import org.jooq.DSLContext
object MainKotlin {
lateinit var context: DSLContext
@JvmStatic
fun main(args: Array<String>) {
context.select().from // <-- From here Intellij will not respond.
}
}
import org.jooq.DSLContext;
public class MainJava {
public static void main(String[] args) {
DSLContext context = null;
context.select().from // <- Works like Intellij.
}
}
I downloaded the project and tried the code completion. It’s really slow at that location. It takes many seconds for the completion list to show up. But if I wait until that and try it again it becomes rather quick here and in all other points where I tried that. Do you experience the same or do you have slow completion all the time?
Hello JetBrains folks, Lukas from the jOOQ team here.
I’m happy to help with the resolution of this issue, if I can. jOOQ makes heavy use of overloading + generics + varargs, which can be a bit of a challenge for type inference algorithms that aren’t implemented optimally (or if the type inference spec is too lenient).