Bug 995932 - Syntax Highlighting not working when Language and Module names differ
Summary: Syntax Highlighting not working when Language and Module names differ
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 3.1
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: 3.2
Assignee: Jeff Fearn 🐞
QA Contact: tools-bugs
URL:
Whiteboard:
: 997213 1004027 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-12 03:43 UTC by Jacquelynn East
Modified: 2014-07-13 15:28 UTC (History)
8 users (show)

Fixed In Version: 3.2.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-04 06:20:38 UTC
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.