liuchengxu / vim-clap

:clap: Modern performant fuzzy picker, tree-sitter highlighting, and more, for both Vim and NeoVim
https://liuchengxu.github.io/vim-clap/
MIT License
2.11k stars 87 forks source link

error: Clap install-binary with neoterm #882

Closed luisdavim closed 2 years ago

luisdavim commented 2 years ago

Environment:

Describe the bug When running :Clap install-binary I get the following error message:

Error detected while processing function clap#[2]..clap#installer#install[7]..clap#installer#build_all[12]..<SNR>157_run_term[1]..BufAdd Autocommands for "*"..function clap#client#notify_recent_file[8]..<SNR>156_send_notification[1]..clap#job#daemon#send_message:                                                                                                                                                               
line    1:                                                                                                                                                                                                                                                                                                                                                                                                                            
E900: Invalid channel id                                                                                                                                                                                                                                                                                                                                                                                                              
E900: Invalid channel id                                                                                                                                                                                                                                                                                                                                                                                                              
Press ENTER or type command to continue 

Clap debug

            has cargo: 1                                                                                                                                                                                                                                                                                                                                                                                                              
            has maple: /Users/dluis/.vim/bundle/vim-clap/target/release/maple                                                                                                                                                                                                                                                                                                                                                         
           maple info: version 0.1.36, built for aarch64-apple-darwin by rustc 1.64.0 (a55dd71d5 2022-09-19).                                                                                                                                                                                                                                                                                                                         
         has +python3: 1                                                                                                                                                                                                                                                                                                                                                                                                              
has py dynamic module: 1                                                                                                                                                                                                                                                                                                                                                                                                              
            has ctags:                                                                                                                                                                                                                                                                                                                                                                                                                
vim-clap: Ensure ctags executable is in your PATH and has the JSON output featurectags without JSON output support                                                                                                                                                                                                                                                                                                                    
        rustc version: rustc 1.64.0 (a55dd71d5 2022-09-19)                                                                                                                                                                                                                                                                                                                                                                            
    Current sync impl: Lua                                                                                                                                                                                                                                                                                                                                                                                                            
     Current FileType:                                                                                                                                                                                                                                                                                                                                                                                                                
Third Party Providers: []                                                                                                                                                                                                                                                                                                                                                                                                             
       Global Options:                                                                                                                                                                                                                                                                                                                                                                                                                
    let g:clap#autoload_dir = '/Users/dluis/.vim/bundle/vim-clap/autoload'                                                                                                                                                                                                                                                                                                                                                            
    let g:clap#provider_alias = {'gfiles': 'git_files', 'hist:': 'command_history', 'hist/': 'search_history'}                                                                                                                                                                                                                                                                                                                        
    let g:clap_background_shadow_blend = 50                                                                                                                                                                                                                                                                                                                                                                                           
    let g:clap_disable_bottom_top = 0                                                                                                                                                                                                                                                                                                                                                                                                 
    let g:clap_disable_matches_indicator = v:false                                                                                                                                                                                                                                                                                                                                                                                    
    let g:clap_disable_optional_async = v:false                                                                                                                                                                                                                                                                                                                                                                                       
    let g:clap_disable_run_rooter = v:false                                                                                                                                                                                                                                                                                                                                                                                           
    let g:clap_enable_background_shadow = v:false                                                                                                                                                                                                                                                                                                                                                                                     
    let g:clap_enable_debug = v:false                                                                                                                                                                                                                                                                                                                                                                                                 
    let g:clap_enable_icon = 1                                                                                                                                                                                                                                                                                                                                                                                                        
    let g:clap_forerunner_status_sign = {'done': '•', 'running': '!', 'using_cache': '*'}                                                                                                                                                                                                                                                                                                                                             
    let g:clap_insert_mode_only = v:false                                                                                                                                                                                                                                                                                                                                                                                             
    let g:clap_layout = {'col': '17%', 'row': '15%', 'width': '67%', 'relative': 'editor', 'height': '15%'}                                                                                                                                                                                                                                                                                                                           
    let g:clap_multi_selection_warning_silent = 0                                                                                                                                                                                                                                                                                                                                                                                     
    let g:clap_no_matches_msg = 'NO MATCHES FOUND'                                                                                                                                                                                                                                                                                                                                                                                    
    let g:clap_open_action = {'ctrl-v': 'vsplit', 'ctrl-x': 'split', 'ctrl-t': 'tab split'}                                                                                                                                                                                                                                                                                                                                           
    let g:clap_open_preview = 'always'                                                                                                                                                                                                                                                                                                                                                                                                
    let g:clap_popup_border = 'single'                                                                                                                                                                                                                                                                                                                                                                                                
    let g:clap_preview_direction = 'UD'                                                                                                                                                                                                                                                                                                                                                                                               
    let g:clap_preview_size = 10                                                                                                                                                                                                                                                                                                                                                                                                      
    let g:clap_providers_relaunch_code = '@@'                                                                                                                                                                                                                                                                                                                                                                                         
    let g:clap_search_box_border_style = 'nil'                                                                                                                                                                                                                                                                                                                                                                                        
    let g:clap_search_box_border_symbols = {'nil': ['', ''], 'curve': ['', ''], 'arrow': ['', '']}                                                                                                                                                                                                                                                                                                                                
  Provider Variables:                                                                                                                                                                                                                                                                                                                                                                                                                 
    let g:clap_provider_coc_blink = [2, 100]                                                                                                                                                                                                                                                                                                                                                                                          
    let g:clap_provider_grep_opts = '-H --no-heading --vimgrep --smart-case --hidden --glob=!.git/* --glob=!*vendor/* --glob=!*node_modules/* '                                                                                                                                                                                                                                                                                       
Press ENTER or type command to continue

To Reproduce

I can only reproduce the issue if neoterm is also enabled and only on a M1 macbook pro, it seems to work fine on other systems with the same setup.

Steps to reproduce the behavior:

  1. Create the minimal vimrc min.vim:
set nocompatible
set runtimepath^=/Users/dluis/.vim/bundle/vim-clap,/Users/dluis/.vim/bundle/neoterm
syntax on
filetype plugin indent on
  1. Start (neo)vim with command: vim -u min.vim

  2. Type ':Clap install-binary'

  3. See error

Expected behavior No errors occur when running this command

Additional Context

This seems to be specific to macOS on M1 when using Clap with Neoterm, more than asking for this to be fixed I'd like some help further debugging the issue.

Thanks

liuchengxu commented 2 years ago

Should be fixed in master.