Bug 247907 - typo "kindof" in plasma-scriptengine-ruby applet.rb resize
Summary: typo "kindof" in plasma-scriptengine-ruby applet.rb resize
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasma4
Classification: Plasma
Component: scriptengines (show other bugs)
Version: 4.8.1
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-15 01:58 UTC by Eckhart Wörner
Modified: 2018-06-08 19:53 UTC (History)
1 user (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 Eckhart Wörner 2010-08-15 01:58:02 UTC
Version:           unspecified (using Devel) 
OS:                Linux

This bug has been copied over from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592841

----

There's a typo in the "resize" function in:
/usr/share/kde4/apps/plasma_scriptengine_ruby/applet.rb

Line 90 has:
if args.length == 1 && args[0].kindof?(Qt::Size)

And it should read:
if args.length == 1 && args[0].kind_of?(Qt::Size)

(Note the underscore difference between kindof and kind_of)

This causes ruby plasma widgets (cpu frequency selector) to fail with "script initialization error"

I'm not certain whether this affects upstream, but this doesn't appear to be a Debian specific file.

Let me know if you need anything else.
Regards,
--Mike


Reproducible: Didn't try
Comment 1 Thijs 2012-01-11 11:18:04 UTC
Just checked the master branch, and this is typo is still there. Without the knowledge to check whether it is a typo or not, of course.
Comment 2 Eckhart Wörner 2012-01-11 22:15:00 UTC
http://ruby-doc.org/core-1.9.3/Object.html#method-i-kind_of-3F agrees with the bug report.
Comment 3 Nate Graham 2018-06-08 19:53:29 UTC
Hello!

This bug report was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this bug is already resolved in Plasma 5.

Accordingly, we hope you understand why we must close this bug report. If the issue described  here is still present in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting

If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging

Thanks for your understanding!

Nate Graham