Error reporting is worse/missing under ghc 9.12.2 (compared to 9.10.3)
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- haskell
- 領域
- build-system
調査の方向性
The error is raised at src/Development/Shake/Internal/Rules/File.hs:179, and the issue links commit fc82eee7982cc54db8907892cd688bcd73d11d1e, which may already address this. Start by checking whether that commit is in the current master, then run the Example.hs script under GHC 9.12.2 to see whether the 'rule finished running but did not produce file' message appears. Done means the missing-output error is reported with its message and call site under 9.12.2, as it is under 9.10.3.
索引モデルが issue の本文から書いたものです。
説明
Hi - thanks for your work on shake. I noticed that the error reporting degraded somewhat under ghc 9.12.2:
In a Example.hs like:
#!/usr/bin/env cabal
{- cabal:
build-depends:
base
, shake
-}
import Development.Shake
main :: IO ()
main = shakeArgs shakeOptions $ do
want ["foo.txt"]
"*.txt" %> \out -> do
pure ()
Running this with ghc 9.10.3:
~
❮ ghcup set ghc 9.10.3
[ Info ] GHC 9.10.3 successfully set as default version
Gives a helpful error message:
~
↪ ./Example.hs
Error when running Shake build system:
at want, called at /path/to/Example.hs:14:3 in fake-package-0-inplace-script-Example.hs:Main
* Depends on: foo.txt
at error, called at src/Development/Shake/Internal/Rules/File.hs:179:58 in shake-0.19.8-488b5a5cc87df829ac1c6a3ebfeceebc03fee9a278623f5d982bfc78c9b4a532:Development.Shake.Internal.Rules.File
* Raised the exception:
Error, rule finished running but did not produce file:
foo.txt
But with ghc 9.12.2:
ghcup set ghc 9.12.2
It returns:
cabal-script-Example.hs: Uncaught exception ghc-internal:GHC.Internal.Exception.ErrorCall:
ErrorCallWithLocation has been deprecated in favour of ErrorCall (which does not have a location). Backtraces are now handled by the backtrace exception mechanisms exclusively.
HasCallStack backtrace:
error, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:184:68 in ghc-internal:GHC.Internal.Exception
Update: Looks like there were already some commits related to this (https://github.com/ndmitchell/shake/commit/fc82eee7982cc54db8907892cd688bcd73d11d1e). Is only a release missing?
- 主要言語
- Haskell
- スター
- 802
- フォーク
- 128
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ndmitchell/shake のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ndmitchell/shake#858 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
ndmitchell/shake#843 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
ndmitchell/shake#859 · コメント 1 件 ·
-
難易度 4/5 1週間以上 初心者へのやさしさ 15/100
ndmitchell/shake#856 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ndmitchell/shake#854 ·
ndmitchell/shake の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
objectionary/phino#2059 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
NixOS/nixpkgs-update#586 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
wireapp/wire-server#5632 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100