Created attachment 121945 [details] test file for Emmet script "Expand abbreviation" in Kate SUMMARY It looks like all the Emmet scripts are broken/not working, except the ones to increment/decrement numbers. STEPS TO REPRODUCE 1. Open the attached file "testEmmetKate" 2. Go on line 7, at the end of the abbreviation, and try to run the menu item Tools->Scrpts->Emmet->Expand abbreviation OBSERVED RESULT Nothing happens EXPECTED RESULT The abbreviation ul#nav>li.item$*4>a{Item $} should expand to: <ul id="nav"> <li class="item1"><a href="">Item 1</a></li> <li class="item2"><a href="">Item 2</a></li> <li class="item3"><a href="">Item 3</a></li> <li class="item4"><a href="">Item 4</a></li> </ul> This is exactly the base example from Emmet documentation at https://docs.emmet.io/ SOFTWARE/OS VERSIONS Linux/KDE Plasma: Mageia 7 KDE Plasma Version: 5.15.4 KDE Frameworks Version: 5.57.0 Qt Version: 5.12.2 and also: Linux/KDE Plasma: Manjaro KDE Plasma Version: 5.16.3 KDE Frameworks Version: 5.60.0 Qt Version: 5.13.0 ADDITIONAL INFORMATION I tested all the scripts from the Emmet list, and only those to increment/decrement numbers work as expected. SIDE NOTE: Is there any way to use shortcuts to activate those scripts? If yes I couldn't find it, if no that would be very much needed for users who rely on those scripts for productivity.
Hmm, too bad that this did break down :/ Guess the migration to QJSEngine did cause that.
These Emmet stuff was broken a long time, and then fixed. https://phabricator.kde.org/R39:120e8400cad69fb21cab3c7b05dca77904c40fbf Not tested now, sorry.
Indeed does not work with KTextEditor 5.62. But we don't get a JavaScript error as well, so currently finding the issue is not trivial. Likely some V4 bug in the Qt JS implementation.
Is not working on: Fedora 31 Ubuntu 19.10 Ubuntu 18.04 The only thing I found is https://cgit.kde.org/ktexteditor.git/commit/src/script/data/CMakeLists.txt?id=f3f4319f5ee15e0447e37ac5e85b3841c9671133 Don't know what to do. Thanks.
I cannot reproduce anymore with Kate 22.08 and Frameworks 5.99. Is this still an issue?
Let's assumed that is fixed.
Yes, just tested in Kate 22.12.3, and I confirm the given example works properly.