Git Product home page Git Product logo

Comments (12)

nomasprime avatar nomasprime commented on May 28, 2024 3

Does anyone know how to change the timeout? Seems to be general issue that 0.5s is too short.

from coc-eslint.

sangaline avatar sangaline commented on May 28, 2024 1

Are you saying that another plugin might be calling eslint.executeAutofix? I get the error with

{
  "eslint.autoFix": false,
  "eslint.autoFixOnSave": false,
  "eslint.enable": true,
}

but it goes away when I disable the plugin entirely:

{
  "eslint.autoFix": false,
  "eslint.autoFixOnSave": false,
  "eslint.enable": false,
}

from coc-eslint.

tony avatar tony commented on May 28, 2024 1

Removing coc-prettier fixed the lag to me.

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

Coc.nvim doesn't have code like a:out[len(a:out) - 1] .
I think it's issue with your other vim plugin.

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

Use output channel to see what happened https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

from coc-eslint.

sangaline avatar sangaline commented on May 28, 2024

Thanks for the quick reply. It seems like the second error was actually from a prettier plugin, but I still have the coc-eslint timeouts even when I disable that plugin. The output channel shows this after saving:

  1 [Info  - 17:21:14] ESLint server running in node v8.11.2
  2 [Info  - 17:21:14] ESLint library loaded from: /tmp/simple-project/node_modules/eslint/lib/api.js
  3 [Error  - 17:21:38] Failed to apply command: eslint.applyAutoFix

When I save and quit, I see this now:

[coc.nvim] eslint will save operation timeout after 0.5s

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

You can try eslint --fix in your terminal, if it takes more than 0.5s, then it's expected, you have to disable autoFixOnSave in your configuration file.
Maybe caused by some wired configuration.

from coc-eslint.

sangaline avatar sangaline commented on May 28, 2024

Eslint takes longer than 0.5s when I run it from the command-line, but the autoformatting takes significantly less time than it does with the plugin. Isn't the default value of autoFixOnSave false? Even when I explicitly set it to false, I still get the timeout error when I save and quit. Is this option possibly not being respected?

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

Could be your other plugin fornating your code.

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

It's possible get called in your vim code, or it's overwritten in your vim configuration.
"eslint.autoFixOnSave": false works as expected for me.

from coc-eslint.

alextrastero avatar alextrastero commented on May 28, 2024

@sangaline did you manage to solve this? Attached screenshot of my case
foo

Happens when I save the file

from coc-eslint.

wddwycc avatar wddwycc commented on May 28, 2024

I have this issue when used together with coc-prettier

from coc-eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.