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

Uncaught TypeError: editor.getPath is not a function #81

Open
HaNaK0 opened this issue Nov 28, 2017 · 0 comments
Open

Uncaught TypeError: editor.getPath is not a function #81

HaNaK0 opened this issue Nov 28, 2017 · 0 comments

Comments

@HaNaK0
Copy link

HaNaK0 commented Nov 28, 2017

[Enter steps to reproduce:]

1.Open a document for edit
2. Going to Packages -> Perforce -> Revert

Atom: 1.22.1 x64
Electron: 1.6.15
OS: Microsoft Windows 10 Enterprise
Thrown From: atom-perforce package 1.7.11

Stack Trace

Uncaught TypeError: editor.getPath is not a function

At C:\Users\hhuledal\.atom\packages\atom-perforce\lib\atom-perforce.js:389

TypeError: editor.getPath is not a function
    at Object.revert (/packages/atom-perforce/lib/atom-perforce.js:389:49)
    at HTMLElement.revertReset (/packages/atom-perforce/main.js:166:25)
    at /packages/atom-perforce/main.js:158:19)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.22.1/resources/app/src/command-registry.js:381:36)
    at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.22.1/resources/app/src/command-registry.js:266:23)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (~/AppData/Local/atom/app-1.22.1/resources/app/src/atom-environment.js:1382:34)
    at EventEmitter.outerCallback (~/AppData/Local/atom/app-1.22.1/resources/app/src/application-delegate.js:335:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -0:56.9.0 editor:newline (input.hidden-input)
     -0:51.9.0 snippets:next-tab-stop (input.hidden-input)
     -0:51.9.0 snippets:expand (input.hidden-input)
     -0:51.9.0 editor:indent (input.hidden-input)
  3x -0:48 core:backspace (input.hidden-input)
     -0:43.2.0 editor:newline (input.hidden-input)
     -0:34.7.0 core:backspace (input.hidden-input)
     -0:27.7.0 core:move-right (input.hidden-input)
 15x -0:27.3.0 core:backspace (input.hidden-input)
 12x -0:24.9.0 core:undo (input.hidden-input)
     -0:10.6.0 perforce:revert (div.tool-panel.tree-view)

Non-Core Packages

atom-perforce 1.7.11 
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