-- UNKNOWN IMPORT ------------------------------------------------- src/Main.elm
The Main module has a bad import:
import Missing
I cannot find that module! Is there a typo in the module name?
The "source-directories" field of your elm.json tells me to only look in the src
directory, but it is not there. Maybe it is in a package that is not installed
yet?
It’s nice that it shows me which import is causing problems, but unlike most other error messages it does not show the line number! I’d expect something more like this:
-- UNKNOWN IMPORT ------------------------------------------------- src/Main.elm
The Main module has a bad import:
3| import Missing
^^^^^^^
I cannot find that module! Is there a typo in the module name?
The "source-directories" field of your elm.json tells me to only look in the src
directory, but it is not there. Maybe it is in a package that is not installed
yet?
SSCCE:
Error:
It’s nice that it shows me which import is causing problems, but unlike most other error messages it does not show the line number! I’d expect something more like this:
That would be more consistent, but most importantly it would allow the language server to underline the bad import rather than showing a generic error at the start of the file. See https://github.com/elm-tooling/elm-language-client-vscode/issues/41