Cannot Resolve Symbol (all class references are labeled as red) but SObject refs are okay

289 views
Skip to first unread message

Dave Seligson

unread,
Dec 8, 2020, 10:52:03 PM12/8/20
to Illuminated Cloud Q&A
Hi Scott,
I just started getting this error in a new scratch org--old scratch orgs are fine.
References to any Apex Class from another Apex class appear as red errors.
"Cannot Resolve Symbol".  Note that references to SObjects are fine.

My idea.log shows a bunch of "Indexing process should not rely on non-indexed file data"
I'm attaching the log.

My suspicion is that the config file for scratch org creation has evolved and I need to make a change to it, but I'm not sure what that change should be.
Thanks for any help,
DaveS

Here's my sfdx-project.json
{
"packageDirectories": [ { "path": "force-app", "default": true }],
"namespace": "",
"sourceApiVersion": "47.0"
}
I'm running
sfdx-cli/7.81.0-7b953c80d1 win32-x64 node-v12.18.3

Idea version:

idea.log

Scott

unread,
Dec 9, 2020, 10:35:33 AM12/9/20
to Illuminated Cloud Q&A, dave.s...@gmail.com
Dave, I'm working on those "Indexing process should not..." log entries now, but those shouldn't result in the behavior you're seeing...certainly not at a full project scope. How are your project's source roots configured? If you're not sure, can you please provide your project's .iml file for review?

Regards,
Scott Wells

Dave Seligson

unread,
Jan 22, 2021, 10:06:36 PM1/22/21
to Illuminated Cloud Q&A, Scott, Dave Seligson
Scott,
I built a new ScratchOrg today and I'm seeing the same issue where all class references are labeled as errors in red.
When I reported this issue last month, your direction to Invalidate Caches/Restart worked perfectly.
Now, however, I have rebuilt this scratchOrg 3 times, and upon seeing the same issue, found that "Invalidate Caches/Restart..." doesn't fix the problem.

I'm attaching the project's iml file.
I'm running
DX Version: sfdx-cli/7.84.2-a2868a68d5 win32-x64 node-v12.18.3
IntelliJ version:
IntelliJ IDEA 2020.3.1 (Ultimate Edition)
Build #IU-203.6682.168, built on Dec 29 2020
11.0.9.2+11-b1145.63 amd64

IlluminatedCloud version: Version 2.1.5.6 Build 20210119105554
elkLog.iml
Reply all
Reply to author
Forward
0 new messages