elm-language-server icon indicating copy to clipboard operation
elm-language-server copied to clipboard

Report error on initialize better

Open razzeee opened this issue 4 years ago • 2 comments

These should report either via popup or as a diagnostic. https://github.com/elm-tooling/elm-language-server/pull/488#issue-560799485

razzeee avatar Jan 25 '21 13:01 razzeee

Specifically, here (unparseable elm.json): https://github.com/elm-tooling/elm-language-server/blob/003ede17fc99ae22fd04f5bdcbc059f2c14d1a98/src/elmWorkspace.ts#L719

and here (unsolvable dependencies): https://github.com/elm-tooling/elm-language-server/blob/003ede17fc99ae22fd04f5bdcbc059f2c14d1a98/src/elmWorkspace.ts#L507

are 2 places we can report diagnostics in the elm.json

jmbockhorst avatar Jan 25 '21 13:01 jmbockhorst

Unparsable elm.json actually seems to be handled quite nicely via the json schema we defined. But this only helps for vscode.

razzeee avatar Apr 27 '21 19:04 razzeee