Ticket #1271 (assigned enhancement)

Opened 3 years ago

Last modified 15 months ago

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:

Description

enc diff, for version, and api name change r14590

  • lib/Padre/Plugin/Plack.pm

     
    44 
    55use warnings; 
    66use strict; 
     7our $VERSION = '1.200'; 
    78use base 'Padre::Plugin'; 
    89use utf8; 
    910 
     
    1718=cut 
    1819 
    1920sub padre_interfaces { 
    20     'Padre::Plugin'     => 0.43, 
    21       'Padre::Document' => 0.57; 
     21    'Padre::Plugin'     => 0.84, 
     22      'Padre::Document' => 0.84; 
    2223} 
    2324 
    2425=method registered_documents 
  • lib/Padre/Document/PSGI.pm

     
    5252    TRACE( ' setting icon to ' . $self->icon_path ) if DEBUG; 
    5353 
    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 ); 
    5858 
  • 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/Syntax.pm 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/Syntax.pm line 335.

at /usr/src/Padre/Padre/lib/Padre.pm 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

Plack.pm.patch (29.8 KB) - added by bowtie 3 years ago.

Change History

comment:1 Changed 3 years ago by bowtie

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

Changed 3 years ago by bowtie

comment:2 Changed 15 months ago by SvenDowideit

applied patch, commited and now it loads.

comment:3 Changed 15 months 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.