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

Compiler is already in-use!

Open s759labs opened this issue 4 years ago • 3 comments

I am trying out the java language server with monaco editor. I get correct auto-complete options for couple of times and then it stops. I see the following exception logged. Any advice as to what could be causing this issue?

`JAVA Server: 22:18:37.543 SEVERE Main main Compiler is already in-use!

java.lang.RuntimeException: Compiler is already in-use! at org.javacs.ReusableCompiler.getTask(ReusableCompiler.java:111) at org.javacs.CompileBatch.batchTask(CompileBatch.java:105) at org.javacs.CompileBatch.(CompileBatch.java:30) at org.javacs.JavaCompilerService.doCompile(JavaCompilerService.java:76) at org.javacs.JavaCompilerService.loadCompile(JavaCompilerService.java:67) at org.javacs.JavaCompilerService.compileBatch(JavaCompilerService.java:93) at org.javacs.JavaCompilerService.compile(JavaCompilerService.java:349) at org.javacs.JavaCompilerService.compile(JavaCompilerService.java:344) at org.javacs.JavaLanguageServer.lint(JavaLanguageServer.java:61) at org.javacs.JavaLanguageServer.doAsyncWork(JavaLanguageServer.java:526) at org.javacs.lsp.LSP.connect(LSP.java:247) at org.javacs.Main.main(Main.java:30) `

Response { "jsonrpc": "2.0", "id": 7, "error": { "code": -32603, "message": "Compiler is already in-use!" } }

s759labs avatar May 18 '21 16:05 s759labs

+1

babutabhavya avatar Jun 07 '21 12:06 babutabhavya

Hey @s759labs, How are you using jls with monaco editor? which command you are using to start server?

amitbkumar avatar Jul 20 '21 12:07 amitbkumar