coc-java icon indicating copy to clipboard operation
coc-java copied to clipboard

coc-codeaction-refactor Error on notification "codeAction": TypeError: import_coc26.workspace.asRelativePath is not a function

Open meredrica opened this issue 2 years ago • 3 comments

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:

  1. create a class
public class Foo {
}
  1. place the cursor on Foo.
  2. call coc-codeaction-refactor
  3. select move

meredrica avatar Oct 25 '23 10:10 meredrica

for reference, i call the action via keybind nmap <silent> <leader>m <Plug>(coc-codeaction-refactor)

meredrica avatar Oct 25 '23 10:10 meredrica

I can confirm it happens at my set up as well. coc.nvim 0.0.82 coc-java 1.15.2

guest73 avatar Jan 12 '24 13:01 guest73

Same issue occured on trying to execute the move action.

asmodeus812 avatar Mar 23 '24 18:03 asmodeus812