coc-java
coc-java copied to clipboard
coc-codeaction-refactor Error on notification "codeAction": TypeError: import_coc26.workspace.asRelativePath is not a function
workspace.asRelativePath does not exist in the workspace object, i guess it got lost sometime with coc.nvim changes
(https://github.com/neoclide/coc.nvim/blob/e3f91b5ed551ae95d1f5c3b75f557f188ad17b52/src/workspace.ts#L51)
to reproduce:
- create a class
public class Foo {
}
- place the cursor on
Foo. - call
coc-codeaction-refactor - select
move
for reference, i call the action via keybind
nmap <silent> <leader>m <Plug>(coc-codeaction-refactor)
I can confirm it happens at my set up as well. coc.nvim 0.0.82 coc-java 1.15.2
Same issue occured on trying to execute the move action.