Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: regular expression is too large #206

Closed
alexisab opened this issue Sep 12, 2019 · 0 comments · Fixed by #210
Closed

Uncaught Error: regular expression is too large #206

alexisab opened this issue Sep 12, 2019 · 0 comments · Fixed by #210

Comments

@alexisab
Copy link

[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 
elarivie added a commit to elarivie/highlight-selected that referenced this issue Jan 12, 2020
elarivie added a commit to elarivie/highlight-selected that referenced this issue Jan 12, 2020
elarivie added a commit to elarivie/highlight-selected that referenced this issue Jan 12, 2020
elarivie added a commit to elarivie/highlight-selected that referenced this issue Jan 12, 2020
elarivie added a commit to elarivie/highlight-selected that referenced this issue Jan 12, 2020
elarivie added a commit to elarivie/highlight-selected that referenced this issue Jan 12, 2020
elarivie added a commit to elarivie/highlight-selected that referenced this issue Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant