linter-phpcs icon indicating copy to clipboard operation
linter-phpcs copied to clipboard

Error: Process execution timed out

Open mikebronner opened this issue 10 years ago • 17 comments

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
screen shot 2016-03-03 at 08 17 57

Any ideas I might try? Thanks! :)

mikebronner avatar Mar 03 '16 16:03 mikebronner

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.

Arcanemagus avatar Mar 03 '16 17:03 Arcanemagus

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.).

mikebronner avatar Mar 03 '16 19:03 mikebronner

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:

screen shot 2016-03-03 at 13 20 20

mikebronner avatar Mar 03 '16 21:03 mikebronner

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.

mikebronner avatar Mar 03 '16 23:03 mikebronner

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 avatar Mar 09 '16 09:03 femkhan

@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?

Arcanemagus avatar Mar 09 '16 18:03 Arcanemagus

Hi,

I'm also experiencing the exact same error as @mikebronner. My settings are below, should it help:

Settings

foxtrot avatar Mar 10 '16 21:03 foxtrot

Hi,

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

screen shot 2016-03-18 at 14 56 36

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

screen shot 2016-03-18 at 15 01 07

MickealJCaboose avatar Mar 18 '16 14:03 MickealJCaboose

Also having this issue on line 79 of helpers.js except I'm using linter-csslint.

askaper avatar Mar 21 '16 17:03 askaper

@askaper please file that on linter-csslint.

Arcanemagus avatar Mar 21 '16 17:03 Arcanemagus

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: screen shot 2016-03-22 at 4 23 13 pm

Here is an example file - https://github.com/neilgee/slicknav-menu/blob/master/slicknav-mobile-menu.php

neilgee avatar Mar 22 '16 05:03 neilgee

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: image

how to fix it ?

oknixus avatar Apr 07 '16 06:04 oknixus

Does CodeSniffer seem to hang/take forever when you run it manually as well?

jyggen avatar Apr 08 '16 12:04 jyggen

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 avatar Apr 27 '16 03:04 miklb

@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.

Arcanemagus avatar Apr 27 '16 17:04 Arcanemagus

天哪,这问题这么久了,怎么还存在呀! 😭……好像这个也造成Atom变得非常卡! 😭😭😭……

oknixus avatar May 06 '16 08:05 oknixus

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!

Arcanemagus avatar May 06 '16 19:05 Arcanemagus