-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Tried to write my own macro using above function.
- pth = getCurrentProjectPath()
Atom: 1.21.1 x64
Electron: 1.6.15
OS: Mac OS X 10.13
Thrown From: atom-macros package 0.5.2
Stack Trace
Uncaught TypeError: Cannot read property 'getUri' of undefined
At /Users/jorjun/.atom/macros.coffee:23
TypeError: Cannot read property 'getUri' of undefined
at getCurrentFilePath (/Users/jorjun/.atom/macros.coffee:23:41)
at Function.previewPage (/Users/jorjun/.atom/macros.coffee:45:24)
at /packages/atom-macros/lib/macros.coffee:133:16)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:381:36)
at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:266:23)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1348:34)
at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:335:31)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
Commands
-7:11.4.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling)
-0:12.2.0 macros:previewPage (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
Non-Core Packages
atom-beautify 0.30.5
atom-macros 0.5.2
busy 0.7.0
busy-signal 1.4.3
color-picker 2.2.5
emmet 2.4.3
file-icons 2.1.13
highlight-selected 0.13.1
intentions 1.1.5
language-typescript-grammars-only 1.6.0
linter 2.2.0
linter-jshint 3.1.6
linter-sass-lint 1.8.3
linter-ui-default 1.6.10
minimap 4.29.7
minimap-find-and-replace 4.5.2
minimap-highlight-selected 4.6.1
minimap-pigments 0.2.2
minimap-selection 4.5.0
pigments 0.40.2
sass-autocompile 0.13.3
tag 0.5.0
todo-show 2.1.0
`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels