Opened 6 years ago

Closed 6 years ago

#78 closed defect (worksforme)

No Perl Tidy menu

Reported by: zika01 Owned by:
Priority: major Milestone:
Component: editor Version:
Keywords: Cc:

Description

After installation of Padre-Plugin-PerlTidy?-0.01, there is no 'Perl Tidy' or Plugin menu (Padre version 0.12)

Change History (3)

comment:1 Changed 6 years ago by bricas

What operating system?

What menus do you see?

For reference, I have: File, Edit, View, Perl, Plugins, Window and Help. Under Plugins have a PerlTidy? menu as well.

comment:2 Changed 6 years ago by zika01

I am using Fedora9 with: Padre 0.12

Padre-Plugin-PerlTidy?-0.01
perl v5.10.0 built for i386-linux-thread-multi,
wxGTK 2.8.7-2,
kernel 2.6.26.5-45.fc9.i686 ,

After installation of Padre and Padre-Plugin-PerlTidy?:

ls /usr/local/lib/perl5/site_perl/5.10.0/Padre

Config.pm Document Plugin Pod Project.pm Wx
DB.pm Document.pm PluginManager?.pm PPI.pm Util.pm Wx.pm

ls /usr/local/lib/perl5/site_perl/5.10.0/Padre/Plugin

PerlTidy?.pm

which padre

/usr/local/bin/padre

If I start padre, I can see following menus:

File, Edit,View,Perl,Windows,Help

comment:3 Changed 6 years ago by zika01

  • Resolution set to worksforme
  • Status changed from new to closed

Quick solution was to comment line:

delete $plugins->{$file};

in function _load_plugin() of PluginManager?.pm.

First time this function is called for the module (value of $file), it loads the module and ads new element in hash %plugins. But, if it is called again for the same module, it deletes entry from %plugins.

The fact is that the function is called more then ones, and information about plugins is deleted.

Note: See TracTickets for help on using tickets.