Comments (12)
Does anyone know how to change the timeout? Seems to be general issue that 0.5s is too short.
from coc-eslint.
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.
Removing coc-prettier fixed the lag to me.
from coc-eslint.
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.
Use output channel to see what happened https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel
from coc-eslint.
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.
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.
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.
Could be your other plugin fornating your code.
from coc-eslint.
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.
@sangaline did you manage to solve this? Attached screenshot of my case
Happens when I save the file
from coc-eslint.
I have this issue when used together with coc-prettier
from coc-eslint.
Related Issues (20)
- Eslint 8 support HOT 1
- Coc-eslint doesn't work with eslint@8 HOT 10
- undeprecate `eslint.enable`
- coc-eslint does not detect eslintrc unless it is placed in the root folder HOT 4
- Connection to server got closed. Server will not be restarted. HOT 1
- Usage with XO
- Is there any configuration for easily opening a recommendation link? HOT 1
- The "initializing eslint" notification never disappears HOT 2
- [bug] Diagnostic level hard-coded to Unnecessary/Warning/1 for no-unused-vars rule HOT 3
- UnhandledRejection opening markdown files HOT 22
- Stuck as "Initializing eslint" popup
- ESLint 8 flat config support HOT 3
- Parsing error: ESLint was configured to run on .... However that TSConfig does not include this file HOT 1
- how does eslint work
- shoudFix parameter was false HOT 4
- Need some clarification
- Coc-eslint not working with yarn Plug'n'Play HOT 2
- Setting `useFlatConfig` to true breaks ESLint integration for projects that use the older config style HOT 1
- when autoFixOnSave fails, the file can't be saved HOT 2
- is coc-eslint still maintained? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-eslint.