Comments (18)
Dosn't look like a timeout to me, the error sems to be that i's sending incorrect buffer id for some reason.
from neotags.nvim.
hi @c0r73x , thanks for replying; the behavior is:
1. Open my vim config file
"~/.config/nvim/init.vim" 248L, 7067C
-
Wait 2min without change anything
-
Got the error below:
error caught while executing async callback:
NvimError(b'Invalid buffer id')
Traceback (most recent call last):
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/neotags.py", line 140, in init
self.update(False)
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/neotags.py", line 181, in update
self.__groups[ft] = self._parseTags(ft)
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/neotags.py", line 372, in _parseTags
self.__slurp = '\n'.join(self.__cur['buf'])
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/buffer.py", line 75, in __iter__
lines = self[:]
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/buffer.py", line 48, in __getitem__
return self.request('nvim_buf_get_lines', start, end, False)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/common.py", line 51, in request
return self._session.request(name, self, *args, **kwargs)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
raise self.error_wrapper(err)
pynvim.api.nvim.NvimError: b'Invalid buffer id'
the call was requested at
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 222, in filter_notification_cb
notification_cb(name, args)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/plugin/host.py", line 120, in _on_notification
handler(*args)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/plugin/host.py", line 82, in _wrap_function
return fn(*args)
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/__init__.py", line 20, in init
self.__vim.async_call(self.__neotags.init)
Follow my vimrc config for reference:
" Plugins
" ------------------------------------------------------------------------------
call plug#begin('~/.config/nvim/plugged')
" Themes
Plug 'trevordmiller/nova-vim'
" Language
Plug 'sheerun/vim-polyglot'
" Completion
Plug 'raimondi/delimitmate', { 'for': ['javascript', 'json'] }
Plug 'valloric/matchtagalways', { 'for': ['html', 'xml', 'php'] }
" Search
Plug 'cloudhead/neovim-fuzzy'
Plug 'ripxorip/aerojump.nvim', { 'do': ':UpdateRemotePlugins' }
" Code display
Plug 'sbdchd/neoformat'
Plug 'csscomb/vim-csscomb', { 'for': ['css', 'stylus', 'scss'] }
" Integrations
Plug 'w0rp/ale'
Plug 'brooth/far.vim'
Plug 'junegunn/gv.vim'
Plug 'mhinz/vim-signify'
Plug 'tpope/vim-fugitive'
Plug 'c0r73x/neotags.nvim'
Plug 'itspriddle/vim-marked', { 'for': 'markdown' }
" Interface
Plug 'mbbill/undotree', { 'on': 'UndotreeToggle' }
Plug 'junegunn/goyo.vim'
Plug 'mhinz/vim-startify'
" Commands
Plug 'brooth/far.vim'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdcommenter'
Plug 'AndrewRadev/splitjoin.vim'
" Other
Plug 'kassio/neoterm'
Plug 'mhinz/vim-sayonara'
Plug 'airodactyl/neovim-ranger'
" Initialize plugin system
call plug#end()
" Settings
" ------------------------------------------------------------------------------
set clipboard+=unnamedplus " Mac OS X clipboard sharing
" Search and Replace
set hlsearch " Highlight search results.
set ignorecase " Make searching case insensitive
set smartcase " ... unless the query has capital letters.
set incsearch " Incremental search.
set gdefault " Use 'g' flag by default with :s/foo/bar/.
set magic " Use 'magic' patterns (extended regular expressions).
" White Space
set tabstop=4 " Set tab to equal 4 spaces.
set expandtab " Expand tabs into spaces.
set shiftwidth=4 " Set auto indent spacing.
set softtabstop=4 " Set soft tabs equal to 4 spaces.
set smartindent " Does the right thing (mostly) in programs
set shiftround " Shift to the next round tab stop.
set textwidth=0 " Hard-wrap long lines as you type them.
set conceallevel=0 " Text is shown normally
set listchars=tab:··,trail:· " Show leading whitespace
set list " Displays whitespace
" Presentation
set shortmess=aIoO " Show short messages, no intro.
set showcmd " Show (partial) command in status line.
set ruler " Show the cursor position.
set cf " Enable error jumping.
set hidden " Allow hidden buffers.
set number " Show line numbers
set relativenumber " Relative line numbers
set nocursorline " Highlight the line containing the cursor.
set cc=80 " Highlight column at 80
set linespace=0 " Set line-spacing to minimum.
set nowrap " Disable line wrapping.
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
set showmatch " Show matching parenthesis.
set matchpairs+=<:> " Pairs to match.
set splitbelow " Horizontal split below current.
set splitright " Vertical split to right of current.
set scrolloff=3 " Show next 3 lines while scrolling.
set sidescrolloff=5 " Show next 5 columns while side-scrolling.
set display+=lastline
set nostartofline " Do not jump to first character with page commands.
set foldmethod=indent " Fold based on indent
set foldnestmax=20 " Deepest fold is 20 levels
set nofoldenable " Don't fold by default
set foldlevel=1
syntax enable " Enable syntax highlighting.
filetype plugin indent on " Load syntax files for better indenting.
" User Interface
set termguicolors
colorscheme nova
" Status Line
set laststatus=2 " Always show status.
set fillchars+=stl:\ ,stlnc:\ " Space. " Disable status line fill chars.
set noshowmode " Get rid of the default mode indicator
set cmdheight=1
" Plugins
" Netrw
let loaded_netrwPlugin = 1
" ALE
let g:ale_lint_on_enter = 0
let g:ale_lint_on_text_changed = 'never'
" Vim-signify
let g:signify_vcs_list = ['git']
" Undotree
let g:undotree_WindowLayout = 2
" Mappings
" ------------------------------------------------------------------------------
" Leader
let mapleader = ' '
" Use Q to execute default register.
nnoremap Q @q
" Remap esc
imap jj <Esc>
" Use v to toggle visual mode.
vno v <Esc>
" Remap arrows up and down
cnoremap <C-p> <up>
cnoremap <C-n> <down>
" Copy current files path to clipboard
nmap cp :let @+ = expand('%') <CR>
" Quickly edit/reload the vimrc file
nmap <silent> <Leader>ev :e $MYVIMRC<CR>
nmap <silent> <Leader>sv :so $MYVIMRC<CR>
" Switch Off The Current Search
nnoremap <silent> <Leader>/ :nohlsearch<CR>
" Mappings to quickly traverse buffer lists
nnoremap <silent> [b :bprevious<CR>
nnoremap <silent> ]b :bnext<CR>
nnoremap <silent> [B :bfirst<CR>
nnoremap <silent> ]B :blast<CR>
" Clean the highlight text
map <leader>h :set hlsearch!<CR>
" Save
nnoremap <Leader>s :update<CR>
nnoremap <Leader>w :update<CR>
" Quit
nnoremap <Leader>q :q<CR>
nnoremap <Leader>Q :qa!<CR>
" Open file on Chrome Canary
nnoremap <C-o><C-b> :!open -a Google\ Chrome\ Canary %<CR><CR>
" Plugins
" ALE
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)
" Neoformat
noremap <Leader>ff :Neoformat<CR>
" Undotree
nnoremap U :UndotreeToggle<CR>
" Goyo
nnoremap <Leader>G :Goyo<CR>
" Fuzzy
nnoremap <C-p> :FuzzyOpen<CR>
nnoremap <C-f> :FuzzyGrep<CR>
"Git commits for the current buffer
nnoremap <silent> <Leader>ga :BCommits<CR>
"Git commits (requires fugitive.vim)
nnoremap <silent> <Leader>gl :Commits<CR>
nnoremap <silent> <Leader>ft :Filetypes<CR>
nnoremap <silent> <Leader>ht :Helptags<CR>
" Sayonara
cnoreabbrev <expr> x getcmdtype() == ":" && getcmdline() == 'x' ? 'Sayonara' : 'x'
" Functions
" ------------------------------------------------------------------------------
" Copy file
command! -nargs=1 -complete=file Cp :w <args> | :e <args>
" Plugins
" FZY
function! FzyCommand(choice_command, vim_command)
try
let output = system(a:choice_command . " | fzy ")
catch /Vim:Interrupt/
" Swallow errors from ^C, allow redraw! below
endtry
redraw!
if v:shell_error == 0 && !empty(output)
exec a:vim_command . ' ' . output
endif
endfunction
" Gv.vim
function! s:gv_expand()
let line = getline('.')
GV --name-status
call search('\V'.line, 'c')
normal! zz
endfunction
autocmd! FileType GV nnoremap <buffer> <silent> + :call <sid>gv_expand()<CR>
from neotags.nvim.
Very strange error. I will add some exception handling to the part of the code that fails this weekend and try to atleast get some sane error/reason why it crashes.
from neotags.nvim.
thanks, @c0r73x, appreciate that.
from neotags.nvim.
hey @c0r73x , did you get a chance to review this issue? I'm getting it every time that I open the vimrc
file or the terminal
emulator.
Thanks!
Henry
from neotags.nvim.
@henryoliver sorry i've been busy with stuff irl, i will try to get some time soon to debug it.
from neotags.nvim.
Hey @c0r73x , really appreciate your effort here, thanks!
To be honest I could not figure out how to use this plugin yet, im getting all kind of errors as follow:
Ctags process timed out!
no notification handler registered for ".../.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags:function:NeotagsInit"
I get the correct folder generated, everything seems to look fine, but all of sudden some error appears.
Maybe its something that im doing wrong, can you tell me how can I jump through tags using your plugin, maybe we can start from there, what do you think?
Again, thank you!
from neotags.nvim.
Humm, what version of ctags are you using?
You jump through them using vims commands, neotags fills vims default tags. https://vim.fandom.com/wiki/Browsing_programs_with_tags
I hope this helps ;)
from neotags.nvim.
@c0r73x im using:
❯ ctags --version
Universal Ctags 0.0.0(42b74d5), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Oct 20 2019, 20:55:42
URL: https://ctags.io/
Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +xpath, +case-insensitive-filenames, +packcc
Every time I try to jump it I get the same message:
E433: No tags file
E426: tag not found: showLightbox
Press ENTER or type command to continue
from neotags.nvim.
Hey @c0r73x , sorry to bother you, but do you have any update on this issue?
I really can't figure out what's wrong with the plugin, so the tag file gets generated inside .vim-tags
folder but the plugin never finds it.
Please, let me know if I'm missing anything.
Thanks
-- Henry
from neotags.nvim.
Humm, that's odd. if you run :set tags
do the file show up there?
from neotags.nvim.
@c0r73x the output is:
tags=./tags;,tags
Should it point to .vim_tags
instead? I'm nothing getting what I'm doing wrong.
Thank you for you help again @c0r73x .
from neotags.nvim.
Yeah that look incorrect. When neotags has generated new tags for your project it should update the tags
variable with a new tagfile. You could try to add it and see if it works, with set tags+=~/.vim_tags/tags
I would recomend running NeotagsVerbosity
before you save your file to see if there are any errors.
from neotags.nvim.
@c0r73x Im suspecting that neovim is not capable to access the bin ctags to generate the tags on the .vim_tags
folder:
❯ ctags --version
Universal Ctags 0.0.0(42b74d5), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Oct 20 2019, 20:55:42
URL: https://ctags.io/
Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +xpath, +case-insensitive-filenames, +packcc
❯ which ctags
/usr/local/bin/ctags
If I run ctags -R
on the terminal it works well.
from neotags.nvim.
Could you try to set g:neotags_ctags_bin = '/usr/local/bin/ctags'
from neotags.nvim.
/usr/local/bin/ctags --fields=+l --c-kinds=+p --c++-kinds=+p --sort=yes --exclude='.mypy_cache' --regex-go='/^\s*(var)?\s*(\w*)\s*:?=\s*func/\2/f/' --exclude='*Makefile' --exclude='*Makefile.in' --exclude='*aclocal.m4' --exclude='*config.guess' --exclude='*config.h.in' --exclude='*config.log' --excl
ude='*config.status' --exclude='*configure' --exclude='*depcomp' --exclude='*install-sh' --exclude='*missing' -f "/Users/henryoliver/.vim_tags/__Users__henryoliver__Projects__PhotoDay__Development__photoday-web-studio.tags" -R "/Users/henryoliver/Projects/PhotoDay/Development/photoday-web-studio"
Press ENTER or type command to continue
E433: No tags file
E426: tag not found: getPhoto
Looks like the .tag
file was created, but I i'm still getting the error below:
error caught while executing async callback:
NvimError(b'Invalid buffer id')
Traceback (most recent call last):
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/neotags.py", line 181, in update
self.__groups[ft] = self._parseTags(ft)
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/neotags.py", line 375, in _parseTags
self.__slurp = '\n'.join(self.__cur['buf'])
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/buffer.py", line 75, in __iter__
lines = self[:]
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/buffer.py", line 48, in __getitem__
return self.request('nvim_buf_get_lines', start, end, False)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/common.py", line 51, in request
return self._session.request(name, self, *args, **kwargs)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
raise self.error_wrapper(err)
pynvim.api.nvim.NvimError: b'Invalid buffer id'
the call was requested at
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 222, in filter_notification_cb
notification_cb(name, args)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/plugin/host.py", line 120, in _on_notification
handler(*args)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/plugin/host.py", line 82, in _wrap_function
return fn(*args)
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/__init__.py", line 24, in highlight
self.__vim.async_call(self.__neotags.update, False)
Neotags: Error: directory '/Users/henryoliver/Projects/PhotoDay/Development/photoday-web-studio' is already saved as a project base.
error caught while executing async callback:
NvimError(b'Invalid buffer id')
Traceback (most recent call last):
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/neotags.py", line 181, in update
self.__groups[ft] = self._parseTags(ft)
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/neotags.py", line 375, in _parseTags
self.__slurp = '\n'.join(self.__cur['buf'])
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/buffer.py", line 75, in __iter__
lines = self[:]
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/buffer.py", line 48, in __getitem__
return self.request('nvim_buf_get_lines', start, end, False)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/common.py", line 51, in request
return self._session.request(name, self, *args, **kwargs)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
raise self.error_wrapper(err)
pynvim.api.nvim.NvimError: b'Invalid buffer id'
the call was requested at
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 222, in filter_notification_cb
notification_cb(name, args)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/plugin/host.py", line 120, in _on_notification
handler(*args)
File "/Users/henryoliver/Library/Python/3.7/lib/python/site-packages/pynvim/plugin/host.py", line 82, in _wrap_function
return fn(*args)
File "/Users/henryoliver/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags/__init__.py", line 24, in highlight
self.__vim.async_call(self.__neotags.update, False)
Neotags: Ctags completed with errors
Neotags: ctags: Warning: cannot open input file "/Users/henryoliver/Projects/....-web-customer/term:/1488:fzy -l 12 > /var/folders/wx/7652cs1j70l1801c2s3mf9hh0000gn/T/nvimHflkDO/72 < /var/folders/wx/7652cs1j70l1801c2s3mf9hh0000gn/T/nvimHflkDO" : No such file or directory
Press ENTER or type command to continue
from neotags.nvim.
Humm i've seen similar issues when using the binary version of neotags 🤔 Other than that i'm out of ideas :(
from neotags.nvim.
thats fine @c0r73x i'll just move on. Thanks for your help!
from neotags.nvim.
Related Issues (20)
- Error when python venv in same directory HOT 8
- Very poor performance when neotags is enabled and the tags file is large HOT 2
- No highlighting and error in ctags-default flags HOT 5
- Error on startup HOT 4
- No highlight with python script HOT 1
- Does ctags have option named --extras? HOT 1
- No such file or directory when starting neovim HOT 3
- JavaScript - TypeError: sequence item 6: expected str instance, list found HOT 4
- tagfiles() return an empty array HOT 10
- `async=True` SyntaxError HOT 1
- C syntax highlighting not working as before HOT 4
- Traceback at startup HOT 1
- No module name 'neovim.api.nvim' HOT 1
- Install fails with dein HOT 4
- always error msg: regexp missing final separator HOT 3
- "E117: Unknown Function: NeotagsInit" on installing with vim-plug HOT 2
- Allow adding extra directories to "projects" HOT 1
- Tags sometimes don't get highlighted until I force them to? HOT 4
- No highlight of C tags HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neotags.nvim.