kotlin-language-server icon indicating copy to clipboard operation
kotlin-language-server copied to clipboard

Crash on windows

Open janek515 opened this issue 1 year ago • 0 comments

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

janek515 avatar Jan 13 '24 22:01 janek515