Skip to content

Instantly share code, notes, and snippets.

@kylog
Created January 13, 2014 22:53
Show Gist options
  • Save kylog/8409712 to your computer and use it in GitHub Desktop.
Save kylog/8409712 to your computer and use it in GitHub Desktop.
pup1212 for command: puppet apply --trace --parser future --evaluator future -e 'notice("hello" + 10)'
Error: Evaluation Error: The value 'hello' cannot be converted to Numeric. at line 1:8 on node kylo.local
/Users/kylo/devel/puppet/lib/puppet/pops/issue_reporter.rb:56:in `assert_and_report'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:474:in `accept'
/Users/kylo/devel/puppet/lib/puppet/pops/validation.rb:205:in `accept'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:16:in `fail'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:202:in `coerce_numeric'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:375:in `calculate'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:345:in `eval_ArithmeticExpression'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:43:in `block in visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `each'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:66:in `visit_this_1'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:678:in `block in eval_CallNamedFunctionExpression'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:678:in `collect'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:678:in `eval_CallNamedFunctionExpression'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:43:in `block in visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `each'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:66:in `visit_this_1'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:630:in `eval_Program'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:43:in `block in visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `each'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:66:in `visit_this_1'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/pops/parser/evaluating_parser.rb:176:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/parser/ast/pops_bridge.rb:94:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/parser/ast.rb:62:in `safeevaluate'
/Users/kylo/devel/puppet/lib/puppet/resource/type.rb:121:in `evaluate_code'
/Users/kylo/devel/puppet/lib/puppet/parser/resource.rb:79:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/parser/compiler.rb:366:in `evaluate_main'
/Users/kylo/devel/puppet/lib/puppet/parser/compiler.rb:111:in `block in compile'
/Users/kylo/devel/puppet/lib/puppet/util/profiler/none.rb:6:in `profile'
/Users/kylo/devel/puppet/lib/puppet/util/profiler.rb:31:in `profile'
/Users/kylo/devel/puppet/lib/puppet/parser/compiler.rb:111:in `compile'
/Users/kylo/devel/puppet/lib/puppet/parser/compiler.rb:24:in `compile'
/Users/kylo/devel/puppet/lib/puppet/indirector/catalog/compiler.rb:89:in `block (2 levels) in compile'
/Users/kylo/devel/puppet/lib/puppet/util/profiler/none.rb:6:in `profile'
/Users/kylo/devel/puppet/lib/puppet/util/profiler.rb:31:in `profile'
/Users/kylo/devel/puppet/lib/puppet/indirector/catalog/compiler.rb:87:in `block in compile'
/Users/kylo/devel/puppet/lib/puppet/util.rb:161:in `block in benchmark'
/Users/kylo/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/Users/kylo/devel/puppet/lib/puppet/util.rb:160:in `benchmark'
/Users/kylo/devel/puppet/lib/puppet/indirector/catalog/compiler.rb:86:in `compile'
/Users/kylo/devel/puppet/lib/puppet/indirector/catalog/compiler.rb:46:in `find'
/Users/kylo/devel/puppet/lib/puppet/indirector/indirection.rb:201:in `find'
/Users/kylo/devel/puppet/lib/puppet/application/apply.rb:204:in `main'
/Users/kylo/devel/puppet/lib/puppet/application/apply.rb:146:in `run_command'
/Users/kylo/devel/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
/Users/kylo/devel/puppet/lib/puppet/application.rb:470:in `plugin_hook'
/Users/kylo/devel/puppet/lib/puppet/application.rb:364:in `block in run'
/Users/kylo/devel/puppet/lib/puppet/util.rb:478:in `exit_on_fail'
/Users/kylo/devel/puppet/lib/puppet/application.rb:364:in `run'
/Users/kylo/devel/puppet/lib/puppet/util/command_line.rb:137:in `run'
/Users/kylo/devel/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/Users/kylo/devel/puppet/bin/puppet:4:in `<top (required)>'
Error: Evaluation Error: The value 'hello' cannot be converted to Numeric. at line 1:8 on node kylo.local
/Users/kylo/devel/puppet/lib/puppet/pops/issue_reporter.rb:51:in `assert_and_report'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:469:in `accept'
/Users/kylo/devel/puppet/lib/puppet/pops/validation.rb:205:in `accept'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:16:in `fail'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:202:in `coerce_numeric'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:375:in `calculate'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:345:in `eval_ArithmeticExpression'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:43:in `block in visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `each'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:66:in `visit_this_1'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:678:in `block in eval_CallNamedFunctionExpression'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:678:in `collect'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:678:in `eval_CallNamedFunctionExpression'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:43:in `block in visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `each'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `visit_this'
/Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:66:in `visit_this_1'
/Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/pops/parser/evaluating_parser.rb:177:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/parser/ast/pops_bridge.rb:27:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/parser/ast.rb:62:in `safeevaluate'
/Users/kylo/devel/puppet/lib/puppet/resource/type.rb:121:in `evaluate_code'
/Users/kylo/devel/puppet/lib/puppet/parser/resource.rb:79:in `evaluate'
/Users/kylo/devel/puppet/lib/puppet/parser/compiler.rb:366:in `evaluate_main'
/Users/kylo/devel/puppet/lib/puppet/parser/compiler.rb:111:in `block in compile'
/Users/kylo/devel/puppet/lib/puppet/util/profiler/none.rb:6:in `profile'
/Users/kylo/devel/puppet/lib/puppet/util/profiler.rb:31:in `profile'
/Users/kylo/devel/puppet/lib/puppet/parser/compiler.rb:111:in `compile'
/Users/kylo/devel/puppet/lib/puppet/parser/compiler.rb:24:in `compile'
/Users/kylo/devel/puppet/lib/puppet/indirector/catalog/compiler.rb:89:in `block (2 levels) in compile'
/Users/kylo/devel/puppet/lib/puppet/util/profiler/none.rb:6:in `profile'
/Users/kylo/devel/puppet/lib/puppet/util/profiler.rb:31:in `profile'
/Users/kylo/devel/puppet/lib/puppet/indirector/catalog/compiler.rb:87:in `block in compile'
/Users/kylo/devel/puppet/lib/puppet/util.rb:161:in `block in benchmark'
/Users/kylo/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/Users/kylo/devel/puppet/lib/puppet/util.rb:160:in `benchmark'
/Users/kylo/devel/puppet/lib/puppet/indirector/catalog/compiler.rb:86:in `compile'
/Users/kylo/devel/puppet/lib/puppet/indirector/catalog/compiler.rb:46:in `find'
/Users/kylo/devel/puppet/lib/puppet/indirector/indirection.rb:201:in `find'
/Users/kylo/devel/puppet/lib/puppet/application/apply.rb:204:in `main'
/Users/kylo/devel/puppet/lib/puppet/application/apply.rb:146:in `run_command'
/Users/kylo/devel/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
/Users/kylo/devel/puppet/lib/puppet/application.rb:470:in `plugin_hook'
/Users/kylo/devel/puppet/lib/puppet/application.rb:364:in `block in run'
/Users/kylo/devel/puppet/lib/puppet/util.rb:478:in `exit_on_fail'
/Users/kylo/devel/puppet/lib/puppet/application.rb:364:in `run'
/Users/kylo/devel/puppet/lib/puppet/util/command_line.rb:137:in `run'
/Users/kylo/devel/puppet/lib/puppet/util/command_line.rb:91:in `execute'
/Users/kylo/devel/puppet/bin/puppet:4:in `<top (required)>'
2,3c2,3
< /Users/kylo/devel/puppet/lib/puppet/pops/issue_reporter.rb:51:in `assert_and_report'
< /Users/kylo/devel/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:469:in `accept'
---
> /Users/kylo/devel/puppet/lib/puppet/pops/issue_reporter.rb:56:in `assert_and_report'
> /Users/kylo/devel/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:474:in `accept'
22,23c22,29
< /Users/kylo/devel/puppet/lib/puppet/pops/parser/evaluating_parser.rb:177:in `evaluate'
< /Users/kylo/devel/puppet/lib/puppet/parser/ast/pops_bridge.rb:27:in `evaluate'
---
> /Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:630:in `eval_Program'
> /Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:43:in `block in visit_this'
> /Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `each'
> /Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:39:in `visit_this'
> /Users/kylo/devel/puppet/lib/puppet/pops/visitor.rb:66:in `visit_this_1'
> /Users/kylo/devel/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
> /Users/kylo/devel/puppet/lib/puppet/pops/parser/evaluating_parser.rb:176:in `evaluate'
> /Users/kylo/devel/puppet/lib/puppet/parser/ast/pops_bridge.rb:94:in `evaluate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment