mark-hahn / box-edit Goto Github PK
View Code? Open in Web Editor NEWAn Atom package to edit rectangular areas; supports short lines.
License: MIT License
An Atom package to edit rectangular areas; supports short lines.
License: MIT License
[Enter steps to reproduce:]
Atom: 1.19.2 x64
Electron: 1.6.9
OS: Mac OS X 10.12.2
Thrown From: box-edit package 0.1.3
Uncaught TypeError: this.editor.getLastCursor(...).setVisible is not a function
At /Users/avi/.atom/packages/box-edit/lib/box.coffee:43
TypeError: this.editor.getLastCursor(...).setVisible is not a function
at BoxEdit.atomSelectionsToBox (/packages/box-edit/lib/box.coffee:43:29)
at BoxEdit.toggle (/packages/box-edit/lib/box-edit.coffee:32:6)
at /packages/box-edit/lib/box-edit.coffee:15:56)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:65)
-0:08.8.0 box-edit:toggle (input.hidden-input)
box-edit 0.1.3
git-plus 7.9.3
php-debug 0.2.5
The contents of atom-text-editor
elements are no longer encapsulated
within a shadow DOM boundary. Please, stop using shadowRoot
and access
the editor contents directly instead.
atom-text-editor.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-element.js:68:18)
BoxEdit.getElements (/Users/mero/.atom/packages/box-edit/lib/page.coffee:31:29)
BoxEdit.getPageDims (/Users/mero/.atom/packages/box-edit/lib/page.coffee:40:19)
BoxEdit.toggle (/Users/mero/.atom/packages/box-edit/lib/box-edit.coffee:40:12)
atom-text-editor.subs.add.atom.commands.add.box-edit:toggle (/Users/mero/.atom/packages/box-edit/lib/box-edit.coffee:26:26)
CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
If a line contains a TAB it is not copied and pasted correctly.
Tab character causes problems on both copy and/or paste.
Unfortunately, it make this great package unusable in many cases.
reproduced on atom version 1.8 on ubuntu 16.04
It's difficult to determine what exactly is happening other than the plugin works great when the horizontal scroll position is in its default position (furtherest left). If you attempt to use the plugin on a series of lines that are so long you need scroll right then invoking the plugin and drawing a red box works, but it is not possible to get a blue box.
Using Atom 1.19.1 x64 on Mac OS X 10.12.6, I installed box-edit 0.1.3, and hit Alt-S in a file. A red selection rectangle appeared, along with an error window with the exception below:
TypeError: this.editor.getLastCursor(...).setVisible is not a function
at BoxEdit.atomSelectionsToBox (/Users/jdawson/.atom/packages/box-edit/lib/box.coffee:43:29)
at BoxEdit.toggle (/Users/jdawson/.atom/packages/box-edit/lib/box-edit.coffee:32:6)
at HTMLElement.subs.add.atom.commands.add.box-edit:toggle (/Users/jdawson/.atom/packages/box-edit/lib/box-edit.coffee:15:56)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:65)
At this point, the plugin appears broken. I can't make the red rectangle go away, even if I switch to other tabs, settings, etc., or hit Escape. My only recourse appears to be to restart Atom.
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.