-
Notifications
You must be signed in to change notification settings - Fork 19
Process execution timed out #110
Comments
Never had this issue until I upgraded Ubuntu to 20.04 LTS Now I confirm I am also affected with these versions:
|
Found how to fix:
The See: if (options.timeout !== Infinity) {
timeout = setTimeout(function () {
// eslint-disable-next-line no-use-before-define
killProcess(spawnedProcess);
reject(new Error('Process execution timed out'));
}, options.timeout);
} Related: steelbrain/exec#101 |
Hi! Atom 1.48.0 on Ubuntu |
Hi, I also did not see the settings to configure that value.
and insert |
Setting the timeout to infinity sounds like it would leave random processes running on the system. The issue seems to be that the input to shellcheck is not terminated and shellcheck hangs waiting for the rest. |
bump! |
Ok, this is as far as I could get and maybe I am even looking in the wrong place, but... It seems that the spawned process is never provided with any data on stdin. In this file the options are passed to the spawn function but the Also I have no idea where this file originally comes from. The debugger does not give me any info where it lies on the filesystem. Looks like one of the nodejs files. Also note that the there are two files involved with the same name. Those are different. I'm honestly tangled in a spaghetti of code here so if anyone else has an idea, please chime in :) |
I've had the same issue on Linux, but my Mac setup worked fine. In gathering all of the dependent environment versions for Linux trouble shooting, I discovered due to previous problem (unrelated? I've forgotten), I had disabled linter-ui-default. Today, I re-enabled linter-ui-default and my setup works again on saving any Shell Script file type in Atom, but it doesn't work during typing: $ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=20
DISTRIB_CODENAME=ulyana
DISTRIB_DESCRIPTION="Linux Mint 20 Ulyana"
$ shellcheck --version
ShellCheck - shell script analysis tool
version: 0.7.1
license: GNU General Public License, version 3
website: https://www.shellcheck.net
$ atom -v
Atom : 1.48.0
Electron: 5.0.13
Chrome : 73.0.3683.121
Node : 12.0.0
$ apm list | grep -e shell -e lint
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] (disabled)
├── [email protected] I use the Linuxbrew install of shellcheck and I re-configured the linter-shellcheck package as follows:
|
@d-hr I believe you had a typo, but I found that file is plural and ends in 's', i.e.: |
I have the same issue on Arch Linux with:
I fixed it by editing this line in atom-linter/lib/helpers.js
is now:
That seems to work so far, I have no clue why though. Note that the edit was made in the file after it had gone through babel so the line number in the "babeled" version is 105. The file can be found in |
After a bit of digging, it appears that addind a
in Line 77 in d29c890
Got the idea from there: https://github.com/steelbrain/atom-linter#unique-spawning |
Not quite fixed actually, although it seems better. |
This error now occurs repeatedly as soon as I start editing a shell script, rendering the package unusable for me. Shellcheck 0.8.0 Atom 1.60.0 |
Thank you @jagaudin! |
Nevermind, that didn't fix it really. Will have to set the By the way, for those running Atom from Flatpak, the path to Also, the line here is a And the line to change is i think: var spawned = callback(filePath, parameters, Object.assign({ timeout: 10000 }, options)); So editing to: var spawned = callback(filePath, parameters, Object.assign({ timeout: Infinity }, options)); And that fixes the issue. |
@Megaf I spent quite some time trying to figure this out but the code is hard to understand and poorly commented. So I just ended up using Infinity for the timeout parameter as you did. |
I continually get this error in the console randomly. ShellCheck will work fine for a while, then randomly start throwing this. Restarting Atom usually fixes it for a bit. Running ShellCheck from terminal works fine.
[Linter] Error running ShellCheck Error: Process execution timed out at /home/myusername/.atom/packages/linter-shellcheck/node_modules/sb-exec/lib/index.js:89 (anonymous) @ linter-registry.js [sm]:137
The text was updated successfully, but these errors were encountered: