Open clarfonthey opened 2 years ago
Unfortunately this bug is still an issue and it is preventing from using this server instead of using Intellij for developing minecraft mods in Kotlin 😕 Has anyone found a fix that can be applied via a git checkout locally?
I encountered the same issue with MC Fabric.
The plus character is converted to a space when it's parsed as a URI.
It looks like the parseURI
function only handles spaces, but not other special symbols.
Somewhere along the line, the plus in the
file://
URL is converted to a space, causing a crash by aNoSuchFileException
.I found this while writing a minecraft mod; I made a (mostly minimal) git repo to replicate the error: https://github.com/clarfonthey/kt-lsp-bug-repro
The following is the output I get from
kak-lsp
while attempting to go-to-definition for one of the sponge classes inCrashReport_noopMixin.kt
. I additionally have the environment variableCLASSPATH=/usr/share/kotlin/lib/*.jar
set.Focusing on the specific crash:
If you check out the file it's trying to access, you'll notice that the issue is it converting a plus sign to a space, which normally should only be done in query strings:
Not 100% sure what's happening here, but if you run
gradle build
by itself, it passes, meaning that the paths definitely are working in gradle internally.