Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Upgrade to Require 2.1.1 and catch errors during extension loading #1968

Merged
merged 2 commits into from
Oct 29, 2012

Conversation

peterflynn
Copy link
Member

This ensures APP_READY fires even if an extension is broken.

Also: ensure APP_READY fires in the event the entire extensions dir is inaccessible; and improve reporting of exceptions thrown by APP_READY or HTML_READY handlers.

…oading

(ensuring APP_READY fires even if an extension is broken).

Also: ensure APP_READY fires in the event the entire extensions dir is
inaccessible; and improve reporting of exceptions thrown by APP_READY or
HTML_READY handlers.
@peterflynn
Copy link
Member Author

Note: this breaks the PhoneGap Build plugin because it's using a RequireJS API that was removed in 2.x. I've put up a pull request to fix it: adobe/brackets-phonegap#27.

@ghost ghost assigned gruehle Oct 27, 2012
console.log("Exception when calling a 'brackets done loading' handler");
console.log(e);
console.error("Exception when calling a 'brackets done loading' handler:");
console.error(e.stack);
Copy link
Member

Choose a reason for hiding this comment

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

Do both of these lines need to be console.error()? If an exception is thrown, it shows up as 2 errors in the console.

@gruehle
Copy link
Member

gruehle commented Oct 27, 2012

Done with initial review. I've been running this branch for a while now and everything is working great (except the phonegap build plugin, as you noted).

I wonder if the stack dumps should be console.log() instead of console.error(). The preceding line is always an error anyway, so I don't think we need an additional error badge.

Fix JSLint error that was introduced by 301289b.
@peterflynn
Copy link
Member Author

Changes pushed. I also fixed a JSLint warning I happened to notice in an unrelated unit test file.

@gruehle
Copy link
Member

gruehle commented Oct 29, 2012

Looks good. Merging.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants