出於某種原因,Emacs是無法找到我的ghci的。我運行Ubuntu 16.04,並遵循this tutorial書的說明。的Emacs哈斯克爾模式:「搜索程序:沒有這樣的文件或目錄,ghci的」
使用which ghci
我得到的路徑/opt/ghc/7.10.3/bin/ghci。和執行M-: exec-path
和M-: (getenv "PATH")
我可以看到,路徑正確打印。
我曾試圖明確地設置在這樣的emacs PATH變量,這改變不了什麼,因爲據我可以告訴它已經在那裏了。 From this answer.
(setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/opt/cabal/1.22/bin/cabal:/opt/ghc/7.10.3/bin/ghci")
(setq exec-path (split-string (getenv "PATH") path-separator)
同樣的事情發生時,我使用 (custom-set-variables '(haskell-process-type 'cabal-repl))
即錯誤:「搜索程序:沒有這樣的文件或目錄,小集團」
我將不勝感激幫助。 :)我不知道該怎麼做,我還沒有在互聯網上找到任何答案。