eclipse exits with a kdialog error

Bug #68385 reported by Pierre Buard
26
Affects Status Importance Assigned to Milestone
eclipse (Debian)
Fix Released
Unknown
eclipse (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: eclipse

Eclipse exits with this error :

searching for compatible vm...
  testing /usr/lib/jvm/java-1.5.0-sun...found
kdialog: Option <--warning> unknown.
kdialog: Use --help [...]

After editing "/usr/bin/eclipse" to remove the call to "--warning" (Lines 140 to 145), Eclipse starts.

I'm guessing that since it doesn't find "libgtkembedmoz.so" the script is supposed to end with a dialog warning me about it.

Revision history for this message
da1l6 (da1l6) wrote :

Hello

Can confirm this. The Eclipse start scipt does not handle the different dialogs properly.

Looking at it gives me a slight WTF feeling!

The beginning:
if [ -x /usr/bin/zenity ]; then
    DIALOG=/usr/bin/zenity
elif [ -x /usr/bin/kdialog ]; then
    DIALOG=/usr/bin/kdialog
elif [ -x /usr/bin/xdialog ]; then
    DIALOG=/usr/bin/xdialog
else
    DIALOG=echo
fi

The last one is especially cool, since this would echo the whole *dialog parameter list on the terminal! But at least Eclipse would work!

But since kdialog uses diffent options than the one this was tested with, it fails. Obviously nobody ever tested this with kdialog.

Revision history for this message
Pierre Buard (pierre-buard) wrote :

Thank you, that solved the problem with kdialog.

Revision history for this message
Jonathan Riddell (jr) wrote :

As far as I know kdialog should be backwards compatible with xdialog, but maybe it's not. You can use --error <text> as is suggested above or --warningyesno <text> or --warningcontinuecancel <text> or --warningyesnocancel <text>. Without seeing the original call I'm unsure which is most suitable.

Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

Fixed in Feisty:

eclipse (3.2.1-2ubuntu1) feisty; urgency=low

  * Merge with Debian unstable; remaining changes:
    - Regenerated control file.

eclipse (3.2.1-2) unstable; urgency=low

  [ Matthias Klose ]
  * libswt3.2-gtk-jni: Add conflict with duplicate copy in the
    Debian archive. Closes: #401819.
  * debian/eclipse-rcp.postinst: Don't create empty file
    /usr/local/lib/eclipse/.eclipseextension. Closes: #392510.
  * Fix kdialog option error. Closes: #396626.

 -- Matthias Klose <email address hidden> Wed, 13 Dec 2006 11:36:17 +0100

Changed in eclipse:
status: Unknown → Fix Released
Revision history for this message
William Grant (wgrant) wrote :

Fixed in Feisty. Kai, I've seen quite a number of bugs where you've commented that it's fixed but haven't set the status to Fix Released. Please do so in future, or things get forgotten.

Changed in eclipse:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.