Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don't show notifications for stacks without absolute file paths - #62

Merged
kevinsawicki merged 1 commit into
masterfrom
ks-ignore-core-stack-traces
May 18, 2015
Merged

kevinsawicki merged 1 commit into
masterfrom
ks-ignore-core-stack-traces

Conversation

@kevinsawicki

Copy link
Copy Markdown
Contributor

There are cases where a stack traces only contains file paths for node built-ins such as process and fs and are impossible to trace to a specific package or core file, so don't show notifications for them.

This can be as simple as calling fs.readFile('/') without a callback which currently causes a notification with a stack trace of:

Error: EISDIR: illegal operation on a directory, read
  at Error (native)

This pull request scans each stack and only shows notifications for ones that contain at least one absolute path meaning it comes from a known package or core source file.

The errors still go to Console tab in the dev tools.

Closes atom/atom#4708
Closes atom/atom#4710
Closes atom/atom#4735
Closes atom/atom#4805
Closes atom/atom#5315
Closes atom/atom#5634
Closes atom/atom#5956
Closes atom/atom#6095
Closes atom/atom#6184
Closes atom/atom#6191
Closes atom/atom#6213
Closes atom/atom#6256
Closes atom/atom#6326
Closes atom/atom#6339
Closes atom/atom#6468
Closes atom/atom#6804

/cc @izuzak I tried to link all the relevant uncaught issues I could find
/cc @benogle

kevinsawicki added a commit that referenced this pull request May 18, 2015
Don't show notifications for stacks without absolute file paths
@kevinsawicki
kevinsawicki merged commit d99f073 into master May 18, 2015
@kevinsawicki
kevinsawicki deleted the ks-ignore-core-stack-traces branch May 18, 2015 16:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.