You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Create an atom bisect command for determining which package is causing a problem #2357
Similar to the git bisect command, this command would load Atom with a subset of the packages available to it. It would launch Atom, then when Atom exits it could ask for "good", "bad", "reset" or "quit". It would perform a binary search of the packages until only one package is left and is marked bad (the most likely scenario) telling the user which package it is.
Hey guys, I have a new strategy for finding broken packages. I've wanted to fumble more with the chromium tools earlier, but never got around to it.
In my particular case, I had a very vague error:
Uncaught SyntaxError: Unexpected token u
This was in some index.html:1 (nothing in file... great).
Useless.
BUT, when I go to the Audits tab, and select 'Reload Page and Audit on Load' -> Run
I got the exact line of the offending package... (recent-projects.coffee:17)
Side note: I've used recent-projects for a while, and I tried to do apm install recent-packages and reload but wasn't able to fix it, so disabling it for now).
We can set this on and try to recreate the action. I wonder if this will appropriately handle the majority of cases. Time will tell!
I'm sure a bunch of people have already been doing this!
@LEEDOHM has pointed out my package-cop package and its readme are
bloated and overly complex. If no one does a competing package I'll trim
mine down to basics. It should be usable now if not a little painful to
learn.
I have no trouble understanding it and use it all the time (grin).
On Tue, Jan 6, 2015 at 5:18 PM, Desmond Brand [email protected]
wrote:
Gotta say, the package-cop readme gif kinda scared me off... I just want to bisect a few packages, not learn how to use Bugzilla. :) A leaner version sounds great.
(edit: actually, that's unfair. package-cop is far more interactive and pleasant looking. I just mean the feeling of: where do I start filling this out?)
package-cop just helped me narrow down a weird issue in record time - thanks so much @mark-hahn for writing it, and @dmnd for mentioning it in these comments :)
Activity
ilanbiala commentedon Oct 11, 2014
I like the idea, but it would have to test a decent amount, if not all of the commands in each package, no?
lee-dohm commentedon Oct 11, 2014
No, if you have a set of repro steps for whatever the problem is, then this is the procedure:
atom bisect startatom bisect goodoratom bisect badas appropriateWhether you have a manual test or an automated test, the bisect strategy works.
ilanbiala commentedon Oct 11, 2014
That's true.
DavidLGoldberg commentedon Oct 13, 2014
Hey guys, I have a new strategy for finding broken packages. I've wanted to fumble more with the chromium tools earlier, but never got around to it.
In my particular case, I had a very vague error:
Uncaught SyntaxError: Unexpected token u
This was in some index.html:1 (nothing in file... great).
Useless.
BUT, when I go to the Audits tab, and select 'Reload Page and Audit on Load' -> Run
I got the exact line of the offending package... (recent-projects.coffee:17)
Side note: I've used recent-projects for a while, and I tried to do apm install recent-packages and reload but wasn't able to fix it, so disabling it for now).
We can set this on and try to recreate the action. I wonder if this will appropriately handle the majority of cases. Time will tell!
I'm sure a bunch of people have already been doing this!
mark-hahn commentedon Oct 18, 2014
FYI: I'm starting a package to bisect the enabling of packages as this thread requested. If anyone else is working on this let me know.
DavidLGoldberg commentedon Nov 25, 2014
@mark-hahn Awesome!
mark-hahn commentedon Nov 25, 2014
I was talked out of it by @lee-dohm. He wants to wait and let the core team do it. I could have used it many times since then (grin).
lee-dohm commentedon Nov 25, 2014
I didn't mean to talk you out of doing it ... I just thought it should be part of Atom Core, not a separate package.
mark-hahn commentedon Nov 25, 2014
I'll put it back on my list. Maybe the team will want it to be in core.
On Mon, Nov 24, 2014 at 8:56 PM, Lee Dohm [email protected] wrote:
dmnd commentedon Jan 7, 2015
The bisect package @mark-hahn made is released and it's called package-cop
(I googled for "atom package bisect" and ended up here, but didn't see it linked earlier)
mark-hahn commentedon Jan 7, 2015
@LEEDOHM has pointed out my
package-coppackage and its readme arebloated and overly complex. If no one does a competing package I'll trim
mine down to basics. It should be usable now if not a little painful to
learn.
I have no trouble understanding it and use it all the time (grin).
On Tue, Jan 6, 2015 at 5:18 PM, Desmond Brand [email protected]
wrote:
bronson commentedon Jul 4, 2015
Gotta say, the package-cop readme gif kinda scared me off... I just want to bisect a few packages, not learn how to use Bugzilla. :) A leaner version sounds great.
(edit: actually, that's unfair. package-cop is far more interactive and pleasant looking. I just mean the feeling of: where do I start filling this out?)
monkpit commentedon Apr 26, 2016
package-cop just helped me narrow down a weird issue in record time - thanks so much @mark-hahn for writing it, and @dmnd for mentioning it in these comments :)
Zireael07 commentedon Sep 18, 2018
Bump, is that going to happen?
sadick254 commentedon Oct 7, 2020
package-copseem to solve this use case very well. I am going to close this issue in favour of using thepackage-coppackage.