Padre 0.17 released

gabor on 2008-11-17T13:13:33

I am please to announce yet another weekly release of Padre, the Perl IDE.

As usual you should look at the Changes file.

The highlights are, well it is difficult to decide which features are going to be important to you so I list most of them here along with the person who added the feature.

  • Optional highlighting of current line (via background color) (HJANSEN)
  • Code folding (#61) (HJANSEN)
  • Word Wrap and "Default word wrap on for each file" in Preferences (FAYLAND)
  • Show/Hide Output or Functions (FAYLAND)
  • Add configuration option to the autoindentation (no, same_level, deep). (SZABGAB)
  • Allow opening multiple files at once (#43) (JQUELIN)
  • Add Padre::Plugin::MY and set it to be a prefered plugin. (SZABGAB)
  • Join lines with Ctrl+J (#128) (JQUELIN)
  • Full screen view (#131) (JQUELIN)
  • Hide/show white spaces and tabs (#132) (JQUELIN)
  • Selection markers to ease selection (#133) (JQUELIN)
  • Drag-n-drop files from Filer Explorer (CORION)
  • Add experimental and basic vi mode. (SZABGAB)
  • Fix Shift-TAB (#141) (SZABGAB)
  • Limit the plugin names to one deep only. Second level namespaces are saved for the implementation details. (SZABGAB)
  • Experimental perl -c based syntax checking. (HJANSEN)
  • Clean recent files list (#126). (FAYLAND)
  • Open all recent files (#125). (FAYLAND)
  • Alt-1, Alt-2, etc removed. (#122) (SZABGAB)
  • Initial Javascript support. (FAYLAND)
  • Move between the editor, the output window and the subs window with some hot-key (#14) (SZABGAB)

As you can see most of work is already done by others which is great. For one, I would not be able to some of these things and it also means the projects started to generate interest.

I'd really like thank all the contributors their efforts to make Padre better every day.

If you look at the project page of Padre on Ohloh you'll see that there are still more contributors than users but I hope soon others will also start using Padre and mark it on Ohloh.

Download

You can wait till your CPAN mirror catches up or you can use pip, if you have installed it:

pip http://www.perlide.org/download/Padre-0.17.tar.gz

You should also check out the many Padre plugins on CPAN. Search for Padre::Plugin.

Further help can be found on the Padre home page where you can find links to the development mailing list. You are also welcome to join us on IRC on #padre

enjoy and report any issues


Can't Install

Ovid on 2008-11-19T11:48:45

Whenever I try to install Padre, I get issues when it hits Wx::Perl::ProcessStream (required by Wx::Perl::Dialog). I get this:

Writing Makefile for Wx::Perl::ProcessStream
cp lib/Wx/Perl/ProcessStream.pm blib/lib/Wx/Perl/ProcessStream.pm
Manifying blib/man3/Wx::Perl::ProcessStream.3pm
  MDOOTSON/Wx-Perl-ProcessStream-0.11.tar.gz
  make -- OK
Running make test
PERL_DL_NONLAZY=1 /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level/auto/Wx/wxPerl.app/ Contents/MacOS/wxPerl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t .... ok
t/01-events.t .. 1/32 [Debug] 11:35:25: ../src/mac/carbon/app.cpp(1152): assert "wxAssertFailure" failed in Yield(): wxYield called recursively

This hangs until I click 'cancel' on the dialog. I tried to force this install, just in case, but I get this:

~ $ padre
~ $ [Debug] 11:44:47: ../src/mac/carbon/menu.cpp(983): assert "submenu" failed in Append(): can't append invalid menu to menubar
Can't locate object method "SetText" via package "Wx::MenuItem" at /Library/Perl/5.8.8/Padre/Wx/Menu.pm line 523.

And yes, I was trying to install with Apple's wxPerl 5.8.8, not the regular Perl :)

$ uname -a
Darwin curtis-poes-computer-2.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep  3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386

Try again wih 0.18

gabor on 2008-11-24T07:51:32

Unfortunately I don't have a solution but I suggest you to install Padre (now 0.18) without that module.

That module is needed only to run a script from Padre. While it is an important feature but you can already use all the other features without that too.

Maybe give it a try again with 0.18. Please also let us know which version of wxWidgets you have t/02-new.t is supposed to report it. (I use Wx 0.87 and wxWidgets 2.8.8)

Re:Try again wih 0.18

Ovid on 2008-11-24T21:00:50

Same thing with 0.18, but that's without trying to avoid that module. How would I go about doing that? Do I need to download the tarball and hack things to make it work? I tried a 'force install' and Padre still fails.

$ 20:58:32: Debug: ../src/mac/carbon/menu.cpp(983): assert "submenu" failed in Append(): can't append invalid menu to menubar
20:58:40: Debug: ../src/mac/carbon/menu.cpp(983): assert "submenu" failed in Append(): can't append invalid menu to menubar
20:58:42: Debug: ../src/mac/carbon/menu.cpp(983): assert "submenu" failed in Append(): can't append invalid menu to menubar
Can't locate object method "GetMenuLabel" via package "Wx::MenuBar" at /Library/Perl/5.8.8/Padre/Wx/Menu.pm line 191.

Re:Try again wih 0.18

gabor on 2008-11-24T21:27:25

what does this give you?

perl -MWx -e'print  "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING() . "\n"'

Re:Try again wih 0.18

Ovid on 2008-11-24T22:08:46

On OS X, wxPerl is compiled separately and pre-installed:

$ wxPerl -MWx -le'print  "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING()'
Wx Version: 0.88 wxWidgets 2.8.4

Also, note the 'l' (el) option to perl. It adds a newline to everything you print, making one-liners a bit cleaner (note that for some strange reason, 'printf' is exempt from this).

Re:Try again wih 0.18

gabor on 2008-11-24T22:15:21

yeah, I copy pasted it more or less from our source code.

Anyway you need to upgrade wxWidgets.

Please install Alien::wxWidgets. When it asks you, let it compile wxWidgets for you. It is supposed to fetch wxWidgets 2.8.8 at that point which fails many times. The workaround is to download the wxWidgets file yourself an put it in the unzipped directory of Alien::wxWidgets before running make.