elm-tooling / elm-language-server-haskell

Elm language server written in haskell (archived). Use https://github.com/elm-tooling/elm-language-server instead.
BSD 3-Clause "New" or "Revised" License
52 stars 5 forks source link

Show error notification to user without elm.json #6

Closed andys8 closed 5 years ago

andys8 commented 5 years ago

Issue

Elm.Project.Json.read could potentially throw IOException that wasn't handled. This happens if there is no elm.json in the root directory.

Changes

The exception is handled and will return Left Reporting.Exit.NoElmJson.

@matheus23 Merging into code-action branch because based on it.

andys8 commented 5 years ago

image