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

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

Open
meredrica opened this issue Oct 25, 2023 · 3 comments

Comments

@meredrica
Copy link

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
Copy link
Author

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

@guest73
Copy link

guest73 commented Jan 12, 2024

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

@asmodeus812
Copy link

Same issue occured on trying to execute the move action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants