[Padre-dev] Next release on Saturday/Sunday
Petar Shangov
pshangov at yahoo.com
Fri Jan 2 07:26:47 PST 2009
----- Original Message ----
> From: Steffen Mueller <smueller at cpan.org>
> To: Padre development discussion list <padre-dev at perlide.org>
> Sent: Friday, 2 January, 2009 16:55:24
> Subject: Re: [Padre-dev] Next release on Saturday/Sunday
>
> Hi Petar, hi all,
>
> Petar Shangov wrote:
> >> The problem as far as I can understand is that transmo() function
> >> is generated in a Task and it is not available when the code is
> >> trying to call it.
> >
> > The transmo() function is generated during
> > Padre::Task::ErrorParser->run (in 'Parse::ErrorString::Perl->new'),
> > and is called during Padre::Task::ErrorParser->finish (in
> > '$parser->parse_string'). Is it possible that 'finish' is called
> > before 'run' has completed?
>
> No, that's not the problem. The run() method is called in a thread. Only
> what you store in the Padre::Task::ErrorParser object is ever visible to
> the main thread (and thus the code in the finish() method). More likely
> than not, you cannot transfer code refs reliably using Storable.
>
> Cheers,
> Steffen
There are no coderefs involved, the transmo() is generated in eval and used internally by Parse::ErrorString::Perl. Unfortunately I'll have to give up on this until I find a way to replicate it.
Petar
More information about the Padre-dev
mailing list