kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

Eslint error

Open Flamme13 opened this issue 3 years ago • 2 comments

Describe the bug Hi. When I do something in JavaScript or TypeScript files, I have the following ESLint error. I try to use eslint-lsp and eslint_d. With eslint-lsp I have this error, with eslint_d errors aren't shown.

ESLint: Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.. Please see the 'ESLint' output channel for details
.

Request Actions:
1. Open Output
2. Ignore for this Session
Type number and <Enter> or click with the mouse (q or empty cancels):

After choosing option 1, nothing happens.

To Reproduce Steps to reproduce the behavior:

  1. Open any js, jsx, ts, tsx file.
  2. Do any eslint error

Desktop (please complete the following information):

  • OS: Linux (Ubuntu 22.04)
  • Terminal: kitty

** Neovim Version **

 NVIM v0.8.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99
 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE
_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/nvim/parts/nvim/build/build/cmake.config -I/build/nvim/parts/nvim/build/src -I/build/nvim/par
ts/nvim/build/.deps/usr/include -I/usr/include -I/build/nvim/parts/nvim/build/build/src/nvim/auto -I/build/nvim/parts/nvim/build/build/include
Compiled by root@lcy02-amd64-068

Features: +acl +iconv +tui
See ":help feature-compile"

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

Flamme13 avatar Jan 09 '23 22:01 Flamme13

Give me advice please, how can I fix it? Or any other plugin for eslint. Thanks.

Flamme13 avatar Jan 09 '23 22:01 Flamme13

Have you tried this, @Flamme13? Also, be sure to have eslint_d installed

null_ls.setup({
 435   │   sources = {
 436   │     null_ls.builtins.diagnostics.eslint_d.with({
 437   │       diagnostics_format = '[eslint] #{m}\n(#{c})'
 438   │     })
 439   │   },

ubmit avatar Jan 16 '23 21:01 ubmit

Sorry, I'm going to close -- you can raise issues in null-ls repo if something with null-ls isn't working. Hope you get it sorted out!

tjdevries avatar Feb 17 '23 21:02 tjdevries