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

bug: EasyMotion: Vim(call):E117: Unknown function: VSCodeSetTextDecorations : function EasyMotion#JK[9]..<SNR>72_EasyMotion[226]..<SNR>72_PromptUser, line 120 #1353

Closed
3 tasks done
zhaoxuyll opened this issue Jul 28, 2023 · 14 comments
Labels
bug Something isn't working

Comments

@zhaoxuyll
Copy link

zhaoxuyll commented Jul 28, 2023

Did you check docs and existing issues?

  • I have read all the vscode-neovim docs
  • I have searched the existing issues of vscode-neovim
  • I can reproduce the issue with an empty init.vim/init.lua and no other vscode extensions (when applicable)

Neovim version (nvim -v)

v0.9.1

Operating system/version

Windows 11

Describe the bug

Today When use (easymotion-j) in VSCode get error. Before not this error.

Neovim vim-plug:

Plug 'asvetliakov/vim-easymotion', Cond(exists('g:vscode'), {'as': 'vsc-easymotion'})
Plug 'easymotion/vim-easymotion', Cond(!exists('g:vscode'))

VSCode infomation:

版本: 1.80.2 (user setup)
提交: 2ccd690cbff1569e4a83d7c43d45101f817401dc
日期: 2023-07-27T20:40:28.909Z
电子: 22.3.14
ElectronBuildId: 22695494
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621

PS:
When use v0.3.2 version not this problem, but use today upgrade version v0.4.0 this fail.

PS:
I noticed in the v0.4.0 release update notes. highlight: remove easymotion support.

Steps To Reproduce

use (easymotion-j) by map

Expected Behavior

No error.

@zhaoxuyll zhaoxuyll added the bug Something isn't working label Jul 28, 2023
@theol0403
Copy link
Member

theol0403 commented Jul 28, 2023

Easymotion is now unsupported. Use hop/sneak/lightspeed/flash.

@theol0403 theol0403 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 28, 2023
@zhaoxuyll
Copy link
Author

zhaoxuyll commented Jul 31, 2023

Please support Easymotion. because alert hop.nvim is buggly. @theol0403

@theol0403
Copy link
Member

Not worth the code to support it. Easymotion does not properly use nvim APIs, and uses hacks. Why is hop buggy?

@zhaoxuyll
Copy link
Author

zhaoxuyll commented Jul 31, 2023

Not worth the code to support it. Easymotion does not properly use nvim APIs, and uses hacks. Why is hop buggy?

I always get this error when I create a new file or switch tabs several times normally
Code_K3PfH2xUtG

And hop.vim i don't know why it's always slow moving.

@theol0403
Copy link
Member

The slowness is a new bug I'm investigating.

@theol0403
Copy link
Member

Not sure what the issue with hop is, but you might not have configured it properly.

@zhaoxuyll
Copy link
Author

Not sure what the issue with hop is, but you might not have configured it properly.

This is my config is very sample:

lua << EOF
require('hop').setup()
EOF
map j <Cmd>HopVerticalAC<CR>
map k <Cmd>HopVerticalBC<CR>
map h <Cmd>HopWordCurrentLineBC<CR>
map l <Cmd>HopWordCurrentLineAC<CR>
map s <Cmd>HopChar1<CR>

@zhaoxuyll
Copy link
Author

I noticed that hop doesn't seem to have an active maintenance and vscode section anymore, see the following question:

hadronized/hop.nvim#357

hadronized/hop.nvim#206

@theol0403
Copy link
Member

Is easy motion actively developed either? Definitely not our fork of it.

@zhaoxuyll
Copy link
Author

Thanks to , I'm exploring some possible options, as I do need the usual easymotion features.

@zhaoxuyll
Copy link
Author

zhaoxuyll commented Jul 31, 2023

I found this fork version, this is available. But vscode-neovim version 0.4.0 ~ 0.4.1 has a slow press down problem.

https://github.com/smoka7/hop.nvim

@theol0403
Copy link
Member

Slowness fixed

@userrand
Copy link

userrand commented Sep 12, 2023

@theol0403

I also had a problem with that fork. Maybe there should be a disccusion about removing the suggestion to use that fork in https://github.com/vscode-neovim/vscode-neovim/wiki/Plugins#vim-easymotion

@theol0403
Copy link
Member

@userrand the wiki is open, feel free to delete it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants