Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#15 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
86/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
cli

Direzione di ricerca

Inizia in src/Cli/Report.gren, in corrispondenza di errorBarEnd, confrontando il percorso Just e i rami Nothing descritti nell’issue. Riproduci il report senza percorso con il comando gren make fornito, quindi verifica che il suo titolo sia separato dai trattini e che la frase sulla piattaforma incompatibile contenga “platform”.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
2
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di gren-lang/compiler-node

Tutte le issue di gren-lang/compiler-node

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.