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

Eclipse Code Actions are no-ops. #4711

Open
NSchweers opened this issue Jan 22, 2024 · 0 comments
Open

Eclipse Code Actions are no-ops. #4711

NSchweers opened this issue Jan 22, 2024 · 0 comments
Labels

Comments

@NSchweers
Copy link

Information

VIM version

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jan 02 2024 15:51:11)
macOS version - arm64

Operating System: Mac OS Sonoma 14.2.1 (23C71).

What went wrong

Using eclipse.jdt.ls Code Actions seem to be no-ops.

The LSP itself works, as it is able to complete identifiers and even add the missing imports for said identifiers.

Using eclipse.jdt.ls worked using Doom Emacs, including Code Actions.

Reproducing the bug

  1. Install vim
  2. Clone https://github.com/eclipse-jdtls/eclipse.jdt.ls.git to ~/opt/eclipse.jdt.ls
  3. cd ~/opt/eclipse.jdt.ls && ./mvnw verify -Dskip-tests=true
  4. Configure vim/ALE: ` let g:ale_linters = {'java': ['eclipselsp'] }``

:ALEInfo

Expand Current Filetype: java Available Linters: ['checkstyle', 'cspell', 'eclipselsp', 'javac', 'javalsp', 'pmd'] Linter Aliases: 'javalsp' -> ['java_language_server'] Enabled Linters: ['eclipselsp'] Ignored Linters: [] Suggested Fixers: 'clang-format' - Fix C, C++, C#, CUDA, Java, JavaScript, JSON, ObjectiveC and Protobuf files with clang-format. 'google_java_format' - Fix Java files with google-java-format. 'remove_trailing_lines' - Remove all blank lines at the end of a file. 'trim_whitespace' - Remove all trailing whitespace characters at the end of every line. 'uncrustify' - Fix C, C++, C#, ObjectiveC, ObjectiveC++, D, Java, Pawn, and VALA files with uncrustify.

Linter Variables:
" Press Space to read :help for a setting
let g:ale_java_eclipselsp_config_path = ''
let g:ale_java_eclipselsp_executable = 'java'
let g:ale_java_eclipselsp_javaagent = ''
let g:ale_java_eclipselsp_path = '/Users/nathanael.schweers/opt/eclipse.jdt.ls'
let g:ale_java_eclipselsp_workspace_path = ''

Global Variables:
" Press Space to read :help for a setting
let g:ale_cache_executable_check_failures = v:null
let g:ale_change_sign_column_color = 0
let g:ale_command_wrapper = ''
let g:ale_completion_delay = 100
let g:ale_completion_enabled = 0
let g:ale_completion_max_suggestions = 50
let g:ale_disable_lsp = 'auto'
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%code: %%s'
let g:ale_echo_msg_info_str = 'Info'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_fix_on_save = 1
let g:ale_fixers = {'rust': ['rustfmt']}
let g:ale_history_enabled = 1
let g:ale_info_default_mode = 'preview'
let g:ale_history_log_output = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_insert_leave = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'normal'
let g:ale_linter_aliases = {}
let g:ale_linters = {'rust': ['analyzer', 'rustfmt'], 'SQL': ['pgformatter'], 'java': ['eclipselsp']}
let g:ale_linters_explicit = 0
let g:ale_linters_ignore = {}
let g:ale_list_vertical = 0
let g:ale_list_window_size = 10
let g:ale_loclist_msg_format = '%code: %%s'
let g:ale_max_buffer_history_size = 20
let g:ale_max_signs = -1
let g:ale_maximum_file_size = v:null
let g:ale_open_list = 0
let g:ale_pattern_options = v:null
let g:ale_pattern_options_enabled = v:null
let g:ale_root = {}
let g:ale_set_balloons = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = 'E'
let g:ale_sign_info = 'I'
let g:ale_sign_offset = 1000000
let g:ale_sign_style_error = 'E'
let g:ale_sign_style_warning = 'W'
let g:ale_sign_warning = 'W'
let g:ale_sign_highlight_linenrs = 0
let g:ale_type_map = {}
let g:ale_use_neovim_diagnostics_api = 0
let g:ale_use_global_executables = v:null
let g:ale_virtualtext_cursor = 'all'
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1

Command History:

(executable check - success) java
(finished - exit code 0) ['/bin/zsh', '-c', '''java'' -version']

<<>>
openjdk version "21.0.1" 2023-10-17
OpenJDK Runtime Environment Homebrew (build 21.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.1, mixed mode, sharing)
<<>>

(started) ['/bin/zsh', '-c', '''java'' -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar ''/Users/nathanael.schweers/opt/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/products/languageServer.product/macosx/cocoa/aarch64/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.equinox.launcher_1.6.700.v20231214-2017.jar'' -configuration ''/Users/nathanael.schweers/opt/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/products/languageServer.product/macosx/cocoa/aarch64/Eclipse.app/Contents/Eclipse/config_mac'' -data ''/Users/nathanael.schweers/repositories/spring-course/09-spring-boot-jpa-advanced-mappings'' --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED']

@NSchweers NSchweers added the bug label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant