Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`mode :: Mode (CmdArgs Cmd) ` memoizes async exceptions, breaking HLS Shake restarts

未关闭
#1,663 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
haskell
领域
tooling

调研方向

从 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 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ndmitchell/hlint 的其他 Issue

查看 ndmitchell/hlint 的全部 Issue

相似的 Issue

更多 Haskell Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。