package-cop

Find package causing an error by logging errors

mark-hahn

5,505

40

0.2.10

MIT

GitHub

Package-Cop

Atom editor: Find package causing an error and more.

Looking for the 1 of 70 packages causing double typing ...

Image inserted by Atom editor package auto-host-markdown-image

Usage Scenarios

Installation

Use the settings page to find and install package-cop or type atom install package-cop.

Open the Package-Cop page

The entire UI is in one page in one tab. The command package-cop:open brings up this page. The key combination ctrl-F12 is bound to this command by default.

Detailed UI description

Turn on help using the button at the top right of the package-cop page to see inline text decribing all UI features. That help is not duplicated here. Note that the UI is fully functional when it is embedded in the help text.

Using safe mode

Whenever you run into a problem, restart Atom in safe mode with the command atom --safe. If the problem persists in safe mode then submit an issue to https://github.com/atom/atom. This package will not help you in that situation.

Isolate package causing error with fast dedicated testing

Detailed instructions (same as video above) ...

Logging errors and casual testing

If you are using the editor and a problem occurs, you don't have to stop immediately to test it. Just bring up the package-cop page, enter a problem name, and click on Problem Occurred. You can then go back to work. You can do this every time the problem occurs and it only takes one click after the first time.

This not only creates a log of the problems, but it also calculates which packages are cleared with whatever information it has. Green marks will appear for each cleared package. If you enable and disable packages every so often then more packages will be cleared. You may find the cause without ever doing specific testing.

This can be done for multiple projects by clicking on the problem name before reporting the error.

Test report buttons

You might have noticed the fail button is labeled Problem Occurred instead of Test Failed to match the button Test Passed. This is because reporting a failure is fundamentally different than passing a specific test. It may be surprising but you can isolate a bad package without ever using Test Passed. While this may be slower it will be more accurate since you never know with complete confidence a test is accurate. But you do know exactly when a problem occurs.

License

Package-Cop is copyright Mark Hahn using the MIT license.