lucasmazza / copy-as-rtf

A package to export highlighted code as RTF
Other
19 stars 14 forks source link

Failed to activate the copy-as-rtf package #31

Closed cbuteau closed 8 years ago

cbuteau commented 8 years ago

[Enter steps to reproduce below:]

  1. Download zip from https://github.com/lucasmazza/copy-as-rtf/releases
  2. Put unzipped folder in Atom config/packages folder...
  3. Start Atom.

I was hoping to add copy past code segments to my new favorite code editor. Oh Well.

Atom Version: 1.7.2 System: Microsoft Windows 7 Enterprise Thrown From: copy-as-rtf package, v0.9.3

Stack Trace

Failed to activate the copy-as-rtf package

At Cannot find module 'pygmentize-bundled'

Error: Cannot find module 'pygmentize-bundled'
    at Module._resolveFilename (module.js:338:15)
    at Function.Module._resolveFilename (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.<anonymous> (file:///C:/Users/cbu1/.atom/packages/copy-as-rtf-0.9.3/lib/copy-as-rtf.coffee:1:14)
    at Object.<anonymous> (file:///C:/Users/cbu1/.atom/packages/copy-as-rtf-0.9.3/lib/copy-as-rtf.coffee:1:1)
    at Module._compile (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\native-compile-cache.js:50:27)
    at Package.module.exports.Package.requireMainModule (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:715:27)
    at Package.module.exports.Package.activateNow (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:173:16)
    at C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:795:25
    at Function.module.exports.Emitter.simpleDispatch (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\event-kit\lib\emitter.js:125:28)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\command-registry.js:241:20)
    at CommandRegistry.handleCommandEvent (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\src\command-registry.js:160:19)
    at ToolbarView.module.exports.ToolbarView.executeCmd (file:///C:/Users/cbu1/.atom/packages/command-toolbar/lib/toolbar-view.coffee:166:21)
    at ToolbarView.module.exports.ToolbarView.btnClick (file:///C:/Users/cbu1/.atom/packages/command-toolbar/lib/toolbar-view.coffee:171:6)
    at space-pen-div.<anonymous> (file:///C:/Users/cbu1/.atom/packages/command-toolbar/lib/toolbar-view.coffee:283:55)
    at space-pen-div.jQuery.event.dispatch (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at space-pen-div.elemData.handle (C:\Users\cbu1\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands

     -0:06.1.0 copy-as-rtf:copy (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
command-toolbar, v1.0.12
DsDevTools, vundefined
linter, v1.11.4
linter-jshint, v2.1.0
linter-jsonlint, v1.2.2
minimap, v4.21.0

# Dev
No dev packages
steak3 commented 8 years ago

Hello, Since this package have dependencies (like pygmentize-bundled), I guess you have to install them manually too (it can be tricky sometimes).

Then, why don't you install it through the Atom package settings? It makes it far more simpler.

cbuteau commented 7 years ago

Thanks that seemed to work. I couldn't find it in the package manager before which is why I went the other route.