Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Coc reports "rename provider not found" when trying to rename a symbol #1660

Closed
gfarrell opened this issue Apr 3, 2021 · 3 comments
Closed

Comments

@gfarrell
Copy link

gfarrell commented Apr 3, 2021

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

haskell-language-server version: 1.0.0.0 (GHC: 8.10.4) (PATH: /usr/bin/haskell-language-server-wrapper) (GIT hash: 4cd1cf934638881e52b3eba9f70157a4b799c0e9)
Tool versions found on the $PATH
cabal:          Not found
stack:          2.5.1
ghc:            Not found

Which OS do you use: ArchLinux
Which lsp-client do you use: Neovim (coc.nvim)
Describe your project (alternative: link to the project): project link

Contents of hie.yaml:

cradle:
  stack:

Steps to reproduce

Using a minimal example

module Simulation () where

data MyData = MyData Int Int Int

doSomething :: MyData -> Int
doSomething (MyData x y z) = x + y + z

Put the cursor over MyData' on the line defining the MyDatatype and [trigger the action I have defined forcoc-rename](https://github.com/gfarrell/dotfiles/blob/master/neovim/init.vim#L207) in order to try renaming MyDatatoMyOtherData`.

Expected behaviour

A little dialogue should show allowing me to rename MyData and have that change reflected across the codebase.

Actual behaviour

A warning appears saying:

[coc.nvim]: Error on notification "rename": rename provider not found for current buffer, your language server don't [sic] support it.

I'm happy to help debug further, but I don't know if this is a Coc problem or an HLS problem, although rename does work in other languages (e.g. Typescript).

@eddiemundo
Copy link
Collaborator

Renaming is not actually implemented yet. See #282.

@Ailrun
Copy link
Member

Ailrun commented Apr 3, 2021

Duplicate of #282.

@gfarrell
Copy link
Author

gfarrell commented Apr 4, 2021

Ok thanks, wasn’t sure so I searched but clearly missed #282

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants