question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nonexist file included in searching results ?

See original GitHub issue

I really love leaderf.

$ vim --version                                                                                   
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)                                                     
Included patches: 1-1689                                                                                               
Extra patches: 8.0.0056                                                                                                
Modified by pkg-vim-maintainers@lists.alioth.debian.org                                                                
Compiled by pkg-vim-maintainers@lists.alioth.debian.org                                                                
Huge version without GUI.  Features included (+) or not (-):                                                           
+acl             +farsi           +mouse_netterm   +tag_binary                                                         
+arabic          +file_in_path    +mouse_sgr       +tag_old_static                                                     
+autocmd         +find_in_path    -mouse_sysmouse  -tag_any_white                                                      
-balloon_eval    +float           +mouse_urxvt     -tcl                                                                
-browse          +folding         +mouse_xterm     +terminfo                                                           
++builtin_terms  -footer          +multi_byte      +termresponse                                                       
+byte_offset     +fork()          +multi_lang      +textobjects                                                        
+channel         +gettext         -mzscheme        +timers                                                             
+cindent         -hangul_input    +netbeans_intg   +title                                                              
-clientserver    +iconv           +packages        -toolbar                                                            
-clipboard       +insert_expand   +path_extra      +user_commands                                                      
+cmdline_compl   +job             -perl            +vertsplit                                                          
+cmdline_hist    +jumplist        +persistent_undo +virtualedit                                                        
+cmdline_info    +keymap          +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     -xsmp                                                               
+emacs_tags      -mouseshape      +startuptime     -xterm_clipboard                                                    
+eval            +mouse_dec       +statusline      -xterm_save                                                         
+ex_extra        +mouse_gpm       -sun_workshop    -xpm                                                                
+extra_search    -mouse_jsbterm   +syntax                                                                              
   system vimrc file: "$VIM/vimrc"                                                                                     
     user vimrc file: "$HOME/.vimrc"                                                                                   
 2nd user vimrc file: "~/.vim/vimrc"                                                                                   
      user exrc file: "$HOME/.exrc"                                                                                    
  fall-back for $VIM: "/usr/share/vim"                                                                                 
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=f
ormat-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1                                                                   
Linking: gcc   -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -l
nsl  -lselinux  -lacl -lattr -lgpm -ldl     -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -lpython3.5m -lpthread -l
dl -lutil -lm                                                                                                          

:echo has("python3")

1

:py3 print(sys.version):

3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609]
  • Operating system:

  • Linux

  • Configurations related to LeaderF in vimrc:

let g:Lf_RootMarkers = ['.git']                            
let g:Lf_WorkingDirectoryMode = 'Ac'                       
let g:Lf_DefaultMode = 'FullPath'                          
                                                           
let g:Lf_WildIgnore = {                                    
  \ 'dir': ['.git', 'build'],                              
  \ 'file': ['*.sw?','~$*','*.bak','*.o','*.so','*.py[co]']
  \}                                                       
                                                           
nnoremap ;f :LeaderfFunction<CR>                           

Question

rename testing.c to test.c in a project, and quit vim. I search test.c file using fuzzy full-path when re-entering the project in vim, and see the result contains testing.c file which does not exists any more. why would this happened ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Yggdrootcommented, Jun 15, 2018

Got it. the root cuase is that git ls-files && git ls-files --others --exclude-standard can still list the deleted files even though LeaderF does not read the cache. You can set let g:Lf_UseVersionControlTool = 0 so that LeaderF use “rg”/“pt”/“ag”/“find” instead to index the files.

0reactions
pingsolicommented, Jun 15, 2018

nice job, thanks a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search feature finding nonexistent files - Microsoft Community
I had over 6,000 files and tried to delete all of them but over 2,000 show up as non-existent. I get a message...
Read more >
Deleted files keep coming up in Start Menu search results
Many times when I search from the Start Menu, results come up for files that have been deleted or moved but the old...
Read more >
Remove Outdated Content tool - Search Console Help
Use the Remove Outdated Content tool to have Google update search results for pages or images that no longer exist, or pages that...
Read more >
VScode remote connection error: The process tried to write to ...
I use vscode with remote-ssh to connect my server, after configuring, I want to connect my host, but it failed, the dialog box...
Read more >
Windows 7 search showing file results from non-existent folder
Perhaps the file Attributes have been altered (e.g. to "Hidden" or "System"). Tutorial Hidden Files and Folders - Show or Hide.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found