extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Fuzzy File Search] ...

Open InitPatch opened this issue 1 year ago • 3 comments

Extension

https://www.raycast.com/erykksc/fuzzy-file-search

Raycast Version

1.102.7

macOS Version

14.7.8

Description

Error: Worker terminated due to reaching memory limit: JS heap out of memory

Worker..onexit:worker:230:20

Steps To Reproduce

Installed the extension Pressed Enter (Open Search Files)

Current Behaviour

The message "Something went wrong" appeared immediately after launching the extension. Pressing enter again (reload), doesn't do anything, just loops to the same error message

Expected Behaviour

No response

InitPatch avatar Sep 15 '25 22:09 InitPatch

Thank you for opening this issue!

🔔 @erykksc you might want to have a look.

💡 Author and Contributors commands

The author and contributors of erykksc/fuzzy-file-search can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Sep 15 '25 22:09 raycastbot

Hey,

Thanks, @InitPatch, for reporting the bug. Currently, the extension works by loading a file list using fd into memory, which is then displayed and filtered with fuzzy search. When the file list is too long, the heap memory limit is reached. Raycast restricts the amount of memory an extension can use and terminates it once it tries to allocate more.

I’m reworking the extension to reduce memory usage and make it possible to search through large file lists.

As a quick fix, you can edit the file ~/.fdignore and add paths you want the extension to ignore. For example, to ignore the Downloads folder, add the line:

Downloads/

By default, I’ve already added Library/ and **.photoslibrary, so with the extra line it would look like this:

Library/
**.photoslibrary
Downloads/

Tip: Focus on ignoring directories that contain a large number of files, since ignoring directories with only a few won’t make much of a difference.

erykksc avatar Sep 17 '25 11:09 erykksc

@raycastbot assign me

erykksc avatar Sep 17 '25 11:09 erykksc