accodeing / copy-with-style

An Atom package that allows you to copy syntax highlighted code to the clipboard.
MIT License
7 stars 11 forks source link

Uncaught TypeError: Cannot read property 'buffer' of undefined #15

Closed JamesABaker closed 2 years ago

JamesABaker commented 5 years ago

[Enter steps to reproduce:]

  1. Open any file type
  2. select text
  3. press alt+a 1

Atom: 1.34.0 x64 Electron: 2.0.16 OS: Mac OS X 10.14.2 Thrown From: copy-with-style package 1.1.0

Stack Trace

Uncaught TypeError: Cannot read property 'buffer' of undefined

At /Users/bakerjames/.atom/packages/copy-with-style/lib/atom_editor.js:21

TypeError: Cannot read property 'buffer' of undefined
    at /packages/copy-with-style/lib/atom_editor.js:21:41)
    at HTMLgenerator.generate (/packages/copy-with-style/lib/html_generator.js:58:5)
    at Object.copy (/packages/copy-with-style/lib/main.js:58:68)
    at HTMLElement.copyWithStylePreset1 (/packages/copy-with-style/lib/main.js:19:45)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350017)
    at KeymapManager.t.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1212945)
    at KeymapManager.t.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1209079)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:285196)

Commands

     -6:40 copy-with-style:copy (atom-text-editor.editor.is-focused.has-selection)
 25x -6:20.4.0 core:backspace (input.hidden-input)
     -5:14.7.0 editor:consolidate-selections (input.hidden-input)
     -5:14.7.0 core:cancel (input.hidden-input)
     -5:10.4.0 core:backspace (input.hidden-input)
     -4:47.9.0 core:select-all (input.hidden-input)
     -4:33.7.0 core:backspace (input.hidden-input)
     -4:01.3.0 core:copy (atom-text-editor.editor.is-focused.has-selection)
     -3:30.7.0 copy-with-style:copy (atom-text-editor.editor.is-focused.has-selection)
  2x -0:36 copy-with-style:preset1 (atom-text-editor.editor.is-focused.has-selection)

Non-Core Packages

atom-beautify 0.33.4 
copy-with-style 1.1.0 
language-gitignore 0.3.0 
language-latex 1.2.0 
markdown-pdf 2.2.0 
minimap 4.29.9 
pdf-view 0.71.0