Repository navigation
Allow user to rebuild incompatible packages against the current version of Atom - #9
Conversation
|
Awesome, thanks so much for getting this going 👍 |
6050a8c to
866938c
Compare
4469fe8 to
f25c670
Compare
Signed-off-by: Max Brunsfeld <[email protected]>
|
@simurai Heads up... I'm going to do this kinda ugly and ask for you to swoop in with some design sauce. I have a decent amount of the logic in place. The basic flow is as follows:
Also, if you whip up a mockup of some sort I could also just implement it. |
|
@nathansobo I think you already started. I can brush over it on Mon/Tue. You don't have to worry about styling as long as it works. |
|
I added an animated GIF to first comment to illustrate today's progress. Almost there except for the interaction following build failure. @thomasjo If you want to work on adding back the buttons to uninstall upgrade and create issues, that would be 🏀er. I'm thinking we shouldn't display the create issue button unless we know the user is up to date... I updated the checklist accordingly and added some hints about testing this in dev mode to the body. |
|
Oh, I almost forgot, this depends on APIs introduced in atom/atom#8475. |
|
Kinda hit a roadblock since there's no API for either uninstalling packages or checking for updates. All of that stuff is located in the settings-view (and apm of course). Do we simply want to copy and paste the relevant code from settings-view, or should we expose it somehow? Current behavior is simply to offer ability to check for updates, report issue, and disable the package. |
|
How do we want to deal with linked packages? I'm assuming we won't check for updates for those packages, so should we always display a Report Issue button in that case? And what about the uninstall button? Should we display a Disable button instead when the package is linked instead of installed? |
Doesn't do anything yet, since we have no standard API for uninstalling packages (nor checking for available updates).
2e9722f to
d441fc6
Compare
There was a problem hiding this comment.
@nathansobo 🔥 This method? It's no longer being used.
|
@nathansobo Got
Did I miss something else? It looks the same as @lee-dohm's error here: atom/atom#7877 (comment) |
|
@simurai Ah shit I rebased on top of the Electron upgrade for testing everything combined. |
|
@nathansobo Will the Electron upgrade land in master soon? Or will this PR go first? I can try to rebase too, although I somehow already messed up Atom with switching branches.
Based on the gif.. ya, the badges might look a bit like they could be buttons and not just some status indicator. Maybe the badges could only be used for the icons and not include the text. But that can also be changed later, after this shipped. |
|
Electron upgrade will be landing very soon. Let's just wait until then to proceed with styling changes. |
|
The build fails against the current release, but we need to bundle this to cut a new release, so I'm just going to merge due to this passing locally. |
Allow user to rebuild incompatible packages against the current version of Atom

This PR depends on core APIs introduced in atom/atom#8475.
Tasks
Testing Tips
The easiest way to make an incompatible package is to take a package that has native dependencies and run
npm rebuildto compile it against the Node headers. I use the following:spell-checkdev-live-reloadMake sure you're checked out to0.46.0.For both these packages do the following:
rm -rf node_modulesapm installnpm rebuildapm link -dNow both should show up in your incompatible packages listing in dev mode.
To create a build failure, add some random syntax error in
spell-check/node_modules/spellchecker/src/main.ccbefore rebuilding. Be aware: The rebuild failure will be persisted until the next time you click rebuild.