JoelBesada / activate-power-mode

Atom package - Activate POWER MODE to write your code in style.
MIT License
3.59k stars 423 forks source link

Uncaught TypeError: this.file.handle is not a function #312

Open mengdodo opened 7 years ago

mengdodo commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.20.0 x64 Electron: 1.6.9 OS: Mac OS X 10.11.3 Thrown From: activate-power-mode package 2.5.0

Stack Trace

Uncaught TypeError: this.file.handle is not a function

At /Users/nemo/.atom/packages/activate-power-mode/lib/flow/user-file.coffee:19

TypeError: this.file.handle is not a function
    at Object.handle (/packages/activate-power-mode/lib/flow/user-file.coffee:19:11)
    at Object.runOnInput (/packages/activate-power-mode/lib/plugin-manager.coffee:97:24)
    at /packages/activate-power-mode/lib/power-editor.coffee:54:22

Commands

  2x -5:24.9.0 core:backspace (input.hidden-input)
     -5:18.1.0 activate-power-mode:toggle (input.hidden-input)
  9x -5:15.9.0 core:backspace (input.hidden-input)
     -4:53.2.0 activate-power-mode:select-effect (input.hidden-input)
     -4:45.2.0 activate-power-mode:toggle (input.hidden-input)
  2x -4:41 core:backspace (input.hidden-input)
     -4:31 activate-power-mode:select-effect (input.hidden-input)
     -4:25.6.0 activate-power-mode:select-flow (input.hidden-input)
     -4:22.7.0 core:backspace (input.hidden-input)
  3x -4:04.4.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -0:29.3.0 activate-power-mode:disable (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
  3x -0:27 core:backspace (input.hidden-input)
     -0:22.8.0 core:save (input.hidden-input)
     -0:16.1.0 activate-power-mode:reset-max-combo (input.hidden-input)
     -0:11.9.0 activate-power-mode:enable (input.hidden-input)
     -0:09.6.0 core:backspace (input.hidden-input)

Non-Core Packages

activate-power-mode 2.5.0 
atom-runner 2.7.1 
autocomplete-python 1.10.2 
emmet 2.4.3 
hyperclick 0.1.5 
lexcast commented 7 years ago

Hi @mengdodo You need to define a handle function in your flow file. https://github.com/JoelBesada/activate-power-mode/wiki/Flow#flow-object