-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
[Enter steps to reproduce:]
- define the following macro (copy paste from documentation):
@openInExplorer = ->
open getCurrentProjectPath()
- run it
Atom: 1.23.3 x64
Electron: 1.6.15
OS: Ubuntu 16.04.3
Thrown From: atom-macros package 0.5.2
Stack Trace
Uncaught TypeError: atom.project.getPath is not a function
At /home/tal/.atom/macros.coffee:31
TypeError: atom.project.getPath is not a function
at getCurrentProjectPath (/home/tal/.atom/macros.coffee:31:25)
at Function.openInExplorer (/home/tal/.atom/macros.coffee:107:17)
at /packages/atom-macros/lib/macros.coffee:133:16)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:388:36)
at Object.didConfirmSelection (/usr/share/atom/resources/app/node_modules/command-palette/lib/command-palette-view.js:143:35)
at SelectListView.confirmSelection (/usr/share/atom/resources/app/node_modules/command-palette/node_modules/atom-select-list/src/select-list-view.js:327:26)
at HTMLDivElement.core:confirm (/usr/share/atom/resources/app/node_modules/command-palette/node_modules/atom-select-list/src/select-list-view.js:84:20)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:388:36)
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
Commands
-0:04.9.0 command-palette:toggle (input.hidden-input)
-0:03.7.0 core:backspace (input.hidden-input)
-0:02.6.0 core:confirm (input.hidden-input)
-0:02.6.0 macros:openInExplorer (input.hidden-input)
Non-Core Packages
atom-cscope 1.0.1
atom-macros 0.5.2
chmod 0.1.1
ctrl-dir-scroll 0.2.5
git-blame 1.4.0
git-plus 7.10.0
goto-definition 1.3.4
highlight-selected 0.13.1
jumpy 4.2.0
language-diff 0.7.0
language-groovy 0.7.0
language-log 1.9.0
language-systemd 0.1.1
multi-cursor 2.1.5
multi-cursor-plus 1.2.0
open-files 0.8.2
revert-buffer 0.6.0
split-diff 1.5.1
sync-settings 0.8.3
tab-smart-sort 0.3.0
terminal-plus 0.14.5
tree-view-panes 0.3.7
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels