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.

Error on startup `this[#remain].subarray is not a function`

See original GitHub issue

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

Error message: [denops] Unexpected error occured in session: TypeError: this[#remain].subarray is not a function

It is may related to deno version. I have deno 1.13.1 installed

Expected

No error

Environment Information

  • ddc version (SHA1): latest

  • OS: Mac

  • neovim/Vim :version output: NVIM v0.6.0-dev+205-g9695691ee-dirty
    Build type: Release
    LuaJIT 2.1.0-beta3

  • :checkhealth or :CheckHealth result(neovim only): health#denops#check ========================================================================

  • INFO: Supported Deno version: 1.11.0
  • INFO: Detected Deno version: 1.8.2
  • ERROR: Unsupported Deno version is detected. You need to upgrade it to 1.11.0 or later.
  • INFO: Supported Neovim version: 0.4.4
  • INFO: Detected Neovim version: 0.6.0
  • OK: Neovim version check: passed
  • INFO: Denops status: running
  • OK: Denops status check: passed

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

" Your minimal init.vim/vimrc
set termguicolors

call plug#begin('~/.vim/plugged')
Plug 'ray-x/guihua.lua'
Plug 'ray-x/navigator.lua'
Plug 'ray-x/aurora'
Plug 'Shougo/ddc.vim'
Plug 'vim-denops/denops.vim'
Plug 'Shougo/ddc-around'
Plug 'Shougo/ddc-matcher_head'
Plug 'Shougo/ddc-sorter_rank'
Plug 'Shougo/deoppet.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/neco-vim'
Plug 'Shougo/ddc-nvim-lsp'
Plug 'Shougo/ddc-nextword'
Plug 'matsui54/ddc-buffer'
Plug 'matsui54/ddc-nvim-lsp-doc'
Plug 'matsui54/ddc-dictionary'
call plug#end()

call ddc#custom#patch_global('sources', ['around'])
call ddc#custom#patch_global('sources', ['nvimlsp'])
  call ddc#custom#patch_global('sourceOptions', {
  \ '_': { 'matchers': ['matcher_head'] },
  \ 'nvimlsp': { 'mark': 'lsp', 'forceCompletionPattern': '\.|:|->' },
  \ })

call ddc#custom#patch_global('sourceParams', {
  \ 'nvimlsp': { 'kindLabels': { 'Class': 'c' } },
  \ })
inoremap <silent><expr> <TAB>
  \ pumvisible() ? '<C-n>' :
  \ (col('.') <= 1 <Bar><Bar> getline('.')[col('.') - 2] =~# '\s') ?
  \ '<TAB>' : ddc#manual_complete()
  
inoremap <expr><S-TAB>  pumvisible() ? '<C-p>' : '<C-h>'
call ddc#enable()

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Shougocommented, Sep 2, 2021

I have fixed both problems. Closing.

0reactions
ray-xcommented, Sep 1, 2021

In fact even with nextword install but with no NEXTWORD_DATA_PATH setup. I still got errors.

So from my point of view, there are two issues:

  1. I did not enable nextword as a source. But nextword crash the ddc.vim
  2. Would be better that the plugin does not crash even if some sources enabled by failed to work. Instead, showing warning messages would be helpful.
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get subarray from array? - javascript - Stack Overflow
I want to add another note that slice does not raise exceptions for any type of input (string, undefined, object whatever). If start...
Read more >
TypedArray.prototype.subarray() - JavaScript - MDN Web Docs
The subarray() method returns a new TypedArray on the same ArrayBuffer store and with the same element types as for this TypedArray object....
Read more >
How JavaScript subarray() works with Examples - eduCBA
Start1: The start1 parameter of the subarray() function of the PHP Programming Language is an optional parameter. This parameter is the starting position ......
Read more >
Largest subarray with equal number of 0s and 1s
Now, we need to find the subarray where subarray sum is 0 and start index is not 0. This problem is equivalent to...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError- Some selector is not a function - jQuery is not a function - owlCarousel is...
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