Custom Labels not resolving
Issue #1261
resolved
Whenever I use a custom label from the System.Label namespace I get a "Cannot resolve symbol" error even after I regenerate the offline symbol table.
Should they be resolving?
Comments (3)
-
repo owner -
reporter After I downloaded the labels into my local project, they started resolving. Thanks!
-
repo owner - changed status to resolved
Glad to hear! I'll definitely look into that change I mentioned previously so this works whether you have the labels locally or not.
- Log in to comment
Hi, George. Labels are resolved against your local *.labels files and not based on the contents of the OST. Have you retrieved your labels into the local project?
FWIW, I have wanted to change this to add the labels from the org into the OST and "merge" those with the local ones for completion and resolution to avoid the need to download them into the local project. Same with other special Apex compile-time expressions for Visualforce pages, etc. I just haven't done that yet.