On Tue, Jul 6, 2010 at 3:21 PM, Chris Marshall <[email protected]> wrote:
> punk.kish at gmail dot com writes:
>>
>> I am using pdl2, the new command line replacement for
>> perldl. I am not sure what I am gaining, but I do know that
>> I don't like its error reporting. It spews out loads of
>> error messages, none of which are really helpful to me as a
>> user. Here is an example
>>
>> PDL> p 4c
>> Bareword found where operator expected at (eval 528) line 5, near "4c"
>>       (Missing operator before c?)
>> Compile error: syntax error at (eval 528) line 7, near "4c
>>
>> "
>
> This much I get, it pretty much is the error you get from perl
> for an invalid construct.
>
>> BEGIN not safe after errors--compilation aborted at (eval 528) line 7.
>>  at (eval 528) line 7
>> eval 'package main;
>> sub {
>> BEGIN { if ( $_REPL->_has_hints ) { ( $^H, %^H ) = @{ $_REPL->_hints }
>> } }{ no warnings \'void\'; \'\'; }
>> BEGIN { $Devel::REPL::Plugin::Commands::COMMAND_INSTALLER->(__PACKAGE__) }
>> p 4c
>>
>> ; BEGIN { $Devel::REPL::Plugin::Packages::PKG_SAVE = __PACKAGE__; };
>> BEGIN { $_REPL->_hints([ $^H, %^H ]) }
>> }
>>
>> ...snip...
>
> I don't get these. A couple of things to note: (1)
> the number of lines of output is alot but it is just
> a stack trace with pretty much a report of a problem
> with its location in file/line for each level of the
> stack, and (2) reading through I see an error in
> .../Devel/REPL/Plugin/Commands.pm line 62.
>
> That is a problem since the latest Perldl2 loads
> PDLCommands.pm as the plugin. Commands.pm conflicts and
> will give a compile time error. Make sure you are using
> the latest Perldl2 from the latest PDL CPAN Developers
> release.
>
> Also, try using the find command to see if you have a
> duplicate install of the Perldl2.pm profile file which
> would also explain the compile error.  When you get the
> huge backtraces, that usually idicates a compile issue
> at the shell internals level.
>
> In future, attaching the startup message with its
> information on version and plugins loaded will help
> make this more like debugging and less speculation.
>


punk...@lucknow ~$pdl2
Perldl2 Shell v0.003
         PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file
         'COPYING' in the PDL distribution. This is free software and you
         are welcome to redistribute it under certain conditions, see
         the same file for details.
Loaded plugins:
  Commands
  Completion
  CompletionDriver::INC
  CompletionDriver::Keywords
  CompletionDriver::LexEnv
  CompletionDriver::Methods
  DDS
  FindVariable
  History
  Interrupt
  LexEnv
  MultiLine::PPI
  NiceSlice
  PDLCommands
  Packages
  PrintControl
  ReadLineHistory
Type 'help' for online help
Type Ctrl-D or quit to exit
Loaded PDL v2.4.6_011
load_rcfile: got $HOME = /Users/punkish
load_rcfile: loading PDL/default.perldlrc
PDL>

will work on other debugging suggestions you mentioned.

> Cheers,
> Chris
>



-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to