Wrong inspection on "$Resource.SLDS"

Issue #2121 resolved
Jan Lampa created an issue

Hello Scott,

we have at our project small issue with code inspection on VF page. We have a static resource with name SLDS and we are frequently importing resources from it. Unfortunately it always shows this error in editor:

For some reason it only shows this error when static resource is named “SLDS”. For example we have very similar resource named “SLDS100” where there is no error.

examples:

<apex:stylesheet value="{!URLFOR($Resource.SLDS, 'assets/styles/salesforce-lightning-design-system-vf.css')}"/>

<svg aria-hidden="false" class="slds-button__icon">
    <use xlink:href="{!URLFOR($Resource.SLDS, '/assets/icons/action-sprite/svg/symbols.svg#close')}"></use>
</svg>

<script>
  var assetsLocation = '{!URLFOR($Resource.SLDS)}';
</script>

It would be great if this could be resolved we have about 100 of these non errors at our project.

Comments (3)

  1. Scott Wells repo owner

    Good timing. Fix committed for inclusion in today's build. The issue, for what it's worth, is that SLDS is a reserved word in the expression language grammar, but it was simple enough to make it an allowed identifier name as well.

  2. Log in to comment