前のページ

Emacs を起動するとエラー

emacs 25.2.1 + fish 2.5 で発生

ある日突然、emacsを起動すると以下のエラーが発生、タイミング的にzsh から fish へ移行したことで起きたと推測できた。

`Error (use-package): exec-path-from-shell :init: Expected printf output from shell, but got: “”  
Warning (initialization): An error occurred while loading ‘/Users/makoto/.emacs.d/init.el’:  

error: Expected printf output from shell, but got: “”  

To ensure normal operation, you should investigate and remove the  
cause of the error in your initialization file. Start Emacs with  
the ‘ — debug-init’ option to view a complete error backtrace.`

軽く調べてみると GitHub Issue が検索でヒットしてくるので詳細を確認。

GitHub Issue を確認

確認すると fish 2.6 で解決済みとのことだが Mac の brew ではまだ2.6はリリースされていないので、HEADで最新版をインストールして解決。

brew install fish --HEAD

休日の yak shavingおわり。

Built with Hugo
Theme Stack designed by Jimmy