Pulsar-Edit-Highlights / selected

@Pulsar-Edit package for highlighting occurrences of your selection.

Home Page:https://web.pulsar-edit.dev/packages/highlight-selected

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught Error: regular expression is too large

alexisab opened this issue · comments

[Enter steps to reproduce:]

  1. Open a "huge" json file
  2. Select it by hand

Atom: 1.40.1 x64
Electron: 3.1.10
OS: Ubuntu 18.04.3
Thrown From: highlight-selected package 0.16.0

Stack Trace

Uncaught Error: regular expression is too large

At /home/steerity/.atom/packages/highlight-selected/lib/search-model.js:224

Error: regular expression is too large
    at TextBuffer.findAllInRangeSync (/app.asar/node_modules/text-buffer/node_modules/superstring/index.js:256:44)
    at TextBuffer.findAllInRangeSync (/snap/atom/238/usr/share/atom/resources/app/static/<embedded>:11:495004)
    at TextBuffer.scanInRange (/snap/atom/238/usr/share/atom/resources/app/static/<embedded>:11:493929)
    at TextBuffer.scan (/snap/atom/238/usr/share/atom/resources/app/static/<embedded>:11:493692)
    at TextEditor.scan (/snap/atom/238/usr/share/atom/resources/app/static/<embedded>:11:40885)
    at SearchModel.highlightSelectionInEditor (/packages/highlight-selected/lib/search-model.js:176:14)
    at getActiveEditors.forEach.otherEditor (/packages/highlight-selected/lib/search-model.js:129:21)
    at Array.forEach (<anonymous>)
    at SearchModel.handleSelection (/packages/highlight-selected/lib/search-model.js:128:26)
    at SelectionManager.handleSelectionDebounce.debounce (/packages/highlight-selected/lib/selection-manager.js:96:26)
    at later (/packages/highlight-selected/node_modules/debounce/index.js:27:23)

Commands

  2x -0:16.2.0 core:select-up (input.hidden-input)
     -0:12.6.0 editor:select-to-end-of-line (input.hidden-input)
     -0:09.8.0 intentions:highlight (input.hidden-input)
     -0:09.5.0 core:copy (input.hidden-input)

Non-Core Packages

busy-signal 2.0.1 
file-icons 2.1.33 
highlight-selected 0.16.0 
intentions 1.1.5 
language-api-blueprint 1.0.2 
linter 2.3.0 
linter-eslint 8.5.5 
linter-ui-default 1.7.1 
monokai 0.24.0 
pigments 0.40.2 
prettier-atom 0.56.6 
react 0.18.0