Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCurrentProjectPath() #15

Open
jorjun opened this issue Oct 25, 2017 · 0 comments
Open

getCurrentProjectPath() #15

jorjun opened this issue Oct 25, 2017 · 0 comments

Comments

@jorjun
Copy link

jorjun commented Oct 25, 2017

Tried to write my own macro using above function.

  1. 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 

`

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

No branches or pull requests

1 participant