`mode :: Mode (CmdArgs Cmd) ` memoizes async exceptions, breaking HLS Shake restarts
还没有人认领这个 Issue。
评估
调研方向
从 HLint 中顶层 mode :: Mode (CmdArgs Cmd) 的初始化开始,跟踪其对 unsafePerformIO 的使用。使用链接的 HLS issue 和所描述的旧/新 Shake-session 场景作为复现上下文。完成的标准是,来自旧 session 的异步取消不会被后续对 mode 的访问保留。
由索引模型根据 Issue 内容生成。
描述
The top-level mode :: Mode (CmdArgs Cmd) in HLint is initialized using unsafePerformIO. If an asynchronous exception occurs during this initialization, the exception is captured and memoized in the CAF. As a result, every subsequent access to mode rethrows the same async exception.
In practice, this causes HLS to retain the cancel exception from an old Shake session and propagate it into the new session, immediately killing it.
See https://github.com/haskell/haskell-language-server/issues/4718#issue-3370604152
- 主要语言
- Haskell
- 星标
- 1.6k
- 派生
- 212
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ndmitchell/hlint 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
ndmitchell/hlint#1710 ·
-
难度 3/5 1-2 天 新手友好度 55/100
ndmitchell/hlint#1709 ·
-
难度 3/5 1-2 天 新手友好度 62/100
ndmitchell/hlint#1708 ·
-
难度 5/5 一周以上 新手友好度 35/100
ndmitchell/hlint#1707 ·
-
难度 3/5 1-2 天 新手友好度 58/100
ndmitchell/hlint#1705 ·
相似的 Issue
-
Build error?未关闭
难度 2/5 1-3 小时 新手友好度 65/100
lolepezy/rpki-prover#367 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
compiler-explorer/compiler-explorer#9308 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
simplex-chat/simplex-chat#7755 ·
维护者通常 1 天内回复
-
bug core-libs
难度 2/5 1-3 小时 新手友好度 68/100