roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.06k stars 288 forks source link

Roc error reporing does not add a new line #4911

Open Unaimend opened 1 year ago

Unaimend commented 1 year ago

image

As you can see the roc compiler does not add a newline after the last sentence. I tried looking into the compiler but could find the error-reporting part.

Actual output:

(base) td@td-debian:~/dev/roc/tutorial$ roc test.roc 
── WEIRD APP NAME ─────────────────────────────────────────────────── test.roc ─

I am partway through parsing a header, but got stuck here:

1│  app "hello
        ^

I am expecting an application name next, like app "main" or
app "editor". App names are surrounded by quotation marks.(base) td@td-debian:~/dev/roc/tutorial$

Expected output:

(base) td@td-debian:~/dev/roc/tutorial$ roc test.roc 
── WEIRD APP NAME ─────────────────────────────────────────────────── test.roc ─

I am partway through parsing a header, but got stuck here:

1│  app "hello
        ^

I am expecting an application name next, like app "main" or
app "editor". App names are surrounded by quotation marks.
(base) td@td-debian:~/dev/roc/tutorial$ 
Unaimend commented 1 year ago

Roc version: roc nightly pre-release, built from commit 46d69e8 on Sa 14 Jan 2023 10:55:51 UTC