1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vscode で Haskell の開発環境作る時に "print-build-platform" (exit 1): failed が出たときの対処法

Last updated at Posted at 2019-12-26

この記事には何の根拠性もないので役に立つかわかりません(信じるか信じないかはあなた次第です。

Haskell Language Server ていう extension 使って vscode で Haskell の開発環境作った。https://marketplace.visualstudio.com/items?itemName=alanz.vscode-hie-server

よし、いざ開発と思いきやコード書く度に "print-build-platform" (exit 1): failed っていう警告が飛び出してくるのがとてもうっとおしかった。

~/.bash_profileexport PATH=$(stack path --compiler-bin):$PATH を書けば解決するという話もあったけどそれをやってもダメ...。

で諦めていた矢先、偶然 Visual Studio Code を version up するついでに brew cask install できるらしいからやってみようと思い、おもむろにブラウザから DLしてきたやつ rm -rf して brew cask install visual-studio-code したらなんか知らんけど解決した...。

いままで Vim で書いてたけどカーソル当てるだけで関数のシグネチャをウィンドしてくれたり自動で型宣言を展開してくれたりフォーマッタも効くようになってだいぶ快適になった。

a.gif

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?