halohalospecial / atom-elmjutsu

A bag of tricks for developing with Elm. (Atom package)
https://atom.io/packages/elmjutsu
MIT License
192 stars 24 forks source link

Autocomplete does not seem to work under the tests directory. #130

Closed ababup1192 closed 6 years ago

ababup1192 commented 6 years ago

Hi

Autocomplete for dependencies packages does not work in tests directory.

2018-09-03 16 47 46

elm.json

{
    "type": "application",
    "source-directories": [
        "src",
        "tests"
    ],
    "elm-version": "0.19.0",
    "dependencies": {
        "direct": {
            "elm/browser": "1.0.0",
            "elm/core": "1.0.0",
            "elm/html": "1.0.0",
            "elm/random": "1.0.0"
        },
        "indirect": {
            "elm/json": "1.0.0",
            "elm/time": "1.0.0",
            "elm/url": "1.0.0",
            "elm/virtual-dom": "1.0.0"
        }
    },
    "test-dependencies": {
        "direct": {
            "elm-explorations/test": "1.0.0"
        },
        "indirect": {}
    }
}

This is my repository for development.

I use Elm 0.19 and elmjutsu 8.5.0.

halohalospecial commented 6 years ago

Hi @ababup1192, can you check v8.6.1? Thanks for the screenshot and sample project!

ababup1192 commented 6 years ago

Hi @halohalospecial, Thank you very much for updating! Autocomplete has been effective successfully.

However, why continue to keep this error?

2018-09-03 23 37 18

halohalospecial commented 6 years ago

Hi @ababup1192, saving Tests.elm runs elm make tests/Tests.elm (the active file). You can enable the Always Compile Main option so that Elmjutsu always runs the main file instead (elm make src/Main.elm).

https://github.com/halohalospecial/atom-elmjutsu#always-compile-main

ababup1192 commented 6 years ago

Great! The error has been resolved!