durkiewicz / elm-plugin

Elm language support plugin for IntelliJ IDEA.
MIT License
136 stars 15 forks source link

Picks up the wrong definition for Test type of elm-test #33

Closed mordrax closed 7 years ago

mordrax commented 7 years ago

webstorm underlines Test and tells me it 'cannot find symbol Test'

image

when I click on the import Test exposing (..) line, it takes me to a Test module defined in the "krisajenkins/elm-astar" which doesn't have a definition for Test. however, what it should take me to is elm-test/Test

elm-package.json

{
    "version": "1.0.0",
    "summary": "Sample Elm Test",
    "repository": "https://github.com/user/project.git",
    "license": "BSD-3-Clause",
    "source-directories": [
        ".",
        "../src"
    ],
    "exposed-modules": [],
    "dependencies": {
        "elm-community/elm-test": "2.0.0 <= v < 3.0.0",
        "rtfeldman/node-test-runner": "2.0.0 <= v < 3.0.0",
        "elm-community/list-extra": "3.1.0 <= v < 4.0.0",
        "elm-community/random-extra": "1.0.0 <= v < 2.0.0",
        "elm-lang/core": "4.0.5 <= v < 5.0.0",
        "elm-lang/html": "1.1.0 <= v < 2.0.0",
        "elm-lang/keyboard": "1.0.0 <= v < 2.0.0",
        "elm-lang/mouse": "1.0.0 <= v < 2.0.0",
        "elm-lang/navigation": "1.0.0 <= v < 2.0.0",
        "elm-lang/window": "1.0.0 <= v < 2.0.0",
        "krisajenkins/elm-astar": "2.0.3 <= v < 3.0.0"
    },
    "elm-version": "0.17.0 <= v < 0.18.0"
}
davidsavoya commented 7 years ago

FYI I am having the same issue in rubymine. Only when I have elm-stuff that is in my tests directory 'excluded' so that it does not show up in search. If I Cancel exclusion this is resolved, but then searching files include elm-stuff.

durkiewicz commented 7 years ago

@mordrax @davidsavoya Please have a look at https://github.com/durkiewicz/elm-plugin/issues/42