ProjectLoadException when setting up elm.json
See original GitHub issueI have a running project on machine A. Then I open it on machine B, files are synced using git. elm-plugin asks me to set up my toolchain and elm.json. The former works, the latter produces the error in the screenshot.
For machine readability: The text is:
Failed to attach Elm project
org.elm.workspace.ProjectLoadException: Could not find file /home/$USER/.elm/0.19.0/package/elm/http/2.0.0/elm.json. Is the package installed?
(I replaced my username with $USER of course).
This error happened to me on multiple occasions, another one being loading an elm.json that is not in the uppermost directory of the project or when the sources are misplaced respectively. It pops up both on machines A and B, so I presume it is not an issue of a certain installation. I can not figure out a workaround at this point, which is a great bummer in an otherwise great plugin.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
I just came along this again and once calling
elm make src/Main.elm
initially appears to be a workaround at least in a fresh project.I’ve encountered the same issue. What helped was manually removing the json import from elm.json, rebuilding, and reverting back the json dependency.