bug: error is thrown when the go to definition to a .class file · Issue #73 · nvim-java/nvim-java · GitHub
Skip to content

bug: error is thrown when the go to definition to a .class file #73

Description

@s1n7ax

We have to make sure the buffer is modifiable before the de-compiled content is set

[ERROR Wed Dec 13 18:29:38 2023] ...al/share/nvim/lazy/nvim-java/lua/java/handlers/error.lua:26:
decompilation failed for jdt://contents/spring-boot-3.2.0.jar/org.springframework.boot/SpringApplication.class?=demo/%5C/root%5C/.gradle%5C/caches%5C/modules-2%5C/files-2.1%5C/org.springframework.boot%5C/spring-boot%5C/3.2.0%5C/4088ad23df91481bc7415cbfa068c423ccb7e54e%5C/spring-boot-3.2.0.jar=/gradle_used_by_scope=/main,test=/%3Corg.springframework.boot(SpringApplication.class
...im/lazy/nvim-java/lua/java/startup/decompile-watcher.lua:32: Buffer is not 'modifiable'
stack traceback:
        ...al/share/nvim/lazy/nvim-java/lua/java/handlers/error.lua:18: in function 'error_handler'
        ...e/nvim/lazy/nvim-java-core/lua/java-core/utils/async.lua:32: in function 'callback'
        ...nvim-java-core/lua/java-core/ls/clients/jdtls-client.lua:47: in function 'handler'
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1393: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
        [C]: in function 'wait'
        ...im/lazy/nvim-java/lua/java/startup/decompile-watcher.lua:47: in function <...im/lazy/nvim-java/lua/java/startup/decompile-watcher.lua:21>
        [C]: in function 'nvim_win_set_buf'
        /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1146: in function 'jump_to_location'
        ...nvim/lazy/telescope.nvim/lua/telescope/builtin/__lsp.lua:212: in function 'handler'
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1393: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions