Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@lee-dohm

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.

Activity

  1. ilanbiala commented on Oct 11, 2014

    @ilanbiala

    I like the idea, but it would have to test a decent amount, if not all of the commands in each package, no?

  2. lee-dohm commented on Oct 11, 2014

    @lee-dohm
    ContributorAuthor

    No, if you have a set of repro steps for whatever the problem is, then this is the procedure:

    1. atom bisect start
    2. Repeat until done
      1. Wait for Atom to launch with some subset of your normal packages
      2. Execute your repro steps
      3. See if the problem reoccurs
      4. Execute atom bisect good or atom bisect bad as appropriate

    Whether you have a manual test or an automated test, the bisect strategy works.

  3. ilanbiala commented on Oct 11, 2014

    @ilanbiala

    That's true.

  4. DavidLGoldberg commented on Oct 13, 2014

    @DavidLGoldberg

    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!

  5. mark-hahn commented on Oct 18, 2014

    @mark-hahn
    Contributor

    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.

  6. DavidLGoldberg commented on Nov 25, 2014

    @DavidLGoldberg

    @mark-hahn Awesome!

  7. mark-hahn commented on Nov 25, 2014

    @mark-hahn
    Contributor

    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).

  8. lee-dohm commented on Nov 25, 2014

    @lee-dohm
    ContributorAuthor

    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.

  9. mark-hahn commented on Nov 25, 2014

    @mark-hahn
    Contributor

    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:

    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.

    —
    Reply to this email directly or view it on GitHub
    #2357 (comment).

  10. dmnd commented on Jan 7, 2015

    @dmnd
    Contributor

    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)

  11. mark-hahn commented on Jan 7, 2015

    @mark-hahn
    Contributor

    @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:

    The bisect package @mark-hahn https://github.com/mark-hahn made is
    released and it's called package-cop
    https://atom.io/packages/package-cop

    (I googled for "atom package bisect" and ended up here, but didn't see it
    linked earlier)

    —
    Reply to this email directly or view it on GitHub
    #2357 (comment).

  12. bronson commented on Jul 4, 2015

    @bronson

    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?)

  13. monkpit commented on Apr 26, 2016

    @monkpit

    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 :)

  14. Zireael07 commented on Sep 18, 2018

    @Zireael07

    Bump, is that going to happen?

  15. sadick254 commented on Oct 7, 2020

    @sadick254
    Contributor

    package-cop seem to solve this use case very well. I am going to close this issue in favour of using the package-cop package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions