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

E349: No identifier Under Cursor #23

Open
kaiyulee opened this issue Apr 27, 2017 · 11 comments
Open

E349: No identifier Under Cursor #23

kaiyulee opened this issue Apr 27, 2017 · 11 comments

Comments

@kaiyulee
Copy link

kaiyulee commented Apr 27, 2017

I don't know how to describe this issue, please see the jpg

fixed: let g:TerminusFocusReporting=0

@wincent
Copy link
Owner

wincent commented Apr 27, 2017

Unfortunately I don't really get what I am seeing in the jpg. It is very blurry on my machine. Is it supposed to be an animated gif?

Also, see :h E349 for more context on what the error supposedly means (doesn't seem to have a lot to do with focus reporting; I wonder if you have any bindings involving *).

@lencioni
Copy link
Contributor

I also started seeing this error after updating terminus today. It happens when I first start Vim. A git bisect points me at 9382e00 as the culprit and can verify that adding let g:TerminusFocusReporting=0 makes the error no longer appear.

lencioni added a commit to lencioni/dotfiles that referenced this issue Jun 25, 2017
I also had to update my compile-commandt.sh script because the location
of the extconf.rb file changed.

I also started seeing an error after updating terminus (E349: No
identifier Under Cursor), so I am pinning that at an earlier version for
now. More info: wincent/terminus#23
@wincent
Copy link
Owner

wincent commented Jun 25, 2017

I suspect some interaction with a plug-in, so will need a bit more help to repro this.

@lencioni
Copy link
Contributor

I removed all plugins except for the following:

terminus     vim-pathogen

and the problem persists.

Here's the output of vim --version:

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 26 2017 08:42:12)
MacOS X (unix) version
Included patches: 1-373
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     -tcl
-balloon_eval    +folding         +mouse_xterm     +termguicolors
-browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     -gettext         -mzscheme        +textobjects
+channel         -hangul_input    +netbeans_intg   +timers
+cindent         +iconv           +num64           +title
-clientserver    +insert_expand   +packages        -toolbar
+clipboard       +job             +path_extra      +user_commands
+cmdline_compl   +jumplist        +perl            +vertsplit
+cmdline_hist    +keymap          +persistent_undo +virtualedit
+cmdline_info    +lambda          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python          +vreplace
+cscope          +lispindent      -python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con      -lua             +rightleft       +writebackup
+diff            +menu            +ruby            -X11
+digraphs        +mksession       +scrollbind      -xfontset
-dnd             +modify_fname    +signs           -xim
-ebcdic          +mouse           +smartindent     -xpm
+emacs_tags      -mouseshape      +startuptime     -xsmp
+eval            +mouse_dec       +statusline      -xterm_clipboard
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_save
+extra_search    -mouse_jsbterm   +syntax          
+farsi           +mouse_netterm   +tag_binary      
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: clang   -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o vim        -lncurses -liconv -framework Cocoa   -mmacosx-version-min=10.11 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.24.0_1/lib/perl5/5.24.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -F/usr/local/opt/python/Frameworks -framework Python   -lruby.2.4.0 -lobjc    

Perhaps there is something up with the version of vim I am on, or possibly something in my configuration. I can dig in some more later, but unlikely today.

@lencioni
Copy link
Contributor

Actually, I tracked it down to this line in my vim config:

nnoremap <silent> <Esc> :nohlsearch<CR><Esc>

@lencioni
Copy link
Contributor

lencioni commented Jun 25, 2017

Interestingly, this also triggers it:

nnoremap <silent> <Esc> <Esc>

@lencioni
Copy link
Contributor

Also, FYI I've updated Vim to include patches through 666 and same issue.

@wincent
Copy link
Owner

wincent commented Jun 26, 2017

Thanks for the minimal repro, @lencioni. I can repro it, although I haven't thought of a fix for it yet. Doesn't repro in Neovim, BTW.

@wincent
Copy link
Owner

wincent commented Jun 26, 2017

Workaround: define any multi-char mapping starting with <Esc>, even a nonsense one:

nnoremap <Esc><Esc> <nop>

You'll get the annoying delay mentioned in 9382e00, but at least you won't see that error.

@rcarraretto
Copy link

fwiw, I was having an issue with the file reloading feature and, thanks to this thread, I fixed it by removing a very similar line from my vimrc (it was an unused mapping anyway):

nnoremap <silent> <esc> :noh<cr>

for the record, my issue was:

  • I would open vim in a dir (netrw) and I would see E349.
  • when vim gained focus I would see some message basically showing me the file path and that required me to press enter. the file wouldn't reload as expected.

iterm2, tmux 2.4, vim 8

thanks, folks!

@lencioni
Copy link
Contributor

lencioni commented Feb 1, 2018

I believe this same mapping recently starting causing more annoying problems with terminus that sound very similar to what @rcarraretto was experiencing. Main difference is that my prompt showed me a few lines in the file around where my cursor was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants