thomaslindstrom / color-picker

A color picker for the Atom Editor. Right click a color and select color picker to open it.
MIT License
246 stars 50 forks source link

i get some issue about colorpicker,who can help me #246

Open ghostgorge opened 5 years ago

ghostgorge commented 5 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.3.2 System: Unknown Windows Version Thrown From: color-picker package, v2.3.0

Stack Trace

Uncaught TypeError: Editor.getElement is not a function

At /C:/Users/Administrator/.atom/packages/color-picker/lib/ColorPicker-view.coffee:315

TypeError: Editor.getElement is not a function
    at Object.open (file:///C:/Users/Administrator/.atom/packages/color-picker/lib/ColorPicker-view.coffee:262:36)
    at atom-text-editor.<anonymous> (file:///C:/Users/Administrator/.atom/packages/color-picker/lib/ColorPicker.coffee:47:23)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\app.asar\src\command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\app.asar\src\command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\app.asar\src\atom-environment.js:1016:28)
    at emitTwo (events.js:87:13)
    at EventEmitter.emit (events.js:172:7)
    at EventEmitter.ipc.sendSync (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\atom.asar\renderer\api\lib\ipc.js:21:31)
    at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\atom.asar\renderer\api\lib\remote.js:143:29)
    at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\app.asar\src\context-menu-manager.js:156:33)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentContextmenu (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\app.asar\src\window-event-handler.js:250:47)
    at HTMLDocument.<anonymous> (C:\Users\Administrator\AppData\Local\atom\app-1.3.2\resources\app.asar\src\window-event-handler.js:3:61)

Commands

     -4:51.3.0 emmet:expand-abbreviation-with-tab (atom-text-editor.editor.is-focused.autocomplete-active)
     -4:47.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -4:36.6.0 color-picker:open (atom-text-editor.editor.is-focused.autocomplete-active)
 41x -3:29.7.0 editor:delete-to-beginning-of-subword (atom-text-editor.editor.is-focused)
     -3:07.7.0 color-picker:open (atom-text-editor.editor.is-focused)
  3x -2:44.5.0 find-and-replace:use-selection-as-find-pattern (atom-text-editor.editor.is-focused)
  2x -2:38.5.0 editor:fold-selection (atom-text-editor.editor.is-focused)
     -2:05.9.0 autoflow:reflow-selection (atom-text-editor.editor.is-focused)
     -2:05.2.0 editor:delete-to-end-of-subword (atom-text-editor.editor.is-focused)
     -2:04.4.0 find-and-replace:select-next (atom-text-editor.editor.is-focused)
     -2:04.4.0 core:select-all (atom-text-editor.editor.is-focused)
     -2:03.8.0 find-and-replace:select-next (atom-text-editor.editor.is-focused)
     -2:03.1.0 editor:delete-to-end-of-subword (atom-text-editor.editor.is-focused)
     -2:01.9.0 autoflow:reflow-selection (atom-text-editor.editor.is-focused)
     -0:51.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
  2x -0:29.6.0 color-picker:open (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "base16-tomorrow-dark-theme"
    ],
    "disabledPackages": [
      "atom-live-server"
    ]
  },
  "color-picker": {
    "abbreviateValues": true,
    "triggerKey": "K"
  }
}

Installed Packages

# User
atom-bootstrap4, v1.4.0
atom-chs-menu, v1.0.0
atom-electron-snippets, v2.0.3
color-picker, v2.3.0
emmet, v2.4.3
simplified-chinese-menu, v5.3.5
v-bootstrap4, v0.2.2

# Dev
No dev packages