Loading a main-is module in emacs should run `cabal repl <target>` when there are multiple cabal stanzas

オープン
#1,887 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
emacs, haskell
領域
tooling

調査の方向性

この issue ではソースファイルもテストも指定されていません。まず C-c C-l のロードパスと haskell-process-args-cabal-repl の使用箇所を追跡し、次にライブラリ 1 つと実行可能ファイル 2 つを含む Cabal ファイルでこのケースを再現してください。各実行可能ファイルの main-is モジュールをロードしたときに、手動でカスタマイズせず適切な stanza が選択されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

This might be a duplicate of #1840.

I have a cabal file with a library stanza and two executable stanzas. When I attempt to load (C-c C-l) the main-is: Main.hs file I get module not found errors because I assume cabal repl is looking at the library stanza which does not have the same build-depends as the executable stanza.

If I customize-variable haskell-process-args-cabal-repl to include the executable stanza name then loading the file works. This is annoying though, as I want to alternate between executable modules and not customize-variable every time.

主要言語
Emacs Lisp
スター
1.4k
フォーク
357
平均マージ
7時間 50分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

haskell/haskell-mode のほかの issue

haskell/haskell-mode の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。