Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

A report with no path is printed with its title run into the dashes

オープン 初心者向け
#15 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

gren-lang/compiler-node のほかの issue

gren-lang/compiler-node の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。