Open piersolenski opened 1 month ago
eslint_d: v14.0.3, bundled eslint: v9.8.0
This means that no local eslint was resolved and it falls back to the bundled version. Is there something wrong with the current working directory?
Also, do you have the same problem on the command line when running eslint_d <some-file>
?
It does indeed seem to work with the command line, I guess the problem is coming via my Neovim setup, although it was working before 9, and doesn't include anything crazy?
I've also noticed if I change my eslint config to include an incorrect setting, using eslint
via none-ls
will offer a suggestion of how to fix it:
Oops! Something went wrong! :(ESLint: 9.9.0Configuration for rule "semi" is invalid. Expected severity of "off", 0, "warn", 1, "error", or 2.You passed '"never"'.See https://eslint.org/docs/latest/use/configure/rules#using-configuration-files for configuring rules. 1:1:14 eslint
eslint_d
via none-ls
just crashes:
failed to decode json: Expected value but found invalid token at character 1 1:1:3 eslint_d
For anyone else experiencing issues with Neovim, for now I've switched to the eslint lsp and it seems pretty speedy:
require 'lspconfig'.eslint.setup({
settings = {
packageManager = 'yarn'
},
on_attach = function(client, bufnr)
vim.api.nvim_create_autocmd("BufWritePre", {
buffer = bufnr,
command = "EslintFixAll",
})
end,
})
Hi there, could you share your nvim start command and what is cwd?
I'm also using latest eslint_d via none-ls, but without any issues
It was simply nvim
and whatever project I was working in.
This is minimal config which is working fine on my end https://github.com/L2jLiga/nvim-none-ls-eslint_d
Tested with Windows 11 23H2 and Fedora 40
I've recently switched a project to the new
eslint.config.js
format. When usingeslint
, it works perfectly (albeit slow!), when I switch toeslint_d
I get the following error:I am using the following version
The tickets below suggest that it should be working with this version:
I'm using
eslint_d
with Neovim and https://github.com/nvimtools/none-ls.nvim. My config looks like this:(When switching
eslint_d
toeslint
in the above config, everything works!)Thanks for the awesome plugin!