Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server initialization failed. #527

Open
SuperErnD opened this issue Nov 27, 2023 · 1 comment
Open

Server initialization failed. #527

SuperErnD opened this issue Nov 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@SuperErnD
Copy link

[Error - 11:12:11] async0    Internal error: java.lang.IllegalArgumentException: Bad escape
[Error - 11:12:11] java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Bad escape
[Error - 11:12:11] 	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
[Error - 11:12:11] 	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
[Error - 11:12:11] 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
[Error - 11:12:11] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[Error - 11:12:11] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[Error - 11:12:11] 	at java.base/java.lang.Thread.run(Thread.java:833)
[Error - 11:12:11] Caused by: java.lang.IllegalArgumentException: Bad escape
[Error - 11:12:11] 	at java.base/sun.nio.fs.UnixUriUtils.fromUri(UnixUriUtils.java:88)
[Error - 11:12:11] 	at java.base/sun.nio.fs.UnixFileSystemProvider.getPath(UnixFileSystemProvider.java:102)
[Error - 11:12:11] 	at java.base/java.nio.file.Path.of(Path.java:203)
[Error - 11:12:11] 	at java.base/java.nio.file.Paths.get(Paths.java:98)
[Error - 11:12:11] 	at org.javacs.kt.KotlinLanguageServer$initialize$1.invoke(KotlinLanguageServer.kt:123)
[Error - 11:12:11] 	at org.javacs.kt.KotlinLanguageServer$initialize$1.invoke(KotlinLanguageServer.kt:73)
[Error - 11:12:11] 	at org.javacs.kt.util.AsyncExecutor.compute$lambda$2(AsyncExecutor.kt:19)
[Error - 11:12:11] 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[Error - 11:12:11] 	... 3 more
[Error - 11:12:11] Server initialization failed.
@themkat themkat added the bug Something isn't working label Nov 27, 2023
@themkat
Copy link
Collaborator

themkat commented Nov 27, 2023

This usually happens if you have special unicode characters in your path. Possibly a duplicate of #317. Has been an issue with cyrilic and japanese characters at least. If someone wants to look into it, it is probably a good place to start with the path parsing (the special logic was done to fix errors with whitespaces and other characters):
https://github.com/fwcd/kotlin-language-server/blob/main/shared/src/main/kotlin/org/javacs/kt/util/URIs.kt#L15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants