cfhighlander icon indicating copy to clipboard operation
cfhighlander copied to clipboard

cfhighlander issue when extending component with a mappings.yaml

Open Guslington opened this issue 4 years ago • 0 comments

cfhighlander version: 0.12.5

Project files

.
├── README.md
├── extend-error.cfhighlander.rb
├── extend-error.config.yaml
└── mysql
    ├── mysql.cfhighlander.rb
    ├── mysql.cfndsl.rb
    └── mysql.config.yaml

extend-error.cfhighlander.rb

CfhighlanderTemplate do
  Name 'extend-error'
  Description "extend-error"
	Component name: 'mysql', template: 'mysql'
end

mysql/mysql.cfhighlander.rb

CfhighlanderTemplate do
  Name 'mysql'
  Extends '[email protected]'
end

StackTrace

Config for mysql written to /Users/gus/src/testbed/hl/extend-error/out/config/mysql.config.yaml
cfndsl template for mysql written to /Users/gus/src/testbed/hl/extend-error/out/cfndsl/mysql.compiled.cfndsl.rb
Traceback (most recent call last):
	28: from /Users/gus/.rbenv/versions/2.7.2/bin/cfcompile:23:in `<main>'
	27: from /Users/gus/.rbenv/versions/2.7.2/bin/cfcompile:23:in `load'
	26: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/bin/cfcompile:4:in `<top (required)>'
	25: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/bin/cfcompile:4:in `require_relative'
	24: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/bin/cfhighlander.rb:305:in `<top (required)>'
	23: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
	22: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
	21: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
	20: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
	19: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/bin/cfhighlander.rb:96:in `cfcompile'
	18: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/bin/cfhighlander.rb:292:in `build_component'
	17: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.model.component.rb:156:in `load'
	16: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.model.component.rb:234:in `evaluateHiglanderTemplate'
	15: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.model.component.rb:234:in `eval'
	14: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.model.component.rb:248:in `evaluateHiglanderTemplate'
	13: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.dsl.template.rb:527:in `CfhighlanderTemplate'
	12: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.dsl.template.rb:238:in `loadComponents'
	11: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.dsl.template.rb:238:in `each'
	10: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.dsl.template.rb:269:in `block in loadComponents'
	 9: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.model.component.rb:255:in `eval_cfndsl'
	 8: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfhighlander-0.12.4/lib/cfhighlander.compiler.rb:141:in `evaluateCloudFormation'
	 7: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfndsl-1.3.1/lib/cfndsl/cloudformation.rb:58:in `eval_file_with_extras'
	 6: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfndsl-1.3.1/lib/cfndsl/cloudformation.rb:58:in `eval'
	 5: from /Users/gus/src/testbed/hl/extend-error/out/cfndsl/mysql.compiled.cfndsl.rb:30:in `eval_file_with_extras'
	 4: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfndsl-1.3.1/lib/cfndsl/cloudformation.rb:114:in `CloudFormation'
	 3: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfndsl-1.3.1/lib/cfndsl/jsonable.rb:164:in `declare'
	 2: from /Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfndsl-1.3.1/lib/cfndsl/jsonable.rb:164:in `instance_eval'
	 1: from /Users/gus/src/testbed/hl/extend-error/out/cfndsl/mysql.compiled.cfndsl.rb:57:in `block in eval_file_with_extras'
/Users/gus/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cfndsl-1.3.1/lib/cfndsl/module.rb:79:in `block (4 levels) in dsl_content_object': wrong number of arguments (given 2, expected 1) as Mapping(EnvironmentType) already exists (ArgumentError)

Guslington avatar Aug 10 '21 08:08 Guslington