dotnet / dotnet/fsharp

Wrong indentation in list comprehension leads to unhelpful error message

オープン
#4,232 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
Area-Diagnostics Feature Improvement
主要言語
F#
スター
4.3k
フォーク
877
平均マージ
5日 11時間
マージ済み PR(30日)
153

説明

In larger elmish views we see newcomers often messup indentation. Unfortunately the compiler is not helpful. This is one case of it:

let div _ _ = 1

let view model dispatch =
[
div [] []
div [] []
div [] []
div [] []
]

![image](https://user-images.githubusercontent.com/57396/35192091-31735ee8-fe8b-11e7-8eb3-1f647e52aa16.png)

(related to #4228)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Issue 内のインデントされた Elmish-style スニペットを再現ケースとして使用します。ファイル、テスト、エントリーポイントは指定されていません。まず F# compiler で診断を再現し、次に関連する診断パスを特定して、関連する issue #4228 をコンテキストとして使用します。インデントの失敗によって、より有用な compiler error が生成されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
fsharp
領域
compilers
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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