New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while checking syntax automatically (file-error) #1529
Comments
Hmm that looks bad. It happens on every JS buffer you say? But not for other languages? cc @flycheck/javascript |
I also use python-flake8 and don't see any issues there |
@pepone Good to know. It may be a windows issue with eslint and Emacs processes... can't really know as I can't reproduce. If you have reliable steps to reproduce, please share. Until then, there is little hope to find a solution. |
I have the same problem, and am on windows as well.
Its only affecting one file so far. If I change the file to have something simple like The files only has 359 lines, and I've not had this problem before on much larger files. My emacs fu is limited to hacking init.el and friends, and toggle the debugger :) This doesn't look like its particular to flycheck but something to do with emacs + windows. |
I'm having the same problem. It just started to happen recently in the project and with files, I edited before without any problems. |
@soeik If you work out which package is causing the problem post back. |
Is there a specific size threshold at which this starts happening? And did the issue pop up after updating to a new Emacs? |
Sorry, I dont have answers for that. I'll look into providing some more diagnostics, but its not Flycheck's problem it must be an interaction with another package. As notes on May 9th, I'm happy to have a crack investigating but my debugging skills are limited. |
Thanks for the offer. If the cut-off is a specific value, this might suggest buffer-related issues. We've had one like this in Emacs before. nodejs/node#4697 |
Okay, I've run emacs -q, and only run Attempt 1
and the problem still exists Attempt 2
Still getting
|
Culling the file from 18806 characters to 7369 characters and the problem goes away. |
I've learnt how to use Edebug recently, so I figured I'd go into the source code and run Got temporarily stalled via function call indirection. Added instrumentation to The problem is in the call to
|
And
See https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-01/msg00419.html Running
|
Following that email thread finally links me to #794 and look there I am in that thread too... Why didn't I find that first time? My workaround there no longer relevant. And Xeveo link https://github.com/Xeveo/flycheck/commit/8b472e52ce4ad82158e4aaf49dc8d6eedc70923f is now dead, and as noted in the other thread, reverting stdin isn't the way to fix this. On a command prompt I ran
and it fails at pretty much 4k.
@cpitclaudel In this emacs bug thread https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-01/msg00550.html you mention that you raised an issue with node, but there was no link to the issue you raised and I can not find that issue. Is there any chance that you can find it again? |
Using
|
@cpitclaudel I found your node issue, I should have search by your github username! |
rejoice I have a workaround! In the nodejs/node#4697 I've discovered the source of the problem is eslint and its handling of stdin. I don't know what the correct long term solution is, but I'll post in here too when I find it. For now you can hack your local version of eslint. node_modules/eslint/bin/eslint.js and replace the
|
!! Thanks so much for this exceptional sleuthing work :) |
@baerrach Nice investigation! I see you have raised the issue with the ESLint folks. I'll file this as upstream and close the issue, since the fix is not on Flycheck's side. Feel free to update us when it does get fixed though. |
Each time I save a JS buffer or edit it I getting this error, and editing the JS buffer becomes slow to the point that it becomes unusable.
The text was updated successfully, but these errors were encountered: