You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, Browser or Html is not suggested, even though the rest of the code is using them:
Again, Html.Events is not suggested:
In fact, all of the suggestions are nonsense. Html.Bitwise does not exist.
EDIT: Further testing shows that it's worse than I thought:
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:
The text was updated successfully, but these errors were encountered:
VladimirMarko
changed the title
When importing, editor suggestion quite useless
When importing, the editor suggestion are quite useless
Nov 13, 2021
In this case, the module named Browser is not part of the project. Instead, it comes via a reference in the elm.json file when using the 'Compile' function.
The language service uses the modules present in the project to derive the completion suggestions. With the current implementation, it does not consider the references in elm.json that could bring more modules.
Seeing this issue, I think we can improve the default project to avoid confusion in this area.
Again, Html.Events is not suggested:
In fact, all of the suggestions are nonsense. Html.Bitwise does not exist.
That screenshot looks like the branch handling suggestions for import statements does not consider the prefix.
I went to https://elm-editor.com/ and triggered the suggestions while importing.
Here,
Browser
orHtml
is not suggested, even though the rest of the code is using them:Again,
Html.Events
is not suggested:In fact, all of the suggestions are nonsense.
Html.Bitwise
does not exist.EDIT: Further testing shows that it's worse than I thought:
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:
The text was updated successfully, but these errors were encountered: