Issue 1:
[Enter steps to reproduce below:]

I was on a Unsaved File and I used Ctrl+W to close it.

Atom Version: 0.186.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: Cannot find module 'dialog'

Error: Cannot find module 'dialog'

at Function.Module._resolveFilename (module.js:351:15)

at Function.Module._load (module.js:293:25)

at Module.require (module.js:380:17)

at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)

at EventEmitter.emit (events.js:119:17)

at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)

at EventEmitter.emit (events.js:119:17)

At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77

Error: Cannot find module 'dialog'
Error: Cannot find module 'dialog'
at Function.Module._resolveFilename (module.js:351:15)
at Function.Module._load (module.js:293:25)
at Module.require (module.js:380:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)
at EventEmitter.emit (events.js:119:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)
at EventEmitter.emit (events.js:119:17)
at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15)
at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34)
at Atom.module.exports.Atom.confirm (/Applications/Atom.app/Contents/Resources/app/src/atom.js:705:23)
at Pane.module.exports.Pane.promptToSaveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:507:21)
at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:456:18)
at Pane.module.exports.Pane.destroyActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:436:12)
at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:697:35)
at Workspace.module.exports.Workspace.destroyActivePaneItemOrEmptyPane (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:741:21)
at atom-workspace.atom.commands.add.core:close (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:292:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)

Commands

-0:30.4 core:select-all (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
-0:30.2 core:copy (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
-0:01.8 core:close (atom-text-editor.editor.vim-mode.insert-mode.is-focused)

Config

{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"editor": {
"invisibles": {}
}
}

Installed Packages

# User
autocomplete-plus, v2.4.2
vim-mode, v0.38.0

# Dev
No dev packages

Issue 2:
[Enter steps to reproduce below:]

Right-click a file in the left column. (The file I used was green, not added to Git, and empty.)

Click Delete.

Atom Version: 0.186.0

System: Mac OS X 10.10.2

Thrown From: tree-view package, v0.164.0

Stack Trace

Uncaught Error: Cannot find module 'dialog'

Error: Cannot find module 'dialog'

at Function.Module._resolveFilename (module.js:351:15)

at Function.Module._load (module.js:293:25)

at Module.require (module.js:380:17)

at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)

at EventEmitter.emit (events.js:119:17)

at EventEmitter. (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)

at EventEmitter.emit (events.js:119:17)

At /Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77

Error: Cannot find module 'dialog'
Error: Cannot find module 'dialog'
at Function.Module._resolveFilename (module.js:351:15)
at Function.Module._load (module.js:293:25)
at Module.require (module.js:380:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79)
at EventEmitter.emit (events.js:119:17)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23)
at EventEmitter.emit (events.js:119:17)
at metaToValue (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:77:15)
at Object.exports.require (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:157:34)
at Atom.module.exports.Atom.confirm (/Applications/Atom.app/Contents/Resources/app/src/atom.js:705:23)
at TreeView.module.exports.TreeView.removeSelectedEntries (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/tree-view.js:895:19)
at atom-workspace.disposables.add.atom.commands.add.tree-view:remove (/Applications/Atom.app/Contents/Resources/app/node_modules/tree-view/lib/main.js:84:39)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)
at jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:80:67)

Commands

6x -4:21.1 core:move-up (atom-text-editor.editor)
-4:19.1 core:move-left (atom-text-editor.editor)
-4:15.5 core:save (atom-text-editor.editor)
-2:19.6 core:backspace (atom-text-editor.editor)
3x -2:17.4 core:move-right (atom-text-editor.editor)
2x -2:07.9 editor:move-to-first-character-of-line (atom-text-editor.editor)
-2:07.4 core:select-down (atom-text-editor.editor)
-2:06.5 core:copy (atom-text-editor.editor)
-2:04.1 core:move-up (atom-text-editor.editor)
-2:03.9 core:move-down (atom-text-editor.editor)
-2:03.7 core:select-down (atom-text-editor.editor)
-2:03.4 core:copy (atom-text-editor.editor)
2x -2:00.7 editor:move-to-first-character-of-line (atom-text-editor.editor)
3x -2:00.3 core:select-down (atom-text-editor.editor)
-1:59.8 core:paste (atom-text-editor.editor)
3x -1:58.7 core:save (atom-text-editor.editor)

Config

{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
],
"destroyEmptyPanes": false
},
"tree-view": {}
}

Installed Packages

# User
language-haml, v0.15.0

# Dev
No dev packages