Bug 371675

Summary: The import functionality for new syntax highlighting files disqualifies all files
Product: [Applications] kate Reporter: Tore Havn <veqz>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 16.04   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
URL: https://forum.kde.org/viewtopic.php?f=225&t=136892
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tore Havn 2016-10-25 18:07:49 UTC
When trying to import a new xml file (or as .kateklcolor) into Kate, the program just throws up a "File is not a single highlighting color file" message.

I have validated the file I'm trying to upload, and it seems to be correct. I have also tried just using an xml from ~/.local/share/katepart5/syntax/ and both incremented the version number of changing the "name" attribute, but the same error is thrown in all cases.

The url is to a post in the KDE forums where I asked for help and showed the files I was trying to import.

Reproducible: Always

Steps to Reproduce:
1. Start Kate and go to Settings -> Configure Kate... -> Fonts & Colors -> Highlighting Text Styles.
2. Click 'Import...' and select a valid xml or katehlcolor file.

Actual Results:  
A message box appears stating "File is not a single highlighting color file".

Expected Results:  
A new or updated version of a highlighting style should become available in Kate.
Comment 1 Christoph Cullmann 2019-05-20 13:39:59 UTC
I think this is a miss-understanding.

This import is only there to import color schemes. (like you would export them with "Export...")

XML files must be manually placed into the right folders like described in the manual.

New files there (or files with higher version than existing ones) should be taken up automatically on program start.