SyntaxError: Undefined variable: '$cursor-disabled'.

Bug #1701765 reported by Alan Pevec
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

Bug Description

After https://review.openstack.org/337936 was merged, compress in RPM package build fails with:

Compressing... CommandError: An error occurred during rendering /builddir/build/BUILD/horizon-12.0.0.0b3.dev113/openstack_dashboard/templates/_stylesheets.html: Error evaluating expression:
     $cursor-disabled
 on line 70 of dashboard/scss/components/_spinners.scss
 imported from line 6 of dashboard/scss/horizon.scss
 imported from line 1 of u'string:0c838b58954113a8:\n // My Themes\n@import "/themes/default/variables";\n\n// Horizon\n@import "/dashboard/scss/horizon.'
 Traceback:
   File "/usr/lib64/python2.7/site-packages/scss/calculator.py", line 141, in evaluate_expression
     return ast.evaluate(self, divide=divide)
   File "/usr/lib64/python2.7/site-packages/scss/ast.py", line 346, in evaluate
     raise SyntaxError("Undefined variable: '%s'." % self.name)
 SyntaxError: Undefined variable: '$cursor-disabled'.

Tags: alert ci
Alan Pevec (apevec)
tags: added: alert
tags: added: ci
Revision history for this message
Alan Pevec (apevec) wrote :

Relevant part from python-django-horizon.spec for reproducing:

git clone openstack/horizon

cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py
python manage.py collectstatic --noinput --clear
python manage.py compress --force

Revision history for this message
Alan Pevec (apevec) wrote :

Worked around in RDO packaging
https://review.rdoproject.org/r/#/c/7285/5/python-django-horizon.spec@275
and followup fixup:
https://review.rdoproject.org/r/7366 Move workaround for $cursor-disabled

Beth Elwell (bethelwell)
Changed in horizon:
assignee: nobody → Beth Elwell (bethelwell)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/480127

Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

I'm unable to reproduce this upstream. I think its an RDO bug, probably with a theme.

Changed in horizon:
status: In Progress → Incomplete
Revision history for this message
Alan Pevec (apevec) wrote :

For the record: it was due to old python-XStatic-Bootstrap-SCSS-3.2.0.0 RPM package in RDO,
>= 3.3.7.1 is required.

Akihiro Motoki (amotoki)
Changed in horizon:
assignee: Beth Elwell (bethelwell) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.