0

I recently started working at a company that mandates we all use MacOS. I have installed emacs and would like to use my config, which leverages visual-regexp-steroids.el, but I am receiving an OS error that some executable is not found. I am not sure how to debug this.

My normal toolkit of debug-on-error and the like is not working.

At first, I thought the issue was related to the path of whatever binary is being invoked, but I can't confirm that. Any help here would be appreciated.

This config works perfectly fine on my personal linux machine, so I assume there's some configuration quirk I'm missing.

enter image description here

nega
  • 3,091
  • 15
  • 21
clo_jur
  • 101
  • Bisect your init file, to find the culprit? Where/how are you getting the "127" error? Is that an Emacs error (I'm guessing no)? – Drew Aug 16 '22 at 19:50
  • 127 is an OS error. I do not know how to discover the function invoked prior to the 127, and reading through the package code doesn't reveal anything obvious to me. I can try and bisect init, although I was hoping this was somewhat of a known problem since this init is just my normal init applied to a macOS emacs build. ty~~ – clo_jur Aug 16 '22 at 20:05
  • does your config work fine if `visual-regexp-steroids` is disabled? – nega Aug 18 '22 at 04:09

1 Answers1

1

visual-regexp-steroids relies on a Python helper. By default, it calls this helper with the python executable (as seen here) which no longer exists on macOS. There's a myriad of ways to address that, but if it was me, I'd just change that locally to python3, and the Homebrew python3 at that.

It's been a bit since visual-regexp-steroids has seen an update, but it wouldn't hurt to submit a new issue.

nega
  • 3,091
  • 15
  • 21