Skip to content
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

options.timeout need the default value written to config #101

Open
leagris opened this issue Jun 14, 2020 · 1 comment
Open

options.timeout need the default value written to config #101

leagris opened this issue Jun 14, 2020 · 1 comment

Comments

@leagris
Copy link

leagris commented Jun 14, 2020

Issue details

When options.timeout is not set, some commands times-out with:

[Linter] Error running ShellCheck Error: Process execution timed out
    at /home/username/.atom/packages/linter-shellcheck/node_modules/sb-exec/lib/index.js:89

Expected behavior

When options.timeout is not set:

  • Use a reasonable default timeout value other than 0.
  • Have the default value written back to config.
  • Eventually, report an average-human-readable explicit message, that the option is not set and it uses the default value.

Notes

The MDN/WindowOrWorkerGlobalScope.setTimeout(), Parameters documentations says that the default value is 0 milliseconds:

delay Optional

The time, in milliseconds (thousandths of a second), the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, the next event cycle_. Note that in either case, the actual delay may be longer than intended; see Reasons for delays longer than specified below.

Related issues

@steelbrain
Copy link
Owner

if (options.timeout) {

We fill out the default options.timeout if not specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants