telescope-project.nvim icon indicating copy to clipboard operation
telescope-project.nvim copied to clipboard

E523: Not allowed here.

Open jkary opened this issue 4 years ago • 6 comments
trafficstars

Hello,

I am consistently able to reproduce the above error. I'm not sure if I have a bad config or missing dependency.

OS: macOS Big Sur 11.5.2

Running NeoVIM version:

NVIM v0.5.0 Build type: Release LuaJIT 2.1.0-beta3 Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/config -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/src/nvim/auto -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/include Compiled by brew@BigSur

Features: +acl +iconv +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/Cellar/neovim/0.5.0/share/nvim"

Run :checkhealth for more info

If I perform the following:

  1. # vim .
  2. <CTRL-p> (Open project)
  3. type 'mas' (for master branch)
  4. backspace 3 chars to remove ('mas' from the window, it does not go away from the previous screen)
  5. type 'main' (for selecting main.tf)
  6. jjj (down 3 lines, not sure if this is significant)
  7. i (try to insert text) --- E523: Not allowed here

At this point I am unable to enter insert mode no matter what file I pick. I have to restart nvim to reset the state.

vimrc.txt

jkary avatar Oct 26 '21 13:10 jkary

Sorry, but this is a too big config. At first glance I did not find the offending config. The setup for project detection also looks quite different in lua and I am not versatile in vimscript.

Can you bisect to a minimal plugin config? Its easier to use git for this, ie with dotfiles. You could use my dotfile skeleton for this.

matu3ba avatar Nov 11 '21 11:11 matu3ba

Hi there,

Sure. I will update this issue once I narrow it down.

Jason

jkary avatar Nov 11 '21 14:11 jkary

Ok. So this plugin seems to be causing the issue.

https://github.com/Shougo/deoplete.nvim

Can you confirm?

jkary avatar Nov 11 '21 15:11 jkary

Can you confirm?

Can you provide a minimal init.vim, so I can try it?

matu3ba avatar Nov 12 '21 07:11 matu3ba

Good Day,

Please find the minimal .vimrc file attached vimrc-broken.txt

Thanks Jason

jkary avatar Nov 12 '21 15:11 jkary

type 'main' (for selecting main.tf) jjj (down 3 lines, not sure if this is significant) i (try to insert text) --- E523: Not allowed here

Your instructions are incomplete or not logically consistent to me:

  1. The first pick of the project with backspace deletes the text in the insertion window, so there is nothing to delete.
  2. jjj would insert 3 j's. Did you escape to leave insertion mode?
  3. Or did you hit the second time backspace to open the file main.tf?
  4. Does the error not occur once you remove deoplete?
  5. I suspect expr or noremap breaking stuff as motivated here. Would not be the first time that plugins with default mappings have weird effects.

matu3ba avatar Nov 20 '21 21:11 matu3ba