Error: Process execution timed out
I'm getting this error even in small files:
Error: Process execution timed out
at /Users/mike/.atom/packages/linter-phpcs/node_modules/atom-linter/lib/helpers.js:79:18
Any ideas I might try? Thanks! :)
So the latest version added a 10 second timeout to the execution, if you are hitting this then phpcs is screwing up somehow and taking longer than 10 seconds and getting killed. Do you mind sharing a file that is triggering this as well as your configuration that phpcs is running on it? Maybe we can figure out why phpcs is locking up on it.
Thanks @Arcanemagus :) I will post here the next time it happens, the configuration for sure, and the file if its not sensitive information (domain logic, etc.).
OK, just happened again. Here is the file I was in as it happened:
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExampleTest extends TestCase
{
/** @test */
public function it_finds_a_document_by_id()
{
}
}
I was adding the open and closing braces of the test method when it errored. Here are my settings:
So i've had it happen repeatedly, and it seems to occur when I move the cursor between the braces of a method without any content. Will keep an eye out to see if I can get this reproducable.
I'm also experiencing the same issue when i do something inside the parenthesis.
Sometime this error appears.
Error parsing PHPCS response something went wrong attempting to parse the PHPCS output.
Sometimes it shows same error as shown in above message by @mikebronner
@femkhan if you see that "something went wrong" message can you file a new issue with the file in the exact state you saw that on?
Hi,
I'm also experiencing the exact same error as @mikebronner. My settings are below, should it help:

Hi,
I'm having the same issue but with linter-clang.

Here are my settings, but I'm not sure it will help you ;)

Also having this issue on line 79 of helpers.js except I'm using linter-csslint.
@askaper please file that on linter-csslint.
I am having this issue as well
Error: Process execution timed out at /Users/neilg/.atom/packages/linter-phpcs/node_modules/atom-linter/lib/helpers.js:79:18
Here are my settings:

Here is an example file - https://github.com/neilgee/slicknav-menu/blob/master/slicknav-mobile-menu.php
me, too. Error: Process execution timed out Error: Process execution timed out at /Users/KJRS/.atom/packages/linter-phpcs/node_modules/atom-linter/lib/helpers.js:79:18
and my setting:

how to fix it ?
Does CodeSniffer seem to hang/take forever when you run it manually as well?
I'm getting this error and I'm not even editing php files. The project I have open doesn't have a single php file.
@miklb You need to figure out which linter is running on the files you are editing, I'm assuming since you are commenting here that the path for atom-linter contained linter-phpcs, but that's just due to Atom having picked that instance of atom-linter to load first.
天哪,这问题这么久了,怎么还存在呀! 😭……好像这个也造成Atom变得非常卡! 😭😭😭……
v1.4.0 has been published with an option to disable the execution timeout, among a few other new features. Be warned that you may start seeing orphaned processes again if this is enabled!