Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ProjectLoadException when setting up elm.json

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

Aarkoncommented, Dec 22, 2019

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.

izmajlowiczlcommented, Oct 15, 2019

I’ve encountered the same issue. What helped was manually removing the json import from elm.json, rebuilding, and reverting back the json dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stuck at "No Elm projects found" & "Attach elm.json ... - GitHub
... I'm getting the error: org.elm.workspace.ProjectLoadException: Could no. ... The plugin (under settings) can find the the elm compiler, and elm-format.
Read more >
elm-package.json failing to load - intellij idea - Stack Overflow
To do this, I am using a fairly standard elm-package.json fle: ... ProjectLoadException: The 'type' field is 'null', but expected either ...
Read more >
A tool for managing elm.json files - Show and Tell
It aims to make it easier to do fairly common things: installing a specific version of a dependency (e.g. elm-json install elm/http@2.0.0 );...
Read more >
B Installing Elm Packages - Elm in Action - liveBook · Manning
Here is the elm.json file we'll have at the beginning of the book's final chapter, ... Check out the README for the elm/core...
Read more >
Elm - Visual Studio Marketplace
Extension for Visual Studio Code - Improving your Elm experience since ... If your setup fails to find the global installations of those, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found