tzachar / cmp-tabnine

TabNine plugin for hrsh7th/nvim-cmp
MIT License
286 stars 28 forks source link

contains byte that does not start any UTF-8 character #98

Closed towry closed 1 year ago

towry commented 1 year ago
Error detected while processing TextChangedI Autocommands for "*":                                                                                                                                                 
Error executing lua callback: Vim:E474: String "<e4><b8>线。完成上线后,加密汉字汉字,看到此应用                                                                                                          
          </div>                                                                                                                                                                                                   
        </div>                                                                                                                                                                                                     
      </div>                                                                                                                                                                                                       
    </div>                                                                                                                                                                                                         
  </div>                                                                                                                                                                                                           
</div>" contains byte that does not start any UTF-8 character                                                                                                                                                      
stack traceback:                                                                                                                                                                                                   
        [C]: in function 'json_encode'                                                                                                                                                                             
        ...l/share/nvim/lazy/cmp-tabnine/lua/cmp_tabnine/source.lua:226: in function '_do_complete'                                                                                                                
        ...l/share/nvim/lazy/cmp-tabnine/lua/cmp_tabnine/source.lua:249: in function 'complete'                                                                                                                    
        ...userName/.local/share/nvim/lazy/nvim-cmp/lua/cmp/source.lua:325: in function 'complete'                                                                                                                    
        ...s/userName/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:289: in function 'complete'          

ft: html

NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

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

Run :checkhealth for more info
tzachar commented 1 year ago

please try now. should be solved

altermo commented 1 year ago

I get the same error (even after updating and testing with minimal config), the patch did not work for me. What I did (| is cursor): ä| > press r > ERROR

tzachar commented 1 year ago

please try 71054dc

altermo commented 1 year ago

It does not throw an error now, thanks.