Custom Labels not resolving

Issue #1261 resolved
George Mandala created an issue

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)

  1. Scott Wells repo owner

    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.

  2. George Mandala reporter

    After I downloaded the labels into my local project, they started resolving. Thanks!

  3. Scott Wells repo owner

    Glad to hear! I'll definitely look into that change I mentioned previously so this works whether you have the labels locally or not.

  4. Log in to comment