- Errors in Plasmoids would only say what the line number was, not what file the error came from. For Plasmoids with multiple files in them, this is less than great. In KDE SC 4.5, the UI will show the filename as well as the line number of the error. In KDE SC 4.4.1 this information will appear on the console. (The difference is due to translation: we can't change strings in the stable branch after release.)
- rect.adjusted was not working; it is now (it was improperly described as as getter in the bindings)
- pixmap.scaled was not working; it is now (and had the same problem as rect.adjusted)
The list of errata is getting longer and I don't want people to have to wait for KDE SC 4.4.1 to become available to them to get resolution to these issues. So I've decided to make a tarball containing the Javascript Scriptengine from the 4.4 branch that fixes all the issues I've covered in my blog over the last week:
I'll be updating the tarball as needed to catch additional issues between now and 4.4.1. Plasmoids submitted to the Javascript Jam may use the version in the 4.4 branch or in the errata tarball so that they don't have to put up with bugs. :)
To build it, make sure you have the kdelibs devel and cmake packages for your system installed (`zypper install libkde4-devel cmake` on Suse, and `apt-get build-dep kdelibs` on Debian?), and then do something like this:
tar xvf plasma-scriptengine-javascript-4.4-errata.tar.bz2
mkdir plasma-scriptengine-javascript-build
cd plasma-scriptengine-javascript-build
cmake ../plasma-scriptengine-javascript-4.4-errata
make
su -c (or sudo) "make install"
Voila!
Also, there is a transcript of Saturday's Javascript Plasmoid training session available, and physos has also put it on a page on Techcbase.
Enjoy! :)

6 comments:
Thanks again for the quick fix, Aaron. :)
"apt-get build-dep kde4libs" on Debian/Kubuntu, but yes. :)
apt-get install build-dep kde4libs
I tried to do "svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeexamples" but it says "svn: No such revision 1092519". Any ideas what is wrong here?
svn, version 1.6.6 (r40053)
BTW, great training session, I love it!
svn has been fixed, so I could try some examples. A few notes:
1. tiger plasmoid doesn't work after errata patches since rect is no longer function, it's a property of plasmoid object now
2. Can't figure out how to fix script-digital-clock plasmoid.
2.1. I found mistype dataUpdate -> dataUpdated - that's ok
2.2. I receive TypeError on the line:
dataEngine("time").connectSource("UTC", plasmoid, 500);
Only this call works for me:
dataEngine("time").connectSource("UTC", plasmoid);
but it doesn't update clocks :(.
Checked on both clean 4.4.0 and patched versions.
3. I don't see all these errors on the console but only in the plasmoidviewer window.
For those who is tracking this post. We talked with Aaron on IRC and he corrected script-digital-clock in svn repo, so this example works fine now.
Post a Comment