fwcd / kotlin-language-server

Kotlin code completion, diagnostics and more for any editor/IDE using the Language Server Protocol
MIT License
1.58k stars 202 forks source link

Crash on windows #533

Open janek515 opened 6 months ago

janek515 commented 6 months ago

Resolving classpath fails on Windows on the following line https://github.com/fwcd/kotlin-language-server/blob/80fc538635beff0b36ade6f955cd7b552c5e3a9f/shared/src/main/resources/projectClassPathFinder.gradle#L24

With the error character to be escaped is missing

This can be traced to the File.separator being \ on Windows.

I'm not very familiar with Java strings, but I was able to resolve the issue by hardcoding \\\\ (!) instead of File.separator