neoclide / coc-solargraph

Solargraph extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Folding not work

cuongn265 opened this issue · comments

Hi, thank you so much for building such an awesome plugin.

All related functions work perfectly except folding function.

I tried your configuration at https://github.com/neoclide/coc.nvim and use :Fold to fold my file but it provided an error message: [coc.nvim] no range provider found

I've already installed solargraph and other functions work.

Your solargraph doesn't have folde support.

In this repo README I see: solargraph.folding: Enable folding ranges. Did I misunderstand something?

Looks like it's disabled or your solargraph is too old, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

Thanks I will have a look

@cuongn265 Did you find out what was wrong with the Folding? I am also facing the same issue.

No I didn't. I have to use other plugin to achieve my goal. My choice: anyfold

@chemzqm Can you please open this issue. I checked the logs and I could not find a request being sent to the server to get fold providers. Here are the logs - https://gist.github.com/praveendhawan/06d69669aa3d3ea763de90ccba1fadf4

I did inspect the logs here - https://microsoft.github.io/language-server-protocol/inspector/ and I could not find a request to get folds for the file.
Solargraph Version - 0.38.5