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

Can't run under windows 11 #3133

Open
hydrozoa-yt opened this issue Apr 10, 2024 · 1 comment
Open

Can't run under windows 11 #3133

hydrozoa-yt opened this issue Apr 10, 2024 · 1 comment

Comments

@hydrozoa-yt
Copy link

Hi there, thank you for making jdtls available.

I've only recently begun dipping my toes into language servers, and I can't for the life of me get this to run nicely.

I'm running under Windows 11, and installed via scoop jdtls 1.35.0-202404090315
Java version is openjdk 20.0.1 2023-04-18
My client is helix editor

When I start up my editor with a relevant java file, I get the following error:

2024-04-10T18:34:46.255 helix_lsp::transport [ERROR] jdtls err <- "WARNING: Using incubator modules: jdk.incubator.concurrent, jdk.incubator.vector\r\n"
2024-04-10T18:34:46.602 helix_lsp::transport [ERROR] jdtls err <- "Apr 10, 2024 6:34:46 PM org.apache.aries.spifly.BaseActivator log\r\n"
2024-04-10T18:34:46.602 helix_lsp::transport [ERROR] jdtls err <- "INFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\r\n"
2024-04-10T18:34:46.604 helix_lsp::transport [ERROR] jdtls err <- "Apr 10, 2024 6:34:46 PM org.apache.aries.spifly.BaseActivator log\r\n"
2024-04-10T18:34:46.604 helix_lsp::transport [ERROR] jdtls err <- "INFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "Apr 10, 2024 6:34:47 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "SEVERE: Internal error: java.lang.reflect.InvocationTargetException\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "java.lang.RuntimeException: java.lang.reflect.InvocationTargetException\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$recursiveFindRpcMethods$0(GenericEndpoint.java:67)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:272)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:201)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:144)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.lang.Thread.run(Thread.java:1623)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "Caused by: java.lang.reflect.InvocationTargetException\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.lang.reflect.Method.invoke(Method.java:578)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$recursiveFindRpcMethods$0(GenericEndpoint.java:65)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\t... 12 more\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part at index 2: C:\\Users\\mads\\Desktop\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.net.URI.create(URI.java:911)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.jdt.ls.core.internal.ResourceUtils.canonicalFilePathFromURI(ResourceUtils.java:223)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.jdt.ls.core.internal.handlers.BaseInitHandler.handleInitializationOptions(BaseInitHandler.java:100)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.jdt.ls.core.internal.handlers.InitHandler.handleInitializationOptions(InitHandler.java:110)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.jdt.ls.core.internal.handlers.BaseInitHandler.initialize(BaseInitHandler.java:64)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.initialize(JDTLanguageServer.java:284)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\t... 14 more\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\\Users\\mads\\Desktop\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.net.URI$Parser.fail(URI.java:2963)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.net.URI$Parser.checkChars(URI.java:3134)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.net.URI$Parser.parse(URI.java:3170)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.net.URI.<init>(URI.java:628)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\tat java.base/java.net.URI.create(URI.java:909)\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\t... 20 more\r\n"
2024-04-10T18:34:47.938 helix_lsp::transport [ERROR] jdtls err <- "\r\n"
2024-04-10T18:34:47.942 helix_lsp::transport [ERROR] jdtls <- InternalError: Internal error.
2024-04-10T18:34:47.942 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Internal error.

The part IllegalArgumentException: Illegal character in opaque part at index 2 leads me to believe it's a bug due to Windows paths being weird.

If this is somehow my own fault, please let me know. I've tried searching for solutions to the best of my ability, and coming short, which is why I'm asking here now.

@lesleyrs
Copy link
Contributor

lesleyrs commented Apr 18, 2024

I had the same issue and it means that you have to create a git repo or another "marker" like a build file and run it from that directory helix-editor/helix#8913.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants