Ticket #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: |
Description
enc diff, for version, and api name change r14590
-
lib/Padre/Plugin/Plack.pm
4 4 5 5 use warnings; 6 6 use strict; 7 our $VERSION = '1.200'; 7 8 use base 'Padre::Plugin'; 8 9 use utf8; 9 10 … … 17 18 =cut 18 19 19 20 sub padre_interfaces { 20 'Padre::Plugin' => 0. 43,21 'Padre::Document' => 0. 57;21 'Padre::Plugin' => 0.84, 22 'Padre::Document' => 0.84; 22 23 } 23 24 24 25 =method registered_documents -
lib/Padre/Document/PSGI.pm
52 52 TRACE( ' setting icon to ' . $self->icon_path ) if DEBUG; 53 53 54 54 my $main = Padre->ide->wx->main; 55 my $id = $main-> find_id_of_editor( $self->editor );55 my $id = $main->editor_id( $self->editor ); 56 56 my $icon = Wx::Bitmap->new( $self->icon_path, Wx::wxBITMAP_TYPE_PNG ); 57 57 $main->notebook->SetPageBitmap( $id, $icon ); 58 58
- 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
Change History
comment:1 Changed 23 months ago by bowtie
- Owner changed from patspam to submersible_toaster
- Status changed from new to assigned
comment:3 Changed 4 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.
