Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Padre-Plugin-PerlTidy CPAN distribution.

Report information
The Basics
Id: 61993
Status: resolved
Priority: 0/
Queue: Padre-Plugin-PerlTidy

People
Owner: ahmad.zawawi [...] gmail.com
Requestors: RENEEB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.10
Fixed in: (no value)



Subject: Can't tidy code under linux
Hi, When I try to tidy up the code, I get the following error: ** (padre:27027): CRITICAL **: murrine_style_draw_shadow: assertion `width >= -1' failed ** (padre:27027): CRITICAL **: murrine_style_draw_shadow: assertion `width >= -1' failed My system: Ubuntu 9.10 Perl 5.10.1 Padre 0.70 Padre::Plugin::PerlTidy 0.10 Perl::Tidy 20090616 Wx 0.98 wxWidgets 2.00801 On Windows I can tidy the same code. My Windows system: Windows 7 Perl 5.8.9 Padre 0.70 Padre::Plugin::PerlTidy 0.10 Perl::Tidy 20090616 Wx 0.9702 wxWidgets 2.00801 I have no idea, what this error is about... And I don't know if this is a bug in the plugin or in Padre... - Renée
On Fri Oct 08 12:09:52 2010, RENEEB wrote: Show quoted text
> Hi, > > When I try to tidy up the code, I get the following error: > > ** (padre:27027): CRITICAL **: murrine_style_draw_shadow: assertion > `width >= -1' failed > > ** (padre:27027): CRITICAL **: murrine_style_draw_shadow: assertion > `width >= -1' failed > > My system: > > Ubuntu 9.10 > Perl 5.10.1 > Padre 0.70 > Padre::Plugin::PerlTidy 0.10 > Perl::Tidy 20090616 > Wx 0.98 > wxWidgets 2.00801 > > On Windows I can tidy the same code. My Windows system: > > Windows 7 > Perl 5.8.9 > Padre 0.70 > Padre::Plugin::PerlTidy 0.10 > Perl::Tidy 20090616 > Wx 0.9702 > wxWidgets 2.00801 > > I have no idea, what this error is about... And I don't know if this
is Show quoted text
> a bug in the plugin or in Padre... > > - Renée
Hi, I just tried it on Ubuntu 9.10 and it worked for me. The debug output is really weird.
Subject: Re: [rt.cpan.org #61993] Can't tidy code under linux
Date: Mon, 11 Oct 2010 11:32:27 +0200
To: bug-Padre-Plugin-PerlTidy [...] rt.cpan.org
From: Renee Bäcker <perl [...] renee-baecker.de>
Am 11.10.2010 09:29, schrieb Ahmad M. Zawawi via RT: Show quoted text
> > Hi, > > I just tried it on Ubuntu 9.10 and it worked for me. The debug output is > really weird.
Can you give me some hints how to debug the error? Renée
On Mon Oct 11 05:32:46 2010, perl@renee-baecker.de wrote: Show quoted text
> Am 11.10.2010 09:29, schrieb Ahmad M. Zawawi via RT:
> > > > Hi, > > > > I just tried it on Ubuntu 9.10 and it worked for me. The debug
output is Show quoted text
> > really weird.
> > Can you give me some hints how to debug the error? > > Renée > >
Please execute the following command: svn checkout http://svn.perlide.org/padre/trunk/Padre-Plugin-PerlTidy and add locally debugging statements in _tidy subroutine inside Padre::Plugin::PerlTidy (in the lib folder) and then test it by # first time only... perl Makefile.PL make make test # while debugging... make install Each time you "make install", you need to restart you Padre. Please let me know where does that panic happen? /Ahmad
Subject: Re: [rt.cpan.org #61993] Can't tidy code under linux
Date: Mon, 11 Oct 2010 15:37:36 +0200
To: bug-Padre-Plugin-PerlTidy [...] rt.cpan.org
From: Renee Bäcker <perl [...] renee-baecker.de>
Ok, the error occurs on the line "my $output = $main->output" if the output panel is disabled when Padre is started. The Plugin then tries to draw a widget (see attached screenshot). When I activate the output panel, everything is fine. Even when I disable it then, I can call the tidy plugin. So this might be a bug in Padre itself... - Renée

Message body is not shown because sender requested not to inline it.

Perfect. Thanks... Fixing :)
A quick update, Bug confirmed in Padre. Padre::Wx::Output assumes that the bottom pane is initialized and thus a new call to $padre_main->output without an active bottom pane seems to cause it to be bound to an undefined pane. If you had "Syntax Check" on, it would work flawlessly which also confirms this idea. /Ahmad
Fixed in r12624 http://padre.perlide.org/trac/changeset/12624 Hopefully the maintainer will upload it soon :) Thanks, Ahmad M. Zawawi
Subject: Can't tidy code when the bottom pane is off on Padre startup
Fixed. Please reopen if otherwise :) - Ahmad M. Zawawi (azawawi)