Skip Menu |

This queue is for tickets about the UI-Dialog CPAN distribution.

Report information
The Basics
Id: 111472
Status: resolved
Priority: 0/
Queue: UI-Dialog

People
Owner: kevin [...] krinke.ca
Requestors: robn [...] mirrabooka.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.13



Subject: CDialog menus not showing
Date: Thu, 28 Jan 2016 15:56:37 +1100
To: bug-UI-Dialog [...] rt.cpan.org
From: Rob Newton <robn [...] mirrabooka.com>
Hi,

CDialog menus are not showing anything in version 1.12.  The call to $d->menu() just returns immediately without showing anything.  They work fine with version 1.09.

Both were using the same version of 'dialog', 1.2-20130523 .

Both were tested on redhat enterprise linux 7.2 .

use UI::Dialog::Backend::CDialog;
my $d = new UI::Dialog::Backend::CDialog ( backtitle => 'Demo',
                                          title => 'Default' );

# DOES NOT SHOW ANYTHING
my $selection1 = $d->menu( text => 'Select one:',
                           list => [ 'tag1', 'item1',
                                     'tag2', 'item2',
                                    'tag3', 'item3' ]
                         );

# THIS msgbox WORKS
$d->msgbox( title => 'Welcome!', text => 'Welcome one and all!' );

Cheers,
Rob

On Wed Jan 27 23:56:59 2016, robn@mirrabooka.com wrote: Show quoted text
> Hi,
Hello Show quoted text
> CDialog menus are not showing anything in version 1.12. The call to > $d->menu() > just returns immediately without showing anything. They work fine with > version > 1.09.
Thanks for the bug report Rob! The issue was an invalid option was being given with the --menu command. This should be resolved in the 1.13 release. Please re-test your code! Let me know if you have any further issues. My best, Kevin
Subject: Re: [rt.cpan.org #111472] CDialog menus not showing
Date: Mon, 1 Feb 2016 16:12:57 +1100
To: bug-UI-Dialog [...] rt.cpan.org
From: Rob Newton <robn [...] mirrabooka.com>
Hi again,

I have tried installing 1.13 .  The tests fail for CDialog and Zenity.

Thanks,
Rob

# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/UI-Dialog-Backend-ASCII.t ..... ok  
t/UI-Dialog-Backend-CDialog.t ... 1/?
#   Failed test at t/UI-Dialog-Backend-CDialog.t line 74.
#          got: '/usr/bin/dialog --title "TITLE" --backtitle "BACKTITLE" --defaultno --extra-button --help-button --no-cancel --no-collapse --no-shadow --shadow --tab-correct --max-input ""
--tab-len "" --menu "TEXT" "16" "64" "5"  "tag0" "item0" "tag1" "item1"'
#     expected: '/usr/bin/dialog --title "TITLE" --backtitle "BACKTITLE" --defaultno --extra-button --help-button --no-cancel --no-collapse --no-shadow --shadow --tab-correct --max-input ""
--tab-len "" --separate-output --menu "TEXT" "16" "64" "5"  "tag0" "item0" "tag1" "item1"'
Use of uninitialized value in numeric eq (==) at /root/.cpan/build/UI-Dialog-1.13-Xc2WOc/blib/lib/UI/Dialog/Backend/CDialog.pm line 665.

#   Failed test at t/UI-Dialog-Backend-CDialog.t line 81.
#          got: '/usr/bin/dialog --title "TITLE" --backtitle "BACKTITLE" --defaultno --extra-button --help-button --no-cancel --no-collapse --no-shadow --shadow --tab-correct --max-input ""
--tab-len "" --separate-output --checklist "TEXT" "16" "64" "5"  "tag0" "item0" "off" "tag1" "item1" "on"'
#     expected: '/usr/bin/dialog --title "TITLE" --backtitle "BACKTITLE" --defaultno --extra-button --help-button --no-cancel --no-collapse --no-shadow --shadow --tab-correct --max-input ""
--tab-len "" --separate-output --checklist "TEXT" "16" "64" "5"  "tag0" "item0" "off" "tag1" "item1" "on" "tag0" "item0" "off" "tag1" "item1" "on"'

#   Failed test at t/UI-Dialog-Backend-CDialog.t line 88.
#          got: '/usr/bin/dialog --title "TITLE" --backtitle "BACKTITLE" --defaultno --extra-button --help-button --no-cancel --no-collapse --no-shadow --shadow --tab-correct --max-input ""
--tab-len "" --radiolist "TEXT" "16" "64" "5"  "tag0" "item0" "off" "tag1" "item1" "on"'
#     expected: '/usr/bin/dialog --title "TITLE" --backtitle "BACKTITLE" --defaultno --extra-button --help-button --no-cancel --no-collapse --no-shadow --shadow --tab-correct --max-input ""
--tab-len "" --radiolist "TEXT" "16" "64" "5"  "tag0" "item0" "off" "tag1" "item1" "on" "tag0" "item0" "off" "tag1" "item1" "on"'
# Looks like you failed 3 tests of 15.
t/UI-Dialog-Backend-CDialog.t ... Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/15 subtests
t/UI-Dialog-Backend-GDialog.t ... 1/? # Tests skipped, backend binary not found.
t/UI-Dialog-Backend-GDialog.t ... ok  
t/UI-Dialog-Backend-KDialog.t ... skipped: Skipped until better tests are written.
t/UI-Dialog-Backend-Nautilus.t .. skipped: Skipped until better tests are written.
t/UI-Dialog-Backend-Whiptail.t .. ok   
t/UI-Dialog-Backend-XDialog.t ... skipped: Skipped until better tests are written.
t/UI-Dialog-Backend-XOSD.t ...... skipped: Skipped until better tests are written.
t/UI-Dialog-Backend-Zenity.t .... 1/? Use of uninitialized value $tail in join or string at /usr/share/perl5/Text/Wrap.pm line 36.
Use of uninitialized value $_[0] in join or string at /root/.cpan/build/UI-Dialog-1.13-Xc2WOc/blib/lib/UI/Dialog/Backend.pm line 129.
Use of uninitialized value $_[0] in pattern match (m//) at /root/.cpan/build/UI-Dialog-1.13-Xc2WOc/blib/lib/UI/Dialog/Backend.pm line 130.
Use of uninitialized value $_[0] in join or string at /root/.cpan/build/UI-Dialog-1.13-Xc2WOc/blib/lib/UI/Dialog/Backend.pm line 129.
Use of uninitialized value $_[0] in pattern match (m//) at /root/.cpan/build/UI-Dialog-1.13-Xc2WOc/blib/lib/UI/Dialog/Backend.pm line 130.
t/UI-Dialog-Backend-Zenity.t .... ok   
t/UI-Dialog-Console.t ........... skipped: Skipped until better tests are written.
t/UI-Dialog-Gauged.t ............ skipped: Skipped until better tests are written.
t/UI-Dialog-GNOME.t ............. skipped: Skipped until better tests are written.
t/UI-Dialog-KDE.t ............... skipped: Skipped until better tests are written.
t/UI-Dialog-Screen-Druid.t ...... skipped: Skipped until better tests are written.
t/UI-Dialog-Screen-Menu.t ....... skipped: Skipped until better tests are written.
t/UI-Dialog.t ................... ok