New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing to $*OUT at BEGIN time results in an [LTA] error message #4959
Comments
From @hoelzroFor example, in test.pl:
in TestModule.pm:
If we run test.pl, we get the following failure: ===SORRY!=== The commit that introduces the problem is 54e0577 on Rakudo. |
From @ninerYour demonstration code does not show an error like you described. What it does show is that the precompilation process uses STDOUT to communicate back the dependencies of a precompiled module. That means, that you cannot also use STDOUT in your module's main line. There shouldn't be a reason for a module to say anything during BEGIN time. For debugging, use note. STDERR is unused. If you find a use case where a module really has to print something to STDOUT during loading, please also find a good way for the precompilation process to communicate :) |
The RT System itself - Status changed from 'new' to 'open' |
@niner - Status changed from 'open' to 'rejected' |
From @LLFournI have had this happen too. I think it's actually doing anything that
|
@hoelzro - Status changed from 'rejected' to 'open' |
From @hoelzroOn 2015-12-30 21:44:42, lloyd.fourn@gmail.com wrote:
From IRC (http://irclog.perlgeek.de/perl6/2016-01-03#i_11823821)​:
My only suggestion for a fix at this time is to perhaps dup standard output to a file descriptor for writing precomp IDs, open standard output to /dev/null (or the platform equivalent), and perhaps make Another idea is to avoid writing precomp IDs to standard output, and instead provide an output filename via the command line. |
From @hoelzroFeedback from Stefan:
http://irclog.perlgeek.de/perl6/2016-01-03#i_11823946 On 2016-01-03 14:20:34, rob@hoelz.ro wrote:
|
From @FROGGSThere is a bandaid now: rakudo/rakudo@cc0472b43e |
Migrated from rt.perl.org#127086 (status was 'open')
Searchable as RT127086$
The text was updated successfully, but these errors were encountered: