Bug 247437 - python-encoding plugin cannot be found
Summary: python-encoding plugin cannot be found
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 23:40 UTC by Todd
Modified: 2011-06-18 10:40 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todd 2010-08-11 23:40:53 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

Whenever I try to save a python script in kate, I get the following error:

"The filter/check plugin 'python-encoding' could not be found, still continue saving of <python file path>"

With the options:

"Save nevertheless" and "Cancel"

Reproducible: Didn't try

Steps to Reproduce:
Create a blank (or not blank) kate file.  Save it as a file with the extension ".py"

Actual Results:  
I get the error message above.  The file still saves successfully.

Expected Results:  
It saves the file without any error message.

This did not happen in 4.4.x
Comment 1 Félim Whiteley 2010-08-12 01:23:32 UTC
I can add this happens with 4.5.0 Kubuntu packages also. It also did not happen with prior versions.
Comment 2 Clovis Gladstone 2010-08-12 06:33:54 UTC
I confirm this also happens with KDE 4.5.0 Opensuse packages. It's very frustrating too...
Comment 3 bzugmeyer 2010-08-12 21:56:36 UTC
Same here, with Archlinux testing and KDE 4.5.0 SC

To remove the message, go to the kate's configuration panel, "Open/Save", "Files types and modes", select "Scripts/Python", and delete the content of the "Variables" field, then restart Kate.

I hope the plugin will be back soon, it's really useful.
Comment 4 Miquel Torres 2010-08-13 12:00:26 UTC
(In reply to comment #3)
> Same here, with Archlinux testing and KDE 4.5.0 SC
> 
> To remove the message, go to the kate's configuration panel, "Open/Save",
> "Files types and modes", select "Scripts/Python", and delete the content of the
> "Variables" field, then restart Kate.
> 
> I hope the plugin will be back soon, it's really useful.

Confirmed with Kubuntu Lucid. bgzumeyer's suggestiong worked but, what do you mean by "hope the plugin will be back soon"?
Comment 5 bzugmeyer 2010-08-13 13:49:34 UTC
It is a small plugin which adds the line
# -*- coding: utf-8 -*-
on top of the .py files when saving it. It seems that it is currently missing in KDE 4.5...
Comment 6 Romain Henriet 2010-08-15 11:59:04 UTC
I confirm on OpenSuse 11.3 too, with kde 4.5.0
Comment 7 Burkhard Lück 2010-08-16 18:28:28 UTC
This bug is "fixed" with this commit:

http://websvn.kde.org/branches/KDE/4.5/kdelibs/kate/data/katemoderc?view=log

The fix means the plugin is no longer in 4.5 :(

/Me found it often very usefull.
Comment 8 Dominik Haumann 2010-08-17 23:43:04 UTC
What about enabling the build again, but still let the modeline removed for 4.5.1?
Comment 9 Burkhard Lück 2010-08-18 06:41:29 UTC
(In reply to comment #8)
> What about enabling the build again, but still let the modeline removed for
> 4.5.1?

I'd prefer this solution and could explain it in the documentation, just need a decision in that direction and answers to my questions here:

http://lists.kde.org/?l=kwrite-devel&m=128202354323082&w=2