question-mark
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.

"Unresolved reference" everywhere

See original GitHub issue

When opening elm source files, I get an Unresolved reference error on every function.

I had a small existing elm 0.19 project. Elm is installed and all dependencies are installed and listed in elm.json. Running elm make or elm reactor from the command line gives no errors.

  • I went File > New > Project from existing sources.... Picked the directory containing my elm.json
  • It gave me a message “no elm toolchain configured”. I entered the path of my elm binary
  • It gave me a message “no elm.json”. I picked the right elm.json
  • It didn’t give any more messages, but every reference in every src file is marked as unresolved (including builtins like |> and >>) See the screen shot bleow.

Am I configuring something wrong? Or is this a bug? I’m on Windows with

elm version 0.19.0 npm version 6.1.0 intellij version:

IntelliJ IDEA 2017.2.6
Build #IU-172.4574.11, built on November 13, 2017
Licensed to Quinn Freedman
Subscription is active until August 25, 2019
For educational use only.
JRE: 1.8.0_152-release-915-b12 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
QuinnFreedmancommented, Oct 18, 2018

Here’s a shot of my now working external dependencies. I’m not sure why PHP is there though…

image

1reaction
klazukacommented, Oct 18, 2018

@rogererens wrote:

So maybe the bottom line is that after creating the project, one should run the elm program before starting to edit.

Yes, this is 100% the case. The IntelliJ plugin does not install any packages for you. All it does is read your elm.json file and expect that all dependencies can be found in the place that the Elm compiler wants them.

I have some work planned in the future to improve error handling when attaching an elm.json file. Right now it just silently ignores any dependencies that should be installed but aren’t.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GoLand (JetBrains) shows error message "Unresolved ...
While writing the code, GoLand shows me an error message such as "unresolved reference" when the reference do exist and that the program ......
Read more >
How to fix unresolved reference issue in Kotlin and Android ...
To conclude, the unresolved reference error happens when Kotlin has no idea what the keyword you're typing in the file points to. It...
Read more >
Suddenly unresolved references everywhere but nothing ...
Suddenly unresolved references everywhere but nothing marked as an error. I've checked my recent changes but there's nothing suspicious.
Read more >
Getting a `error: unresolved reference` with gradle-kotlin
Coding example for the question Getting a `error: unresolved reference` with gradle-kotlin.
Read more >
Kotlin Native Unresolved Reference
I can't seem to figure out how to avoid unresolved references, ... code I see red everywhere, really could use a hand, what...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found