Item14818: Config.spec missing semicolon

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: WebFontsContrib
Branches: master
Reported By: PaulMerchantJr
Waiting For:
Last Change By: MichaelDaum
In the version of WebFontsContrib released on 1/31/19, WebFontsContrib/lib/Foswiki/Contrib/WebFontsContrib/Config.spec is missing a semicolon after the final '}'. This causes an error when the file is evaluated within Foswiki:


Foswiki::Configure::Query::getspec errors: ..../lib/Foswiki/Contrib/WebFontsContrib/Config.spec: 5: Cannot eval value '{
'prefix' => 'ma',
'definition' => '$Foswiki::cfg{PubDir}/$Foswiki::cfg{SystemWebName}/WebFontsContrib/material-icons/material.json',
'css' => '$Foswiki::cfg{PubUrlPath}/$Foswiki::cfg{SystemWebName}/WebFontsContrib/material-icons/font-face.css', 
}

1': syntax error at (eval 52213) line 7, near "}

or more directly:


perl Config.spec
Number found where operator expected at Config.spec line 11, near "1"
   (Missing semicolon on previous line?)
syntax error at Config.spec line 11, near "1"
Execution of Config.spec aborted due to compilation errors.

-- PaulMerchantJr - 04 Feb 2019

This seems fixed in the latest release. Please upgrade.

-- MichaelDaum - 05 Feb 2019

I just updated WebFontsContrib from the auto-installer, and got the same error.

I checked the Config.spec file at github, it was the same as the one I installed.

So I added a semicolon after the last bracket, and left the semicolon after the "1" in place, and the errors went away.

Just sharing my experience...

-- PaulHarrison - 11 Feb 2019

OIC.

-- MichaelDaum - 11 Feb 2019
 
Topic revision: r4 - 11 Feb 2019, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy