-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test dependencies are ignored / not implemented #47
Comments
I started looking into it. My initial thought is, it should look something like this, which is not working: I haven't figured out, how to debug, using the language server typescript code base, and vim with ale. |
Please try again, should work now, if you got the same problems that I could find with the spa example |
https://github.com/rtfeldman/elm-spa-example/blob/master/tests/RoutingTests.elm Still getting the same error in the first line claiming it can't find Same behavior with my project. Is it working for you? |
Well I made completions, hover, references work yesterday. I can reprod it, will look at it later. I would guess it's caused by us trying to run |
@razzeee Maybe this implementation is a good help. https://github.com/w0rp/ale/blob/a730a6d5d5a434f3ec93b77a4e003272a9e22925/ale_linters/elm/make.vim#L227 It is consistent with your thoughts. |
I replaced
|
Closing, as it should be working for now. |
Yep, can confirm it's working |
Issue
Cause
Currently direct dependencies are read, but
test-dependencies
are not. This will lead toelm-language-server/src/providers/astProvider.ts
Lines 89 to 92 in e43252a
elm.json Structure
Solution
For now it's probably an improvement to add
test-dependencies
. In the long term there needs to be some distinction between dependency types, to disallow importing test dependencies in source files.The text was updated successfully, but these errors were encountered: