Skip to content

When importing, the editor suggestion are quite useless #11

@VladimirMarko

Description

@VladimirMarko

I went to https://elm-editor.com/ and triggered the suggestions while importing.

Here, Browser or Html is not suggested, even though the rest of the code is using them:

elm-editor bad import suggestions

Again, Html.Events is not suggested:

elm-editor bad import suggestions 2

In fact, all of the suggestions are nonsense. Html.Bitwise does not exist.

EDIT: Further testing shows that it's worse than I thought:

elm-editor missing imported suggestions

Apparently, no dependencies are considered when generating suggestions. This makes them quite useless indeed.

(The project had been already compiled with the dependency at the point the screenshot was taken, so the suggestions should definitely had been available.)

As a learner, this means that I cannot rely on the editor to discover how the dependencies (that I have already chosen to work with) work.

EDIT 2: Testing further and more nonsense suggestions:

elm-editor missing imported suggestions 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions