pulsar-edit / pulsar

A Community-led Hyper-Hackable Text Editor
https://pulsar-edit.dev
Other
3.33k stars 140 forks source link

Uncaught RangeError: Maximum call stack size exceeded #1034

Open AlexWayfer opened 4 months ago

AlexWayfer commented 4 months ago

Thanks in advance for your bug report!

What happened?

I've tried to search in my work project and I've got the error and the empty results page.

image

Pulsar version

1.118.0

Which OS does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

OS details

Ubuntu 24.04 LTS

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

  1. Try to search in a project with something around 50k results, I guess.

Additional Information:

Thrown From: find-and-replace package 0.219.8

Stack Trace

Uncaught RangeError: Maximum call stack size exceeded

At /opt/Pulsar/resources/app.asar/node_modules/find-and-replace/lib/project/result-row.js:129

RangeError: Maximum call stack size exceeded
    at ResultRowGroup.generateRows (/app.asar/node_modules/find-and-replace/lib/project/result-row.js:129:20)
    at /app.asar/node_modules/find-and-replace/lib/project/result-row.js:61:10)
    at ResultsView.didAddResult (/app.asar/node_modules/find-and-replace/lib/project/results-view.js:241:22)
    at Function.simpleDispatch (/app.asar/node_modules/event-kit/dist/emitter.js:64:14)
    at Emitter.emit (/app.asar/node_modules/event-kit/dist/emitter.js:257:28)
    at ResultsModel.addResult (/app.asar/node_modules/find-and-replace/lib/project/results-model.js:350:18)
    at ResultsModel.setResult (/app.asar/node_modules/find-and-replace/lib/project/results-model.js:336:19)
    at /app.asar/node_modules/find-and-replace/lib/project/results-model.js:233:16
    at didMatch (/app.asar/src/workspace.js:2155:20)
    at /app.asar/src/task.js:156:49
    at Function.simpleDispatch (/app.asar/node_modules/event-kit/dist/emitter.js:64:14)
    at Emitter.emit (/app.asar/node_modules/event-kit/dist/emitter.js:257:28)
    at /app.asar/src/task.js:98:22)
    at ChildProcess.emit (events.js:315:20)
    at emit (internal/child_process.js:903:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)

Commands

     -0:13.5.0 project-find:show (div.results-view.focusable-panel)
     -0:13.2.0 core:paste (input.hidden-input)
     -0:13 core:confirm (input.hidden-input)

Non-Core Packages

advanced-open-file 0.16.8 
atom-beautify 0.33.4 
atom-discord 2.0.2 
atom-ide-ui 0.13.0 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
atom-smart-tabs 0.1.0 
atom-ternjs-screeps 1.21.0 
atom-typescript 14.4.0 
auto-detect-indentation 1.3.0 
auto-update-plus 0.11.4 
autoclose-html 0.23.0 
autocomplete-html-entities 0.2.0 
autocomplete-javascript 0.0.2 
autocomplete-paths 2.17.0 
autocomplete-ruby-rct 0.1.0 
autoupdate-packages 1.3.1 
ax-monokai-syntax 0.3.0 
ayu-mirage-atom-syntax 1.1.0 
better-git-blame 0.5.0 
blocky 0.13.0 
busy-signal 2.0.1 
change-line-length 0.1.1 
chmod 0.1.1 
color-picker 2.3.0 
editorconfig 2.6.1 
file-icons 2.1.47 
file-watcher 2.0.0 
genesis-ui 0.5.0 
git-time-machine 2.1.0 
go-plus 6.1.0 
goto-definition 1.3.4 
highlight-selected 0.17.0 
hyperclick 0.1.5 
ide-crystal 0.3.5 
ide-ruby 0.5.2 
ide-yaml 0.8.0 
indent-guide-improved 1.4.13 
intentions 2.1.1 
language-crystal-actual 0.37.2 
language-docker 1.1.8 
language-fish-shell 1.1.0 
language-haml 0.32.1 
language-markdown 0.37.0 
language-nginx 0.8.0 
language-postcss 1.3.1 
language-procfile 0.1.1 
language-rspec 0.12.1 
language-systemd 0.1.1 
language-typescript-react 0.1.1 
language-vue 0.26.2 
linter 3.4.0 
linter-erb 1.1.5 
linter-eslint 9.0.1 
linter-eslint-node 1.0.5 
linter-htmlhint 1.6.3 
linter-jshint 3.1.19 
linter-markdown 5.2.11 
linter-openapi 1.0.1 
linter-reek 2.4.2 
linter-rubocop 2.5.7 
linter-ruby 1.3.1 
linter-slim 2.0.0 
linter-spell 0.15.0 
linter-spell-ruby 0.4.0 
linter-ui-default 3.4.1 
linter-ui-plus 0.3.2 
merge-conflicts 1.4.5 
metrics 1.8.1 
minimap 4.40.1 
minimap-highlight-selected 4.6.6 
monocolor-blue-syntax 2.0.0 
monokai 0.28.0 
monokai-sublime 1.0.0 
nucleus-dark-ui 0.12.3 
pascal 1.2.1 
precss 0.3.0 
pulsar-ide-ruby-solargraph 0.0.4 
remember-file-positions 0.2.3 
revert-buffer 0.6.0 
robe 0.4.3 
ruby-block 0.3.6 
ruby-block-converter 4.1.1 
ruby-define-method 0.2.2 
ruby-navigator 0.5.0 
ruby-slim 0.2.0 
ruby-solargraph 0.6.1 
ruby-test 1.0.2 
scroll-editor-on-middle-click 0.7.0 
seeing-is-believing 15.0.0 
seti-icons 1.5.4 
seti-ui 1.11.0 
single-click-open 0.2.2 
slim-language 2.2.0 
space-tab 0.4.2 
space-underscore 0.1.1 
split-diff 1.6.1 
stacked-tabs 0.1.3 
symbols-tree-view 0.14.0 
sync-settings 5.2.16 
tab-control 0.6.11 
tabs-to-spaces 1.0.5 
tasks 2.10.1 
teletype 0.13.4 
toggle-quotes 1.1.4 
tree-view-open-files 0.3.0 
wrap-with-anything 0.1.1 
yaml-path 0.1.1 
yaml-path-copy 2.1.6 
yard 0.5.1 
zentabs 0.8.9