Skip to content

don't crash the app on non-macOS and non-Windows platforms - #2807

Merged
joshaber merged 2 commits into
masterfrom
dont-crash-the-launch-process
Sep 21, 2017
Merged

joshaber merged 2 commits into
masterfrom
dont-crash-the-launch-process

Conversation

@shiftkey

@shiftkey shiftkey commented Sep 20, 2017 •

Copy link
Copy Markdown
Member

This was introduced in #2407 as fallback behaviour where we hadn't implemented a way to resolve available editors on an given platform.

Unfortunately in #2611 these checks were now performed in AppStore.loadInitialState(), so the error wasn't handled which meant it would fail before it had a chance to show some UI about the error.

For now I've swapped this out to a warning and empty list, which has the same result but with 100% less crashing.

There's also some unused code in here that I've 🔥d.

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 20, 2017
Comment thread app/src/lib/editors/lookup.ts Outdated
}

return Promise.reject(
log.warn(

This comment was marked as spam.

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch 👍

@joshaber
joshaber merged commit 0181d41 into master Sep 21, 2017
@joshaber
joshaber deleted the dont-crash-the-launch-process branch September 21, 2017 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants