Bug 995932

Summary: Syntax Highlighting not working when Language and Module names differ
Product: [Community] Publican Reporter: Jacquelynn East <jeast>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: high Docs Contact:
Priority: urgent    
Version: 3.1CC: aigao, jfearn, jhradile, mhusnain, pkovar, redhatbugs, rlandman, sgordon
Target Milestone: 3.2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.2.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-04 06:20:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jacquelynn East 2013-08-12 03:43:38 UTC
Description of problem:
In trying to build the Developer Guide, it fails and I get the error 

undefined language: Cplusplus at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate.pm line 638.
cannot create plugin for language 'Cplusplus'

Performing a grep on "Cplusplus" reveals nothing, but "language="C++"" shows it being used in things like

<programlisting language="C++"><xi:include parse="text" href="extras/fruit/fruit2.cc" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>

The book was last built approximately 6 months ago and this error was not present then. 

Version-Release number of selected component (if applicable):
3.1

How reproducible:
Every time as far as I can gather. Jaromir also had the same error on the User Guide.

Steps to Reproduce:
1. Add the above language tag to a doc
2. Attempt to brew with publican.
3. Enjoy the errors!

Actual results:
Build failed

Expected results:
Build succeeds

Additional info:

Comment 3 HSS Product Manager 2013-08-16 03:47:37 UTC
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.

Comment 4 Stephen Gordon 2013-08-19 00:59:30 UTC
*** Bug 997213 has been marked as a duplicate of this bug. ***

Comment 5 Stephen Gordon 2013-08-19 01:00:42 UTC
Marked Bug # 997213 as a dupe because in a similar fashion it appears "INI Files" was accepted as a valid value in 3.1.5 but isn't in 3.2.0 (based on Kate.pm it still should be though).

Comment 6 Jeff Fearn 🐞 2013-08-19 01:43:15 UTC
Bug was in using Module name as language name, that only works if they match. e.g. XML is the language and the module, so that works.

To ssh://git.fedorahosted.org/git/publican.git
   42f4d93..4980426  HEAD -> devel

Comment 9 Misha H. Ali 2013-08-20 04:02:00 UTC
Checked with a local installation. Builds fine and the C++/Cplusplus parts looks fine.

Comment 10 Ruediger Landmann 2013-09-04 00:22:02 UTC
*** Bug 1004027 has been marked as a duplicate of this bug. ***