`stack ghci` broken(?) on GHC 9.14.1

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
haskell
領域
build-system, cli

調査の方向性

このレポートの出力を使って GHC 9.14.1 で stack ghci を再現し、その後、リンクされている GHC issue 26866 を読んでください。Stack がプロジェクト用に GHCi をどのように設定しているかを追跡し、Module Lib not found エラーが診断目的 בלבדなのかを判断してください。完了の条件は、一覧にあるモジュールの読み込み中に、誤解を招くエラーや警告なしで stack ghci が起動することです。

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

説明

See GHC issue:

With GHC 9.14.1:

> stack ghci
Using main module:
1.  Package testGhc9141, component testGhc9141:exe:testGhc9141-exe, with main-is file:
    D:\Users\mike\Code\Haskell\testGhc9141\app\Main.hs.

testGhc9141> configure (lib + exe)
Configuring testGhc9141-0.1.0.0...
testGhc9141> initial-build-steps (lib + exe)

Warning: The following GHC options are incompatible with GHCi and have not been passed to it: -threaded.

Configuring GHCi with the following packages: testGhc9141.
GHCi, version 9.14.1: https://www.haskell.org/ghc/  :? for help
<interactive>: error: [GHCi-23305]
    Module Lib not found

<no location info>: warning: [GHC-32850] [-Wmissing-home-modules]
    Modules are not listed in options for ‘main’ but needed for compilation:
        Lib

[1 of 3] Compiling Lib              ( D:\Users\mike\Code\Haskell\testGhc9141\src\Lib.hs, interpreted )[main]
[2 of 3] Compiling Main             ( D:\Users\mike\Code\Haskell\testGhc9141\app\Main.hs, interpreted )[interactive-session]
Ok, one module added.
Loaded GHCi configuration from C:\Users\mike\AppData\Local\stack\ghci-script\a658edde\ghci-script
ghci>

The <no location info> warning is a consequence of ghc-options: [-Wmissing-home-modules]. Without that:

GHCi, version 9.14.1: https://www.haskell.org/ghc/  :? for help
<interactive>: error: [GHCi-23305]
    Module Lib not found

[1 of 3] Compiling Lib              ( D:\Users\mike\Code\Haskell\testGhc9141\src\Lib.hs, interpreted )[main]
[2 of 3] Compiling Main             ( D:\Users\mike\Code\Haskell\testGhc9141\app\Main.hs, interpreted )[interactive-session]
Ok, one module added.
Loaded GHCi configuration from C:\Users\mike\AppData\Local\stack\ghci-script\a658edde\ghci-script
ghci> :show modules
Lib              ( D:\Users\mike\Code\Haskell\testGhc9141\src\Lib.hs, interpreted )
Main             ( D:\Users\mike\Code\Haskell\testGhc9141\app\Main.hs, interpreted )
ghci>

Despite the Module Lib not found and Ok, one module added., both modules are compiled and shown as loaded.

主要言語
Haskell
スター
4.1k
フォーク
857
平均マージ
17時間 32分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

commercialhaskell/stack のほかの issue

commercialhaskell/stack の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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