0
Welcome Guest! Login
0 items Join Now

SOLVED Recompile CSS error goes away too quick and is hard to see

    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 413
    • Thanks: 17

    SOLVED Recompile CSS error goes away too quick and is hard to see

    Posted 6 years 2 months ago
    • I get an error when I try to recompile SCSS in Hydrogen.

      Undefined variable $darkGrey: line: 20

      I've got my site set up with
      custom.scss
      _colours.scss
      


      custom.scss
      contains
      @import "dependencies";
      @import "colours";
      at the very top

      _colours.scss
      contains
      $gold:      #cc9600;
      $orange:    #e37222;
      $darkGrey:  #656565;
      $brown:     #745d3e;

      They were working, but I wanted to make changes so I switched off all the cache, cleared the cache and then added a new colour and I get this error and none of my colours appear.

      Firstly, it would be good if we had to manually dismiss this error rather than it fading away. Then we could try to identify the problem. But the problem seems to be that the _colours.scss file isn't being pulled in or used or something.

      Can anyone think of why?
    • Last Edit: 6 years 2 months ago by Eoin.
    • Just a lonely web designer trying to make his way
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Recompile CSS error goes away too quick and is hard to see

    Posted 6 years 2 months ago
    • Please would you post your URL, superuser id and pswd in the secure tab of your post and I'll have a look for you.

      The errors won't fade out if you just leave your mouse pointer over them.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 413
    • Thanks: 17

    Re: SOLVED Recompile CSS error goes away too quick and is hard to see

    Posted 6 years 2 months ago
    • Thanks for taking a look, really appreciate it.

      Even though the error won't fade out if you keep the mouse over it (I hadn't realised, great tip), sometimes the errors are too long to see them all, so it would still be better if there was an improved solution.
    • Just a lonely web designer trying to make his way
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Recompile CSS error goes away too quick and is hard to see

    Posted 6 years 2 months ago
    • We won't be changing how the errors work. Errors should rarely happen and if they do the chances are that it will be one or two things causing a long list of errors. In any case you will want to just pick off the errors one at a time - I really don't see any need to change this at all.

      So, I checked your custom.scss and whilst you are importing your _colours.scss it does not have any variable defined for "darkGrey" and "brown" - so the error message is correct.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 413
    • Thanks: 17

    Re: SOLVED Recompile CSS error goes away too quick and is hard to see

    Posted 6 years 2 months ago
    • That's wierd, it must be FTP going crazy I see them at my end. I'll reboot the FTP and then it will probably upload properly. Sorry for not noticing such a basic error, thanks again for your help.
    • Just a lonely web designer trying to make his way

Time to create page: 0.051 seconds