From ef68fd24d52cb2a9ccaa1e74f9201aaa61b96b59 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Wed, 6 Nov 2013 18:09:05 -0800 Subject: [PATCH 1/4] Log open exception stack to console --- src/root-view.coffee | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/root-view.coffee b/src/root-view.coffee index b482ef6b7..4d2ad289a 100644 --- a/src/root-view.coffee +++ b/src/root-view.coffee @@ -179,15 +179,18 @@ class RootView extends View editSession = activePane.itemForUri(project.relativize(filePath)) if activePane and filePath promise = project.open(filePath, {initialLine}) if not editSession - Q(editSession ? promise).then (editSession) => - if not activePane - activePane = new Pane(editSession) - @panes.setRoot(activePane) + Q(editSession ? promise) + .then (editSession) => + if not activePane + activePane = new Pane(editSession) + @panes.setRoot(activePane) - activePane.showItem(editSession) - activePane.focus() if changeFocus - @trigger "uri-opened" - editSession + activePane.showItem(editSession) + activePane.focus() if changeFocus + @trigger "uri-opened" + editSession + .catch (error) -> + console.error(error.stack ? error) # Private: Only used in specs openSync: (uri, {changeFocus, initialLine, pane, split}={}) -> From 55c5ae926cb1e75169b4bcf2511601d2c7c37f31 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Wed, 6 Nov 2013 18:09:24 -0800 Subject: [PATCH 2/4] Create telepath string with replicate: false option --- src/text-buffer.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-buffer.coffee b/src/text-buffer.coffee index f08d4f489..da5d9acf1 100644 --- a/src/text-buffer.coffee +++ b/src/text-buffer.coffee @@ -50,7 +50,7 @@ class TextBuffer @useSerializedText = @state.get('isModified') != false else {@project, filePath} = optionsOrState - @text = new telepath.MutableString(initialText ? '') + @text = new telepath.String(initialText ? '', replicated: false) @id = guid.create().toString() @state = site.createDocument id: @id From 5d56365c2600a01fa37be6d3c7252e971df168dc Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Wed, 6 Nov 2013 18:10:51 -0800 Subject: [PATCH 3/4] Upgrade to telepath@0.22.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 87a10ea48..2d8cc54f7 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "season": "0.14.0", "semver": "1.1.4", "space-pen": "2.0.0", - "telepath": "0.21.0", + "telepath": "0.22.0", "temp": "0.5.0", "underscore-plus": "0.2.0" }, From 56c88820d62fd7fbc79cfbe098518dd74a69c3dc Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 7 Nov 2013 10:27:07 -0700 Subject: [PATCH 4/4] Upgrade to telepath 0.23.0 to deal gracefully w/ outdated window state --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2d8cc54f7..a348a1bf2 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "season": "0.14.0", "semver": "1.1.4", "space-pen": "2.0.0", - "telepath": "0.22.0", + "telepath": "0.23.0", "temp": "0.5.0", "underscore-plus": "0.2.0" },