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

Exception when running Haskell program

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

还没有人认领这个 Issue。

评估

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

调研方向

打开共享的 CodeWorld 程序,并在 Firefox 中重现异常。先从 runBaseJS 堆栈开始,尤其关注 h$upd_frame,然后将失败的运行结果与预期的两条线绘图进行比较。当共享程序能够在没有 TypeError 的情况下运行并绘制出两条线时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug

Shared Program: https://code.world/haskell#Pzf4CuhpqMeyaVWNgHuW8lQ

Description:

When writing a program in CodeWorld (Haskell) I encountered a bug where running the program resulted in exception (apparently with JS, looking at the error message below). The shared program is expected to draw 2 lines but instead gives the error:

  uncaught exception in Haskell thread: TypeError: h$RTS_586.d2 is not a functionh$upd_frame@https://code.world/runBaseJS?version=b1bb58319376914fc0f41aa2c9c47165704b8b23b6e18a64a73af23f08132274:17139:33
  h$runThreadSlice@https://code.world/runBaseJS?version=b1bb58319376914fc0f41aa2c9c47165704b8b23b6e18a64a73af23f08132274:6547:11
  h$runThreadSliceCatch@https://code.world/runBaseJS?version=b1bb58319376914fc0f41aa2c9c47165704b8b23b6e18a64a73af23f08132274:6523:12
  h$mainLoop@https://code.world/runBaseJS?version=b1bb58319376914fc0f41aa2c9c47165704b8b23b6e18a64a73af23f08132274:6518:9
  partiallyApplied/<@https://code.world/runBaseJS?version=b1bb58319376914fc0f41aa2c9c47165704b8b23b6e18a64a73af23f08132274:2145:25
  runIfPresent@https://code.world/runBaseJS?version=b1bb58319376914fc0f41aa2c9c47165704b8b23b6e18a64a73af23f08132274:2159:21
  onGlobalMessage@https://code.world/runBaseJS?version=b1bb58319376914fc0f41aa2c9c47165704b8b23b6e18a64a73af23f08132274:2188:29

Reloading the page and running in different PC seems to have the same result.

Browser:

Mozilla Firefox 94.0.1

OS:

Edition Windows 10 Home
Version 21H1
OS build 19043.1348
Experience Windows Feature Experience Pack 120.2212.3920.0

主要语言
Haskell
星标
1.3k
派生
201
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

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

google/codeworld 的其他 Issue

查看 google/codeworld 的全部 Issue

相似的 Issue

更多 Haskell Issue

把新 issue 发到你的邮箱

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