llm-intellij icon indicating copy to clipboard operation
llm-intellij copied to clipboard

Gunzip mv chmod Throws errors in Windows

Open tuyuribr opened this issue 1 year ago • 0 comments

I'm trying to debug why the plugin isn't working on my machine and came across this:

https://github.com/huggingface/llm-intellij/blob/2972e337497cd3df9325f0c10a231693ef8ea13d/src/main/kotlin/co/huggingface/llmintellij/lsp/LlmLsLspServerDescriptor.kt#L86

Maybe a OS check or command change would solve some things.

2024-01-07 00:56:50,187 [   3575]   WARN - #c.i.p.l.i.LspServerImpl - LlmLsLspServerDescriptor@proj(RUNNING;0): Failed to start server
java.io.IOException: Cannot run program "mv": CreateProcess error=2, O sistema não pode encontrar o arquivo especificado
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
	at java.base/java.lang.Runtime.exec(Runtime.java:594)
	at java.base/java.lang.Runtime.exec(Runtime.java:418)
	at java.base/java.lang.Runtime.exec(Runtime.java:315)
	at co.huggingface.llmintellij.lsp.LlmLsLspServerDescriptorKt.runCommand(LlmLsLspServerDescriptor.kt:98)

when I remove gunzip from my path:

2024-01-07 01:24:02,917 [   4024]   WARN - #c.i.p.l.i.LspServerImpl - LlmLsLspServerDescriptor@proj(RUNNING;0): Failed to start server
java.io.IOException: Cannot run program "gunzip": CreateProcess error=2, O sistema não pode encontrar o arquivo especificado
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
	at java.base/java.lang.Runtime.exec(Runtime.java:594)
	at java.base/java.lang.Runtime.exec(Runtime.java:418)
	at java.base/java.lang.Runtime.exec(Runtime.java:315)
	at co.huggingface.llmintellij.lsp.LlmLsLspServerDescriptorKt.runCommand(LlmLsLspServerDescriptor.kt:98)
	at co.huggingface.llmintellij.lsp.LlmLsLspServerDescriptorKt.downloadAndUnzip(LlmLsLspServerDescriptor.kt:91)
	at co.huggingface.llmintellij.lsp.LlmLsLspServerDescriptorKt.downloadLlmLs(LlmLsLspServerDescriptor.kt:117)
	at co.huggingface.llmintellij.lsp.LlmLsLspServerDescriptor.createCommandLine(LlmLsLspServerDescriptor.kt:20)
	at com.intellij.platform.lsp.api.LspServerDescriptor.startServerProcess(LspServerDescriptor.kt:93)
	at com.intellij.platform.lsp.impl.connector.Lsp4jServerConnectorStdio.<init>(Lsp4jServerConnectorStdio.java:19)
	at com.intellij.platform.lsp.impl.LspServerImpl.d(LspServerImpl.java:377)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:272)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:840)

tuyuribr avatar Jan 07 '24 04:01 tuyuribr