Opened 9 years ago

Last modified 7 years ago

#1271 assigned enhancement

Padre::Plugin::Plack, fix for missing version, api change

Reported by: bowtie Owned by: submersible_toaster
Priority: minor Milestone:
Component: plugins Version: 0.87
Keywords: reload fails Cc:


enc diff, for version, and api name change r14590

  • lib/Padre/Plugin/

    55use warnings; 
    66use strict; 
     7our $VERSION = '1.200'; 
    78use base 'Padre::Plugin'; 
    89use utf8; 
    1920sub padre_interfaces { 
    20     'Padre::Plugin'     => 0.43, 
    21       'Padre::Document' => 0.57; 
     21    'Padre::Plugin'     => 0.84, 
     22      'Padre::Document' => 0.84; 
    2425=method registered_documents 
  • lib/Padre/Document/

    5252    TRACE( ' setting icon to ' . $self->icon_path ) if DEBUG; 
    5454    my $main = Padre->ide->wx->main; 
    55     my $id   = $main->find_id_of_editor( $self->editor ); 
     55    my $id   = $main->editor_id( $self->editor ); 
    5656    my $icon = Wx::Bitmap->new( $self->icon_path, Wx::wxBITMAP_TYPE_PNG ); 
    5757    $main->notebook->SetPageBitmap( $id, $icon ); 
  • I generate the following error on Plugin reload, other wise appears to work :)

Can't locate object method "is_unused" via package "Padre::Document::PSGI" at

/usr/src/Padre/Padre/lib/Padre/Wx/ line 335 (#1)

(F) You called a method correctly, and it correctly indicated a package
functioning as a class, but that package doesn't define that particular
method, nor does any of its base classes. See perlobj.

Uncaught exception from user code:

Can't locate object method "is_unused" via package "Padre::Document::PSGI" at /usr/src/Padre/Padre/lib/Padre/Wx/ line 335.

at /usr/src/Padre/Padre/lib/ line 249

Padre::run('Padre=HASH(0xa5fa0f8)') called at /usr/src/Padre/Padre/script/padre line 178

Perl exited with active threads:

5 running and unjoined
0 finished and unjoined
0 running and detached

Attachments (1) (29.8 KB) - added by bowtie 9 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 years ago by bowtie

  • Owner changed from patspam to submersible_toaster
  • Status changed from new to assigned

Changed 9 years ago by bowtie

comment:2 Changed 7 years ago by SvenDowideit

applied patch, commited and now it loads.

comment:3 Changed 7 years ago by SvenDowideit

ok, so there are a couple of remaining issues:

1 if you create a new app, the panel does not get the widgets added to it
2 when a panel is created (either open an existing psgi file, or step 1, its not doced to the bottom, its kind of floating unresonsivly over the document window
3 stopping the standalone server kills padre - wiht 'can't localte Proc/Killfam?.pm

also - should I be able to debug it? that would be really rather useful.

Note: See TracTickets for help on using tickets.