meyfa / atom-screenshot Goto Github PK
View Code? Open in Web Editor NEWAtom editor plugin for creating code screenshots
Home Page: https://atom.io/packages/screenshot
License: MIT License
Atom editor plugin for creating code screenshots
Home Page: https://atom.io/packages/screenshot
License: MIT License
[Enter steps to reproduce:]
Atom: 1.35.1 x64
Electron: 2.0.18
OS: Microsoft Windows 7 Professional
Thrown From: screenshot package 0.3.0
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)
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)
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
My code is around 1000 lines. I get the 'Screenshot saved' popup but the file is zero bytes and cannot be opened. (macOS 10.14.3)
The screenshots above show that the last line isn't included for some reason. Other than that, this plugin has been very nice and easy to use! Keep it up @meyfa !! ๐๐ฝ
Steps to reproduce:
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.
This issue provides visibility into Renovate updates and their statuses. Learn more
This repository currently has no open or pending branches.
.github/workflows/main.yml
actions/checkout v3
actions/setup-node v3
package.json
merge-images ^2.0.0
standard 17.0.0
atom >=1.56.0 <2.0.0
(Note: This happens without Atom Soft Wrap on.)
Steps to reproduce:
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).
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.
[Enter steps to reproduce:]
Atom: 1.25.0 x64
Electron: 1.7.11
OS: Mac OS X 10.13.3
Thrown From: screenshot package 0.1.3
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
-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)
screenshot 0.1.3
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.
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...
Steps to reproduce:
(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.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)
[Enter steps to reproduce:]
Atom: 1.24.1 x64
Electron: 1.6.16
OS: Mac OS X 10.13.3
Thrown From: screenshot package 0.1.1
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)
-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)
screenshot 0.1.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.