`stack ghci` broken(?) on GHC 9.14.1

Đang mở
#6,844 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
haskell
Lĩnh vực
build-system, cli

Hướng nghiên cứu

Tái hiện stack ghci với GHC 9.14.1 bằng đầu ra trong báo cáo này, sau đó đọc issue 26866 của GHC đã được liên kết. Theo dõi cách Stack cấu hình GHCi cho dự án và xác định xem lỗi Module Lib not found có chỉ mang tính chẩn đoán hay không; được xem là hoàn tất khi stack ghci khởi động mà không có lỗi hoặc cảnh báo gây hiểu lầm trong khi tải các module được liệt kê.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Haskell
Star
4.1k
Fork
857
Merge trung bình
17 giờ 32 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của commercialhaskell/stack

Tất cả issue của commercialhaskell/stack

Issue tương tự

Thêm issue về Haskell

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.