Issue #16027 has been updated by Josh Cooper. Category set to error reporting Status changed from In Topic Branch Pending Review to Merged - Pending Release Affected Puppet version set to development
The pretty_backtrace method was added in commit f0c176805. Later the log_exception method was modified to call the pretty_backtrace method as part of fixing nested exception handling in commit 698f5f84 The fix was merged into 3.x in commit 3282124747b65971e869552c152f02c6b969e044 ---------------------------------------- Bug #16027: Stack traces are printed without method names https://projects.puppetlabs.com/issues/16027#change-70794 Author: Luke Kanies Status: Merged - Pending Release Priority: Normal Assignee: Category: error reporting Target version: 3.0.0 Affected Puppet version: development Keywords: Branch: https://github.com/puppetlabs/puppet/pull/1109 When I get an exception that produces a stack trace, I'm still getting file names and line numbers, but no method names. E.g., here's one I caused: Error: Testing on node localhost /Users/luke/git/puppet/lib/puppet/parser/resource.rb:111 /Users/luke/git/puppet/lib/puppet/parser/resource.rb:80 /Users/luke/git/puppet/lib/puppet/parser/compiler.rb:282 /Users/luke/git/puppet/lib/puppet/parser/compiler.rb:96 /Users/luke/git/puppet/lib/puppet/parser/compiler.rb:29 /Users/luke/git/puppet/lib/puppet/indirector/catalog/compiler.rb:77 /Users/luke/git/puppet/lib/puppet/util.rb:184 /Users/luke/git/puppet/lib/puppet/indirector/catalog/compiler.rb:75 /Users/luke/git/puppet/lib/puppet/indirector/catalog/compiler.rb:35 /Users/luke/git/puppet/lib/puppet/indirector/indirection.rb:191 /Users/luke/git/puppet/lib/puppet/application/apply.rb:204 /Users/luke/git/puppet/lib/puppet/application/apply.rb:146 /Users/luke/git/puppet/lib/puppet/application.rb:342 /Users/luke/git/puppet/lib/puppet/application.rb:436 /Users/luke/git/puppet/lib/puppet/application.rb:342 /Users/luke/git/puppet/lib/puppet/util.rb:513 /Users/luke/git/puppet/lib/puppet/application.rb:342 /Users/luke/git/puppet/lib/puppet/util/command_line.rb:74 /Users/luke/git/puppet/bin/puppet:10 Error: Testing on node localhost /Users/luke/git/puppet/lib/puppet/parser/resource.rb:111 /Users/luke/git/puppet/lib/puppet/parser/resource.rb:80 /Users/luke/git/puppet/lib/puppet/parser/compiler.rb:282 /Users/luke/git/puppet/lib/puppet/parser/compiler.rb:96 /Users/luke/git/puppet/lib/puppet/parser/compiler.rb:29 /Users/luke/git/puppet/lib/puppet/indirector/catalog/compiler.rb:77 /Users/luke/git/puppet/lib/puppet/util.rb:184 /Users/luke/git/puppet/lib/puppet/indirector/catalog/compiler.rb:75 /Users/luke/git/puppet/lib/puppet/indirector/catalog/compiler.rb:35 /Users/luke/git/puppet/lib/puppet/indirector/indirection.rb:191 /Users/luke/git/puppet/lib/puppet/application/apply.rb:204 /Users/luke/git/puppet/lib/puppet/application/apply.rb:146 /Users/luke/git/puppet/lib/puppet/application.rb:342 /Users/luke/git/puppet/lib/puppet/application.rb:436 /Users/luke/git/puppet/lib/puppet/application.rb:342 /Users/luke/git/puppet/lib/puppet/util.rb:513 /Users/luke/git/puppet/lib/puppet/application.rb:342 /Users/luke/git/puppet/lib/puppet/util/command_line.rb:74 /Users/luke/git/puppet/bin/puppet:10 Note that I'm actually getting it twice. I caused the stacktrace with this patch: diff --git a/lib/puppet/parser/resource.rb b/lib/puppet/parser/resource.rb index 6d9f996..5bfc37f 100644 --- a/lib/puppet/parser/resource.rb +++ b/lib/puppet/parser/resource.rb @@ -107,6 +107,8 @@ class Puppet::Parser::Resource < Puppet::Resource add_defaults add_scope_tags validate + p self + raise "Testing" end # Has this resource already been finished? And running 'puppet apply ~/bin/test.pp'. This is against current HEAD of 3.x. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
