doomemacs / doomemacs/core

Locate file broken on macOS

Open
#8,773 3 comments 0 reactions 0 assignees View on GitHub
:completion vertico os:macOS
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### Describe your issue

reproduce: `SPC s f`, type any keyword, then will get an error message "/usr/bin/locate: illegal option -- -"
Image

I did not dig too much, the error message might indicate that I need a gnu version `locate` command, but intuitively we should use the spotlight index (mdfind?) rather than `locate`, right?

### Steps to reproduce

`SPC s f`, type any keyword, then will get an error message "/usr/bin/locate: illegal option -- -"

### System information

https://pastebin.com/L2mYS4J4

### Disclosures

- [ ] This issue was written with/by AI.

Contributor guide

Open the contributing guide

Research direction

Start from the implementation behind the SPC s f entry point and trace how it invokes /usr/bin/locate on macOS. Reproduce the illegal-option error, compare the available macOS search command mentioned in the issue, and consider the work complete when file search returns results without that error on macOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs-lisp, macos
Domain
operating-systems, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.