Code Monkey home page Code Monkey logo

atom-screenshot's People

Contributors

dependabot[bot] avatar khlevnov avatar lexanth avatar meyfa avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atom-screenshot's Issues

Error when Show Wrap Guide is disabled (Uncaught TypeError: Cannot read property 'style' of null)

[Enter steps to reproduce:]

  1. Disable "show wrap guide" (This error doesn't happen with "show wrap guide" enabled)
  2. Use "Take Code Screenshot"

Atom: 1.35.1 x64
Electron: 2.0.18
OS: Microsoft Windows 7 Professional
Thrown From: screenshot package 0.3.0

Stack Trace

Uncaught TypeError: Cannot read property 'style' of null

At C:\Users\msi\AppData\Local\atom\.atom\packages\screenshot\lib\capturer.js:120

TypeError: Cannot read property 'style' of null
    at Capturer.hideWrapGuide (/packages/screenshot/lib/capturer.js:120:15)
    at Capturer.captureStartingAt (/packages/screenshot/lib/capturer.js:62:12)
    at next (/packages/screenshot/lib/capturer.js:25:12)
    at Capturer.captureRange (/packages/screenshot/lib/capturer.js:42:5)
    at /packages/screenshot/lib/screenshot.js:83:21
    at CallbacksRegistry.apply (~/AppData/Local/atom/app-1.35.1/resources/electron.asar/common/api/callbacks-registry.js:47:25)
    at EventEmitter.ipcRenderer.on (~/AppData/Local/atom/app-1.35.1/resources/electron.asar/renderer/api/remote.js:277:21)
    at emitMany (events.js:147:13)
    at EventEmitter.emit (events.js:224:7)

Commands

  2x -7:26.5.0 window:toggle-menu-bar (ul.list-inline.tab-bar.inset-panel)
  3x -7:13 editor:newline (input.hidden-input)
     -7:09.2.0 core:save (input.hidden-input)
     -7:05.7.0 core:backspace (input.hidden-input)
     -7:05.0 snippets:next-tab-stop (input.hidden-input)
     -7:05.0 snippets:expand (input.hidden-input)
     -7:05.0 editor:indent (input.hidden-input)
     -7:04.5.0 core:save (input.hidden-input)
  4x -7:00.7.0 core:backspace (input.hidden-input)
  2x -0:17 core:save (input.hidden-input)
  2x -0:14.9.0 screenshot:take (input.hidden-input)

Non-Core Packages

atom-clock 0.1.16 
atom-notifier 0.7.0 
autoclose-html 0.23.0 
autocomplete-python 1.14.0 
bracket-colorizer 1.3.0 
chrome-color-picker 0.8.0 
counter 0.3.5 
emmet 2.4.3 
filesize 4.0.3 
indent-guide-improved 1.4.13 
kite 0.151.0 
list-edit 1.0.1 
processing 0.13.0 
processing-autocomplete 0.2.0 
processing-language 0.2.0 
restart-atom 0.2.0 
screenshot 0.3.0 
script 3.18.1 
scroll-through-time 0.3.0 
sort-selected-elements 0.1.0 

TypeError: this.image.toPng is not a function

The following error occurs after all the data has been captured and the image is expected to be saved:

Uncaught (in promise) TypeError: this.image.toPng is not a function
    at CaptureResult.saveAs (capture-result.js? [sm]:4)
    at screenshot.js? [sm]:44
    at stitcher.js? [sm]:27
    at <anonymous>

Running Atom 1.29.0 on Linux with plugin version 0.1.3.

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/main.yml
  • actions/checkout v3
  • actions/setup-node v3
npm
package.json
  • merge-images ^2.0.0
  • standard 17.0.0
  • atom >=1.56.0 <2.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Make it look extra good - Replace Carbon.now.sh

This tool is GREAT, thanks so much!

I'd love to see some extra modifications if anyone is interested in adding them. Keep it how you have it, but perhaps create another menu item for "Take a Nicer Screenshot" which would include a small background and border (like carbon.now.sh).

Take Code Screenshot does nothing

That's basically it, the plugin's not working at all. I also tried taking a screenshot via atom's commands, but nothing happens. No image is copied to clipboard and no save image prompt appears.

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.25.0 x64
Electron: 1.7.11
OS: Mac OS X 10.13.3
Thrown From: screenshot package 0.1.3

Stack Trace

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

At /Users/leroylobo/.atom/packages/screenshot/lib/capturer.js:46

TypeError: Cannot read property 'getBoundingClientRect' of null
    at getLineBounds (/packages/screenshot/lib/capturer.js:46:27)
    at /packages/screenshot/lib/capturer.js:65:31

Commands

     -9:24.9.0 core:backspace (input.hidden-input)
     -9:23.2.0 core:save (input.hidden-input)
     -2:54.8.0 core:backspace (input.hidden-input)
     -2:54 core:save (input.hidden-input)
     -0:08.3.0 screenshot:take (div.line)

Non-Core Packages

screenshot 0.1.3 

Add option to exclude final empty line

Since #17 has been resolved, the final trailing linefeed in a file is included in screenshots. I would prefer if it was not. It is a necessary thing to have in the source file, but not needed when showing off code.

It might make sense to make this configurable.

No text editor active in Unstaged Changes

atom-sceenshot is a great plugin for creating code screenshots of files but another useful feature (essential for me!) would be the ability to take screenshots of the differences between commits, in Unstaged Changes.
Trying to do that I obtain a "No text editor active. Please select a text editor." message...

image

Screenshot of horizontally-scrollable code file is stretched when Include Line Numbers and Gutter is off

Steps to reproduce:

  1. Disable "Include Line Numbers and Gutter"
  2. Take a screenshot of a picture that can be scrolled horizontally

(This doesn't happen with "Include Line Numbers and Gutter" on)

Also, I'm sorry if I've posted a lot of issues with this package. I just felt like I need to report all these issues to be fixed (or to have some of my Atom options disabled/enabled if all these issues happen only because of my Atom).

TextEditor.editorElement is deprecated.

TextEditor.prototype.editorElement has always been private, but now
it is gone. Reading the editorElement property still returns a
reference to the editor element but this field will be removed in a
later version of Atom, so we recommend using the element property instead.

TextEditor.editorElement (<embedded>:2590:16)
getLineBounds (/Users/norman/.atom/packages/screenshot/lib/capturer.js:62:37)
<unknown> (/Users/norman/.atom/packages/screenshot/lib/capturer.js:82:35)

Uncaught Error: Could not call remote function 'join'. Check that the function signature is corre...

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.24.1 x64
Electron: 1.6.16
OS: Mac OS X 10.13.3
Thrown From: screenshot package 0.1.1

Stack Trace

Uncaught Error: Could not call remote function 'join'. Check that the function signature is correct. Underlying error: Path must be a string. Received null
Error: Could not call remote function 'join'. Check that the function signature is correct. Underlying error: Path must be a string. Received null
at callFunction (/Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:257:11)
at EventEmitter. (/Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:357:5)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:201:7)
at WebContents. (/Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:256:37)
at emitTwo (events.js:106:13)
at WebContents.emit (events.js:191:7)

At /Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:234

Error: Could not call remote function 'join'. Check that the function signature is correct. Underlying error: Path must be a string. Received null
Error: Could not call remote function 'join'. Check that the function signature is correct. Underlying error: Path must be a string. Received null
    at callFunction (/Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:257:11)
    at EventEmitter.<anonymous> (/Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:357:5)
    at emitMany (events.js:127:13)
    at EventEmitter.emit (events.js:201:7)
    at WebContents.<anonymous> (/Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:256:37)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:191:7)
    at metaToValue (/Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:234:13)
    at Object.remoteMemberFunction (/Users/gautam/Downloads/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:118:18)
    at Object.takeScreenshot (/packages/screenshot/lib/screenshot.js:48:31)
    at HTMLElement.screenshotTake (/packages/screenshot/lib/screenshot.js:19:43)
    at CommandRegistry.handleCommandEvent (/Users/gautam/Downloads/Atom.app/Contents/Resources/app/src/command-registry.js:388:36)
    at CommandRegistry.dispatch (/Users/gautam/Downloads/Atom.app/Contents/Resources/app/src/command-registry.js:273:23)
    at AtomEnvironment.dispatchApplicationMenuCommand (/Users/gautam/Downloads/Atom.app/Contents/Resources/app/src/atom-environment.js:1286:25)
    at EventEmitter.outerCallback (/Users/gautam/Downloads/Atom.app/Contents/Resources/app/src/application-delegate.js:333:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -3:32.4.0 settings-view:install-packages-and-themes (input.hidden-input)
     -3:25.5.0 core:confirm (input.hidden-input)
     -3:20.7.0 core:backspace (input.hidden-input)
  2x -3:20.4.0 core:confirm (input.hidden-input)
     -1:36.7.0 screenshot:take (input.hidden-input)
     -1:02.6.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -0:04.9.0 screenshot:take (input.hidden-input)

Non-Core Packages

screenshot 0.1.1 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.