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

Java language server using the Java compiler API

Results 151 java-language-server issues
Sort by recently updated
recently updated
newest added

I'm sorry I cannot record the very detail of this issue. I got only a few screenshots to describe it. So it's fine to close this issue if it cannnot...

Hi I installed the extension on visual studio code but unfortunately it remove some of my import when i save a file. I already add the line : `"editor.codeActionsOnSave": {...

When using tabs for indentation, diagnostics report incorrect columns, acting like the tabs are 8 spaces. I wrote a (failing) test case for this here: https://github.com/lePerdu/java-language-server/blob/test/expands-tabs/src/test/java/org/javacs/WarningsTest.java#L38 Workaround by replacing tabs...

The project builds and runs fine using bazel, but the language server does not recognize classes in com.sun.net.httpserver

Code completion doesn't work correctly unless I patch [`bazelClasspath`](https://github.com/georgewfraser/java-language-server/blob/337fa077c8670f21ca9808f98e7da012131cd43e/src/main/java/org/javacs/InferConfig.java#L254) method to resolve paths relatively to `bazelOutputBase` My `WORKSPACE` file looks like this: ```bazel load("@rules_jvm_external//:defs.bzl", "maven_install") maven_install( artifacts = ["com.google.guava:guava:29.0-jre"], repositories...

Sometimes when I change my .java file (Monaco editor, save on every character change enabled) I get this error: ``` java.lang.StringIndexOutOfBoundsException: index 1955,length 1955 at java.base/java.lang.String.checkIndex(String.java:3679) at java.base/java.lang.AbstractStringBuilder.charAt(AbstractStringBuilder.java:362) at java.base/java.lang.StringBuilder.charAt(StringBuilder.java:85)...

When I run this LSP server with Monaco Editor, I get `Error: Provider "inmemory" not installed` on CodeActionProvider.java on line 32 `var file = Paths.get(params.textDocument.uri);`. My URI object is `inmemory://model/57`....

I can call `lang_server_windows.sh` with a relative path, but get an exception when I use an absolute one. ``` ex@EX MINGW64 /c/bin/java-language-server-master/dist $ ./lang_server_windows.sh 15:56:19.573 INFO LSP connect Reading messages...

- Issue Type: `Performance` - Extension Name: `vscode-javac` - Extension Version: `0.2.32` - OS Version: `Windows_NT ia32 10.0.18362` - VSCode version: `1.42.1` :warning: Make sure to **attach** this file from...

When I open a Java file in Vim, I get an error like this: ![image](https://user-images.githubusercontent.com/6920177/72995784-c6390c80-3df9-11ea-9e3a-cc9ae9782496.png) Calling the file myself works fine, however: ![image](https://user-images.githubusercontent.com/6920177/72995941-10ba8900-3dfa-11ea-968a-d67f4923756b.png) My `.vimrc` contains: ``` set shell=C:\msys64\usr\bin\bash.exe set...