NAV 4.2 does not work with SASS 3.4 or newer, but the install docs do not specify this

Bug #1396924 reported by Ingeborg Hellemo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Medium
John-Magne Bredal

Bug Description

OS FreeBSD 10.1

NAV installed from src distribution, both 4.1 and 4.2

The nav.css file in the src distribution is flawed and the resulting web page looks like a plane crash site.

We have solved this by copying nav.css from "verktøykassen".

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

The css is created by compiling .sass files with sass.

Running this manually will give some error that we would be interested in. My guess is that your sass version is out of date or incompatible with the latest sass format.

Go to htdocs and run make clean; make, and take a look in the generated css/nav.css file.

Revision history for this message
Ingeborg Hellemo (ingeborg-hellemo) wrote : Re: [Bug 1396924] Re: NAV 4, nav.css in src is flawed
  • css-diff Edit (203.8 KiB, text/plain ; name="css-diff"; charset=iso-8859-1)
Download full text (6.5 KiB)

<email address hidden> said:
> Running this manually will give some error that we would be interested in. My
> guess is that your sass version is out of date or incompatible with the
> latest sass format.

Or perhaps to new? rubygem-sass-3.4.5

No errors during compiling

/usr/local/bin/sass --update sass:static/css
  directory static/css/font-awesome
      write static/css/font-awesome/font-awesome.css

      write static/css/font-awesome/font-awesome.css.map

      write static/css/nav.css

      write static/css/nav.css.map

  directory static/css/nav

      write static/css/nav/DeviceBrowserTemplate.css

      write static/css/nav/DeviceBrowserTemplate.css.map

      write static/css/nav/alertprofiles.css

      write static/css/nav/alertprofiles.css.map

      write static/css/nav/arnold.css

      write static/css/nav/arnold.css.map

      write static/css/nav/calendar.css

      write static/css/nav/calendar.css.map

      write static/css/nav/color.css

      write static/css/nav/color.css.map

      write static/css/nav/custom.css

      write static/css/nav/custom.css.map

      write static/css/nav/devicehistory.css

      write static/css/nav/devicehistory.css.map

      write static/css/nav/errorpages.css

      write static/css/nav/errorpages.css.map

      write static/css/nav/form.css

      write static/css/nav/form.css.map

      write static/css/nav/foundation.css

      write static/css/nav/foundation.css.map

      write static/css/nav/geomap.css

      write static/css/nav/geomap.css.map

      write static/css/nav/index.css

      write static/css/nav/index.css.map

      write static/css/nav/info_room.css

      write static/css/nav/info_room.css.map

      write static/css/nav/info_vlan.css

      write static/css/nav/info_vlan.css.map

      write static/css/nav/ipdevinfo.css

      write static/css/nav/ipdevinfo.css.map

      ...

Read more...

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote : Re: NAV 4, nav.css in src is flawed

Thanks for the detailed log.

You are totally correct in that the version you are using is too new and has backwards incompatible changes. Luckily an update of the sass-files was scheduled for 4.3, so this is already solved for that version of NAV. Until that is released you have to use sass 3.3 to compile the sass-files.

Howto install sass version:

gem install sass -v 3.3.9
gem uninstall sass
(you will be able to choose version)

remove all css files in htdocs/static/css
run make

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

It is of course better to do
make clean; make

Changed in nav:
status: New → Confirmed
assignee: nobody → John-Magne Bredal (john-m-bredal)
milestone: none → 4.3.0
Revision history for this message
Ingeborg Hellemo (ingeborg-hellemo) wrote : Re: [Bug 1396924] Re: NAV 4, nav.css in src is flawed

<email address hidden> said:
> You are totally correct in that the version you are using is too new and has
> backwards incompatible changes. Luckily an update of the sass-files was
> scheduled for 4.3, so this is already solved for that version of NAV. Until
> that is released you have to use sass 3.3 to compile the sass-files.

In case there are more 4.2.X-releases it is wise to update
doc/intro/install.rst with a "< 3.4"

--Ingeborg

Revision history for this message
Morten Brekkevold (mbrekkevold) wrote : Re: NAV 4.2 does not work with SASS 3.4 or newer

John-Magne, I see you tried to fix the documentation in https://nav.uninett.no/hg/stable/rev/0e732300b628, but there is a typo. Making a follow-up fix in https://nav.uninett.no/hg/stable/rev/76ab0875b2d8.

summary: - NAV 4, nav.css in src is flawed
+ NAV 4.2 does not work with SASS 3.4 or newer
Changed in nav:
importance: Undecided → Medium
milestone: 4.3.0 → 4.2.2
status: Confirmed → Fix Committed
summary: - NAV 4.2 does not work with SASS 3.4 or newer
+ NAV 4.2 does not work with SASS 3.4 or newer, but the install docs do
+ not specify this
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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