`tests\haddock-options` from GHC 9.6.6 to GHC 9.8.4: changed behaviour, why?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- haskell
调研方向
从 tests\integration\tests\haddock-options\files 开始,在 GHC 9.6.6 和 9.8.4 下重现报告的 stack haddock --haddock-arguments --optghc=-DBAR 行为。比较生成的命令和 Haddock 结果,然后确定原因,以及是否需要更改集成测试预期的失败结果。
由索引模型根据 Issue 内容生成。
描述
Moving from GHC 9.6.6 (LTS 22.43, Cabal-3.10.3.0 and haddock --version 2.29.2) to GHC 9.8.4 (LTS 23.0, Cabal-3.10.3.0 and haddock --version 2.30.0) the integration test haddock-options changed its behaviour, in that haddock -haddock-arguments --optghc=-DBAR failed to fail.
With tests\integration\tests\haddock-options\files as the working directory and LTS 22.43 (extracts, reformatted):
❯ stack --snapshot lts-22.43 haddock --haddock-arguments --optghc=-DBAR
haddock-options> configure (lib)
...
haddock-options> haddock
Preprocessing library for haddock-options-0.1.0.0..
Running Haddock on library for haddock-options-0.1.0.0..
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: base-4.18.2.1, ghc-bignum-1.3,
ghc-prim-0.10.0
src\Lib.hs:10:2: error: error: FOO and BAR is defined
|
10 | #error FOO and BAR is defined
| ^
#error FOO and BAR is defined
^
1 error generated.
src\Lib.hs:1:1: error:
`clang.exe' failed in phase `C pre-processor'. (Exit code: 1)
|
1 | {-# LANGUAGE CPP #-}
| ^
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the error:
[S-7011]
While building package haddock-options-0.1.0.0 (scroll up to its section to see the error) using:
D:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_O_vy6YIf_3.10.3.0_ghc-9.6.6.exe
--verbose=1
--builddir=.stack-work\dist\effaccc7
haddock
--html
--hoogle
--html-location=../$pkg-$version/
--haddock-option=--hyperlinked-source
--haddock-option=--quickjump
--haddock-option=--optghc=-DBAR
--haddock-option=--optghc=-DFOO
Process exited with code: ExitFailure 1
and (LTS 23.0) (extracts):
❯ stack haddock --haddock-arguments --optghc=-DBAR
haddock-options> configure (lib)
...
haddock-options> haddock
Preprocessing library for haddock-options-0.1.0.0..
Warning: The documentation for the following packages are not installed. No
Running Haddock on library for haddock-options-0.1.0.0..
links will be generated to these packages: base-4.19.2.0, ghc-bignum-1.3,
ghc-prim-0.11.0
src\Lib.hs:10:2: error: error: FOO and BAR is defined
|
10 | #error FOO and BAR is defined
| ^
#error FOO and BAR is defined
^
1 error generated.
Haddock coverage:
haddock: Unable to find a package providing module <no-mod>, skipping Hoogle.
Perhaps try specifying the desired package explicitly using the --package-name
and --package-version arguments.
Documentation created: .stack-work\dist\f24b2e15\doc\html\haddock-options\,
.stack-work\dist\f24b2e15\doc\html\haddock-options\haddock-options.txt
haddock-options> copy/register
Installing library in ...\.stack-work\install\854890af\lib\x86_64-windows-ghc-9.8.4\haddock-options-0.1.0.0-CuGz8FXsCXtFtA73xMP0Gw
Registering library for haddock-options-0.1.0.0..
Updating Haddock index for project packages in:
...\.stack-work\install\854890af\doc\index.html
Updating Haddock index for project packages and dependencies in:
...\.stack-work\install\854890af\doc\all\index.html
where, before copy/register (using --verbose):
Process finished in 6572ms: D:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_O_vy6YIf_3.10.3.0_ghc-9.8.4.exe
--verbose=1
--builddir=.stack-work\dist\f24b2e15
haddock
--html
--hoogle
--html-location=../$pkg-$version/
--haddock-option=--hyperlinked-source
--haddock-option=--quickjump
--haddock-option=--optghc=-DBAR
--haddock-option=--optghc=-DFOO
The haddock command is unchanged, so it seems likely a change in the behaviour of the haddock executable.
- 主要语言
- Haskell
- 星标
- 4.1k
- 派生
- 857
- 平均合并
- 17 小时 32 分钟
- 30 天内合并 PR
- 5
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
commercialhaskell/stack 的其他 Issue
-
Build Stack against Cabal >= 3.18可能已有人在做 @mpilgrem 于 14 天前认领。 未关闭
commercialhaskell/stack#6976 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 52/100
commercialhaskell/stack#6954 ·
-
Support type-checking without compiling可能重新可做 @mpilgrem 于 135 天前认领,目前没有进行中的 PR。 未关闭component: build type: enhancement
commercialhaskell/stack#6951 · 3 个 reaction · 已指派 1 人 ·
-
Support semaphore-compat 2.0.0可能重新可做 @mpilgrem 于 158 天前认领,目前没有进行中的 PR。 未关闭component: build in progress type: enhancement
commercialhaskell/stack#6934 · 3 条评论 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 42/100
commercialhaskell/stack#6864 · 1 条评论 ·
查看 commercialhaskell/stack 的全部 Issue
相似的 Issue
-
documentation
难度 1/5 1 小时以内 新手友好度 92/100
alunduil/network-arbitrary#293 ·
维护者通常 1 天内回复
-
area:client bug priority-low
难度 2/5 1-3 小时 新手友好度 68/100
-
bug triage
难度 2/5 1-3 小时 新手友好度 91/100
simplex-chat/simplex-chat#8372 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
compiler-explorer/compiler-explorer#9710 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复