homebrew-emacsmacport icon indicating copy to clipboard operation
homebrew-emacsmacport copied to clipboard

It seems the App source '/Applications/Emacs.app' is not there.

Open dev-doshi opened this issue 3 years ago • 5 comments

When doing brew upgrade or brew update Everything works fine, until I get this error:

Error: railwaycat/emacsmacport/emacs-mac: It seems the App source '/Applications/Emacs.app' is not there.

My Mac: Screenshot 2021-12-12 at 14 35 51

dev-doshi avatar Dec 12 '21 13:12 dev-doshi

Hi @dev-doshi, could you let me know if your emacs-mac app was installed from formula or cask? Also if you can paste the output of ls -l /Applications | grep Emacs that would be great! Thanks!

railwaycat avatar Dec 12 '21 16:12 railwaycat

Sorry for the late answer, there is no output for this.

https://user-images.githubusercontent.com/50024652/146589060-b7051e99-a198-47e6-847b-53ffeb03b1fb.mov

https://user-images.githubusercontent.com/50024652/146593097-5316fadc-f281-4cd6-bc2d-b3b75b9355fa.mov

dev-doshi avatar Dec 17 '21 18:12 dev-doshi

Hi I'm facing a similar problem. The Emacs app is in my /Applications directory (it's an alias to Mac/usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/Emacs) but I can't open/find it via spotlight. I'm not sure if this is the default behaviour.

  • I installed emacs-mac through the formula.
  • Output of ls -l /Applications | grep Emacs:
lrwxr-xr-x   1 Yash  admin   34 Dec 27 10:46 Emacs.app -> /usr/local/opt/emacs-mac/Emacs.app

Thank you!

YashKarthik avatar Dec 27 '21 05:12 YashKarthik

I also faced the problem that there is no app in the /Applications folder, and therefore, I could not find it. The Emacs app is installed in the directory /opt/homebrew/Cellar/emacs-mac/emacs-27.2-mac-8.3 and also available in the linked direcotry /opt/homebrew/opt/emacs-mac/.

Since I'm using Alfred instead of Spotlight, it complicated things a bit. Creating a symlink ln -s /opt/homebrew/opt/emacs-mac/Emacs.app /Applications didn't resolve the problem for me. The directory /opt/homebrew/Cellar/ is included in the search scope of Alfred (Preferences: Features -> Default Results -> Search Scope)

What worked in the end for me was to create an alias (right-click -> Make Alias) of the Emacs.app and copy the alias in the /Applications folder instead of creating a symlink. As described in this post, you need to adjust settings in Alfred so that it includes aliases in the search results. Open the Alfred preferences and go to Features -> Default Results -> Search Scope and click on Advanced. Drag then the alias in the popup window and it will create an entry as it is shown in the screenshot.

image

andreas-bauer avatar Feb 08 '22 19:02 andreas-bauer

Try Raycast instead of Alfred, it'll load the .app from Cellar directly.

jasonm23 avatar Sep 13 '22 17:09 jasonm23