The compiler fails with the following error:


[ Main | info ] stage 4: model-to-modelInternal error: dummy templates should have been removed.[VarDeclInit(“photoImageURLPhotoString_caseval0”{“photoImageURLPhotoString_caseval0”},SimpleSort(“String”){ImmutableReference},Var(“size”{“photoImageURLPhotoString_size1”})),TemplateCall(“dummy”{“photoImageURLPhotoString_dummy1”},[],[],TemplateBody([TemplateCall(“output”{“photoImageURLPhotoString_output1”},[FieldAccess(Var(“photo”{“photoImageURLPhotoString_photo1”}),“original”)],[],TemplateBody([]))]))]
Main: rewriting failed, trace:
webdslc_main_0_0
xtc_io_wrap_5_0
option_wrap_5_0
xtc_io_1_0
xtc_temp_files_1_0
restore_always_2_0
xtc_webdslc_0_0
dsl_to_core_0_0
dsl_to_core_generation_0_0
stage_1_1
dr_scope_1_1
log_timed_1_1
repeat_1_0
innermost_rep_1_0
dr_scope_1_1
dr_scope_1_1
innermost_rep_aux_1_0
innermost_rep_aux_2_0
innermost_rep_aux_2_0
innermost_rep_aux_2_0
innermost_rep_aux_2_0
innermost_rep_aux_2_0
innermost_rep_aux_2_0
with_toplevel_name_1_0
with_toplevel_name_1_1
dr_scope_1_1
innermost_rep_aux_1_0
innermost_rep_aux_2_0
try_1_0
innermost_rep_aux_2_0
try_1_0
desugar_0_0
desugar_ui_0_0
[ Main | critical ] Internal error: with clause failed unexpectedly in rule ‘desugar-ui’
Define([],“photoImageURL”{“photoImageURL2”},[Arg(“photo”{“photoImageURLPhotoString_photo1”},SimpleSort(“Photo”)){IsTemplateArg,IsTemplateArg},Arg(“size”{“photoImageURLPhotoString_size1”},SimpleSort(“String”)){IsTemplateArg,IsTemplateArg}],None,[TemplateCall(“dummy”{“photoImageURLPhotoString_dummy0”},[],[],TemplateBody([VarDeclInit(“photoImageURLPhotoString_caseval0”{“photoImageURLPhotoString_caseval0”},SimpleSort(“String”){ImmutableReference},Var(“size”{“photoImageURLPhotoString_size1”})),TemplateCall(“dummy”{“photoImageURLPhotoString_dummy1”},[],[],TemplateBody([TemplateCall(“output”{“photoImageURLPhotoString_output1”},[FieldAccess(Var(“photo”{“photoImageURLPhotoString_photo1”}),“original”)],[],TemplateBody([]))]))]))]){At(“../gallery/gallery-view.app”,62,3),At(“../gallery/gallery-view.app”,62,3)}

source


define photoImageURL(photo: Photo, size: String) {
case(size) {
default { output(photo.original) }
}
}

which is invoked in


function url(size: String): String {
var url := rendertemplate(photoImageURL(this,size)).split(“src=’”)[1].split(“’ >”)[0];
return url;
}

Submitted by Eelco Visser on 1 September 2011 at 20:21

On 5 September 2011 at 14:29 Danny Groenewegen tagged 1.2.9

On 24 February 2012 at 17:02 Danny Groenewegen removed tag 1.2.9

On 24 February 2012 at 17:02 Danny Groenewegen tagged 1.3.0

On 15 January 2013 at 14:35 Danny Groenewegen tagged confirmed

On 15 January 2013 at 14:35 Danny Groenewegen removed tag 1.3.0

Log in to post comments