Coder Social home page Coder Social logo

box-edit's People

Contributors

mark-hahn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

javacym snookee

box-edit's Issues

Not working on lines with TAB

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

atom-text-editor.Object.defineProperty.get is deprecated.

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)

Exception: "setVisible is not a function"

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.

Uncaught TypeError: this.editor.getLastCursor(...).setVisible is not a function

[Enter steps to reproduce:]

  1. Just hit "alt-s"

Atom: 1.19.2 x64
Electron: 1.6.9
OS: Mac OS X 10.12.2
Thrown From: box-edit package 0.1.3

Stack Trace

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)

Commands

     -0:08.8.0 box-edit:toggle (input.hidden-input)

Non-Core Packages

box-edit 0.1.3 
git-plus 7.9.3 
php-debug 0.2.5 

Doesn't work as expected when lines are so long that the view has scrolled horizontally

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.

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.