A report with no path is printed with its title run into the dashes
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 86/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 領域
- cli
調査の方向性
src/Cli/Report.gren の errorBarEnd から始め、issue に記載されている Just パスと Nothing 分岐を比較します。提供されている gren make コマンドでパスなしのレポートを再現し、そのタイトルがダッシュから分離されていること、および互換性のないプラットフォームに関する文に “platform” が含まれていることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Found against: gren 0.6.6, gren-lang/compiler-node 5.0.0, node 22
Reproduction: https://github.com/gilramir/gren-bug-reports/tree/main/2026-09-17-report-title-dashes
Cli.Report.toString puts a space between the title and the dashes when the
report has a path, and none when it has no path, so every path-less report the
CLI prints (INCOMPATIBLE PACKAGE, PROBLEM INSTALLING PACKAGE, CANNOT FIND COMPATIBLE VERSION, ...) reads -- TITLE-----. The compiler's own reports have
the space.
| header | |
|---|---|
| printed | -- INCOMPATIBLE PACKAGE-------------------------------------------------------- |
| expected | -- INCOMPATIBLE PACKAGE ------------------------------------------------------- |
Reproduction
A node application that lists gren-lang/browser:
{
"type": "application",
"platform": "node",
"source-directories": ["src"],
"gren-version": "0.6.6",
"dependencies": {"direct": {"gren-lang/core": "7.4.2", "gren-lang/browser": "6.0.0"}, "indirect": {"gren-lang/url": "6.0.0"}}
}
src/Main.gren:
module Main exposing (main)
import Node
main = Node.defineSimpleProgram (\_ -> Node.endSimpleProgram (Node.startProgram {}))
Output:
$ gren make Main --output=/dev/null
-- INCOMPATIBLE PACKAGE--------------------------------------------------------
gren-lang/browser targets the browser platform.
However, the current project targets the node, which is not compatible.
Also: The report's second sentence also lacks a word: "targets the node" should be
"targets the node platform".
Cause
In src/Cli/Report.gren, the Just path branch of errorBarEnd writes
" " ++ makeDashes (5 + ...) ++ " " ++ pathStr, and the Nothing branch writes
makeDashes (4 + String.unitLength title) with no space.
- 主要言語
- JavaScript
- スター
- 2
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
gren-lang/compiler-node のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gren-lang/compiler-node#14 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
gren-lang/compiler-node の issue をすべて見る
似ている issue
-
refactor
難易度 2/5 半日 初心者へのやさしさ 84/100
メンテナーはふだん 5 日以内に返信
-
translation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ciderapp/translations#87 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
component: split-view platform: windows
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
zen-browser/desktop#15616 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信