Summary: | python_utils pate plugins do not work | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Riskable <riskable> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | a.j.ball, alessandro.pisa, christoph, i.zaufi, jan.cespivo, justgivemeafkenaccountplx, serhiy.int, tonal.promsoft |
Priority: | NOR | ||
Version: | 3.13.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | This should at least make the plugins functional |
Description
Riskable
2014-04-27 02:08:21 UTC
Thanks for your hints, they lead me to discover more! There have been changes to the pate decorators and apparently the python_utils code (shipped by kubuntu 14.04 in the kate-data deb) did not get updated. I think here you can find the original (unmantained) repo of the python_utils: - https://github.com/goinnn/Kate-plugins Now the code should be here: - https://projects.kde.org/projects/kde/applications/kate/repository/revisions/23267e27341e46f921d97bd765014bc2552f85f1/show/addons/kate/pate/src/plugins/python_utils I fixed the plugins manually by: 1) fixing something like a tenth of imports (I made them relative) 2) removing any additional parameter assigned to the kate.action decorator (e.g. @kate.action(**KATE_ACTIONS['parseCode']) -> @kate.action) 3) removing .f from the decorated functions (e.g. checkAll.f -> checkAll) I would be glad to contribute a proper patch. Ciao P.s.: this is the first time I write here, forgive me if I said stupid things :p Created attachment 86385 [details]
This should at least make the plugins functional
(In reply to comment #1) > Thanks for your hints, they lead me to discover more! > There have been changes to the pate decorators and apparently the > python_utils code (shipped by kubuntu 14.04 in the kate-data deb) did not > get updated. yep. a lot of things has changed in python plugins since kate 3.13 > I think here you can find the original (unmantained) repo of the > python_utils: > - https://github.com/goinnn/Kate-plugins do not use it! it's completely out of date. > > I fixed the plugins manually by: > 1) fixing something like a tenth of imports (I made them relative) good > 2) removing any additional parameter assigned to the kate.action decorator > (e.g. @kate.action(**KATE_ACTIONS['parseCode']) -> @kate.action) since there some actions supposed to be, this patch shuld contain *_ui.rc file… > 3) removing .f from the decorated functions (e.g. checkAll.f -> checkAll) > > I would be glad to contribute a proper patch. > Ciao better to add a review to https://git.reviewboard.kde.org reffering to this "bug". PS. I wrote "bug", cuz honestly I don't like this set of plugins for a bunch of reasons: * it reintroduce some ugly snippets while kate already has them builtin (even if not consider more advanced way to do the same (even better) w/ expand Python plugin) * it had some issues w/ python3 in the past, so personally I never use that tools even for python programming… dunno, if that has been fixed… it seems the author abandon this plugin as well… (In reply to comment #3) I think it`s bug because this feature is documented (http://docs.kde.org/stable/en/applications/kate/pate.html) and does not work. This is also happening for me, on Kubuntu 14.04. I was using 14.04 beta and if my memory serves me correctly, it was working up to and even after release. This is something that has crept in with an update. Tested on three Kubuntu machines, two of which I know used to work, and a fresh install of 14.04.1 which has never worked. I managed to get the python_utils appearing in the Python Plugins menu by putting an empty __init__.py in /usr/share/kde4/apps/kate/pate/python_utils and I can enable the plugin but when enabled I find no trace of it in the UI. The Python simple console appears broken in the same way, although it appears in the menu already. Needs some serious attention, this :( The KDE 4.x based version is no longer under active development and for KF5 we even have no Pate available due to nobody stepping up to do the necessary Python bindings for KF5. Therefore Pate bugs are no longer relevant here, if we get a new Pate version for KF5 up and running, it won't resemble the old variant anyway. |