"Evaluate Expression" failing with "$source not found"
Answered
I am using the latest Idea community version (2024.3) with Scala 3. While debugging, whenever I try to evaluate an expression using the "Evaluate Expression" tool, I get the following error most of the time (~90% of the time):
Expression compilation failed: $source file not found: /home/samik/…/<project>/target/.scala_dependencies
I have tried searching for this error, but have not seen much any hit. Any pointers? Where to get the `.scala_dependencies` file?
Thanks.
Please sign in to leave a comment.
Hello,
Unfortunately, I couldn't reproduce the issue on my side. Is it reproducible with any sample project on your side that could be provided for investigation? Also, please try to run “File | Invalidate Caches”.
Hi - I was able to resolve this issue. There was a spurious mention of this file in the build file (pom file), which was causing this issue.
Thanks!