Skip to content
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

More Than Ugly stacktraces due to precompilation (hashes instead of filenames) #4869

Closed
p6rt opened this issue Dec 14, 2015 · 5 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Dec 14, 2015

Migrated from rt.perl.org#126908 (status was 'resolved')

Searchable as RT126908$

@p6rt
Copy link
Author

p6rt commented Dec 14, 2015

From @AlexDaniel

This problem is well known, but maybe this bug report will help to
coordinate efforts.

For example, sometimes you may get an error like this (borrowed from RT
126832)​:

The spawned process exited unsuccessfully (exit code​: 1) in sub
run-and-gather-output at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/C27BE995DC18074CA8F64980F69FEB80BADF5619​:86
in block at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/A40B6CBA2E85D9DAA45064316EBEB9E42B0036E1​:24
in sub indir at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/C27BE995DC18074CA8F64980F69FEB80BADF5619​:20
in method test at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/A40B6CBA2E85D9DAA45064316EBEB9E42B0036E1​:5
in method install at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/1BC9777EC40C29C8331437E926CD4C13B983C026​:141
in method resolve at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/1BC9777EC40C29C8331437E926CD4C13B983C026​:219
in sub MAIN at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/resources/9FF75FC978A3556E531F982825B3EDBBBA834D9E​:18
in block <unit> at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/resources/9FF75FC978A3556E531F982825B3EDBBBA834D9E​:145

Trying to figure out what is happening here is pretty hard. Basically you
have to open each file to see what's inside. I wish these files had regular
filenames.

That being said, I think that precompilation is way more important than
readable stacktraces. But let's have both.

@p6rt
Copy link
Author

p6rt commented Jan 30, 2016

From @MadcapJake

I also agree that this renders the stacktraces basically useless. Here's a
stack that Bailador gives me​:

Too many positionals passed; expected 3 arguments but got 4
  in method render at
/home/jrusso/.rakudobrew/moar-nom/install/share/perl6/site/sources/A2E027789F0B4D3B6A5FCF168DAB702F10B504BF
line 140
  in method render at
/home/jrusso/.rakudobrew/moar-nom/install/share/perl6/site/sources/B984C8E09D6795857F86A9BB5741E86B0D43B909
line 8
  in method template at
/home/jrusso/.rakudobrew/moar-nom/install/share/perl6/site/sources/6FBB546BBE02E85FD75F4092B80DFBB2DA9640D3
line 14
  in sub template at
/home/jrusso/.rakudobrew/moar-nom/install/share/perl6/site/sources/17D4C22BDB2EA965DE7C0978F62C8F7CEC529FA0
line 120
  in sub at app.pl6 line 9

Which could be much better written using the module name and the module
file name, e.g.,

Too many positionals passed; expected 3 arguments but got 4
  in method render at Template​::Mustache/Mustache.pm line 140
  in method render at Bailador​::Template​::Mustache/Mustache.pm line 8
  in method template at Bailador​::App/Template.pm line 14
  in sub template at Bailador/Bailador.pm line 120
  in sub at app.pl6 line 9

I think this is a critical issue to address.

@p6rt
Copy link
Author

p6rt commented Jan 30, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 11, 2016

From @niner

This should be resolved since we nowadays add the requested module name (what's been use'd) to the plain file name in stacktraces.

@p6rt
Copy link
Author

p6rt commented Jun 11, 2016

@niner - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jun 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant