fannheyward / coc-rust-analyzer

rust-analyzer extension for coc.nvim
MIT License
1.13k stars 40 forks source link

Weird interaction with easymotion. #265

Closed iago-lito closed 4 years ago

iago-lito commented 4 years ago

This happens with coc-rust-analyzer, but not with coc-rls, but maybe I should report at vim-easymotion instead?

With my cursor at any position in the file (here on top):

before

Now, navigating the easymotion style (here to the last line with <leader>j then w:

easymotion-navigating

After navigation, everything gets clogged up with syntax errors:

after

Maybe this is rust_analyzer trying to parse the easymotion hints?

It is easy to remove all the messages by either entering/leaving insert mode, or saving the file, etc.. But it happens any time I easy-motion navigate in large files. Any idea what the problem could be?

fannheyward commented 4 years ago

Sorry, I didn't use easymotion...

iago-lito commented 4 years ago

Oh, I've just found that the problem actually occurs with other linters, and that they are aware of it at easymotion (cross-ref). So I think there is not much to do on coc side.. except ad-hoc workarounds maybe.

Not sure whether to close this issue because the problem is not yours, or to leave it open as long as the problem persists at easymotion's.