fwcd

Results 150 comments of fwcd

@khe817 Using Java classes from Kotlin will hopefully be possible soon (I've successfully experimented with this over at the [kotlin-debug-adapter](https://github.com/fwcd/kotlin-debug-adapter)). The other way around is a bit trickier, unfortunately, since...

@petersamokhin Importing Java Kotlin either way around is not possible yet, unfortunately.

I didn't know that H2 supported on-disk databases, but it does, which is great, so that seems like the easiest path forward. Although I think the current JSON implementation is...

Could you check whether this still occurs on the most recent language server?

Yes, type hierarchy would be great, maybe we could implement this by capturing the subtype relationships in the index?

We could create a custom dependency resolver that looks up `KOTLIN_HOME` (see [this script](https://github.com/JetBrains/kotlin/blob/a3c3ab08fdc85b370659a8a6e1c876c0263be91d/compiler/cli/bin/kotlinc#L18-L26)) and adds the JAR files under `$KOTLIN_HOME/libexec/lib` to the classpath.

Since I haven't tested the language server much in kotlinc-only environments and the issue seems to persistent, I'll reopen it for now.

Hm, this looks like a Kotlin compiler bug, you could try filing it on their [bug tracker](https://youtrack.jetbrains.com/issues/KT).

I think that's a great idea. Can external formatters handle things like ranged formatting? KLS uses a virtual file system, but perhaps there are CLI formatters that work e.g. on...

This might be related: ``` Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.Arrays.copyOfRange(Arrays.java:3664) at java.lang.String.(String.java:207) at java.lang.String.substring(String.java:1969) at java.lang.String.subSequence(String.java:2003) at kotlin.text.StringsKt__StringsKt.commonPrefixWith(Strings.kt:775) at kotlin.text.StringsKt__StringsKt.commonPrefixWith$default(Strings.kt:765) at org.javacs.kt.position.PositionKt.changedRegion(position.kt:95) at org.javacs.kt.CompiledFile.oldOffset(CompiledFile.kt:114) at org.javacs.kt.CompiledFile.parseAtPoint(CompiledFile.kt:72)...