Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9227

A SASS with imports is not refreshed until the root file is not changed

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.2.0
    • None
    • None
    • Chrome
    • 4.2 M6

      How to reproduce it :

      • In my skin, I have a custom.scss file with only this inside :
        @import "custom/custom";
      • In the custom folder, the _custom.scss file imports those files :
        @import "custom.variables";
        @import "fonts";
        @import "custom.mixins";
        @import "custom.global";
        @import "../settings/variables";
      • None of theses files import another file.   
      • I make a change inside the custom/_custom.scss file and I reload my page  
        > the css is not updated
      • I make a change inside the root custom.scss file
        > the css file that I previously changed is updated

      I have 2 errors in the logs :

      Location:    org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler._getDependenciesKeys(AbstractCompiledResourceHandler.java:226)
      Thrown:
      java.lang.NullPointerException
          at org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler._getDependenciesKeys(AbstractCompiledResourceHandler.java:198)
          at org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler._getDependenciesKeys(AbstractCompiledResourceHandler.java:217)
          at org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler._getDependenciesKeys(AbstractCompiledResourceHandler.java:217)
          at org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler.getKey(AbstractCompiledResourceHandler.java:145)
      Location:    org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler._getCalculatedLastModified(AbstractCompiledResourceHandler.java:184)
      Thrown:
      java.lang.NullPointerException
          at org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler._getCalculatedLastModified(AbstractCompiledResourceHandler.java:160)
          at org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler._getCalculatedLastModified(AbstractCompiledResourceHandler.java:175)
          at org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler._getCalculatedLastModified(AbstractCompiledResourceHandler.java:175)
          at org.ametys.plugins.core.ui.resources.AbstractCompiledResourceHandler.getValidity(AbstractCompiledResourceHandler.java:151)

          [CMS-9227] A SASS with imports is not refreshed until the root file is not changed

          Laure Lopez made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Raphaël Franchet made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Patch available [ 10005 ] New: Resolved [ 5 ]
          Raphaël Franchet made changes -
          Assignee New: Raphaël Franchet [ raphael ]
          Grégory Lefebvre (Inactive) made changes -
          Assignee Original: Grégory Lefebvre [ glefebvre ]
          Grégory Lefebvre (Inactive) made changes -
          Status Original: In Progress [ 3 ] New: Patch available [ 10005 ]
          Raphaël Franchet made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Cédric Damioli made changes -
          Rank New: Ranked higher
          Cédric Damioli made changes -
          Sprint Original: 4.2 M5 [ 22 ] New: 4.2 M6 [ 23 ]
          Cédric Damioli made changes -
          Rank New: Ranked higher
          Cédric Damioli made changes -
          Sprint New: 4.2 M5 [ 22 ]

            raphael Raphaël Franchet
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: