With the following definition of output (on line 48 of ui.app):

define output(educations : Set, heading : String) {
section {
label(heading) {
list {
for (e : Education in educations) {
listitem {
navigate(showEducation(e)) { output(e.name) }
}
}
}
}
}
}

I get this compilation error:


webdslc arguments: –servlet -i ../feedback.app –session-timeout 120 –enable-caching 1
[ webdslc | info ] stage 1: parsing feedback.app : [user/system] = [0.07s/0.02s]
[ webdslc | info ] stage 2: importing modules : [user/system] = [0.03s/0.01s]
[ webdslc | info ] stage 3: typechecking : [user/system] = [0.05s/0.01s]
[ webdslc | info ] stage 4: model-to-model : [user/system] = [0.79s/0.00s]
[ webdslc | info ] stage 5: access control : [user/system] = [0.17s/0.00s]
[ webdslc | info ] stage 6: performing analysis : [user/system] = [0.02s/0.00s]
[ webdslc | info ] stage 7: renaming identifiers : [user/system] = [0.03s/0.00s]
[ webdslc | info ] stage 8: generation analysis : [user/system] = [0.00s/0.00s]
[ webdslc | info ] stage 9: code generationwebdslc: rewriting failed, trace:
main_0_0
webdslc_main_0_0
xtc_io_wrap_5_0
option_wrap_5_0
lifted43
xtc_io_1_0
xtc_temp_files_1_0
restore_always_2_0
lifted31
lifted4
xtc_webdslc_0_0
stage_1_1
dr_scope_1_1
lifted88
log_timed_1_1
lifted12
core_to_java_servlet_0_1
prepare_core_to_java_servlet_0_1
annotate_pagecalls_0_0
alltd_1_0
m_135
m_135
annotate_pagecall_0_0
dr_scope_1_1
lifted402
alltd_1_0
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
m_135
annotate_pagecall_0_0
annotate_ajaxcall_0_0
zip_1_0
genzip_4_0
g_233
_2_0
g_233
Zip2_0_0
[ webdslc | critical ] Internal error: with clause failed unexpectedly in rule ‘annotate-ajaxcall’
TemplateCall(“outputSetEducationString”{OriginalNameAnno(“output”)},[FieldAccess(Var(“arg0”{OriginalNameAnno(“arg”)}){TypeAnno(SimpleSort(“Course”){EntityAnno(“key”,“key”,True),DefValueAnno(Null),IsRefSort})},“educations”){TypeAnno(GenericSort(“Set”,[SimpleSort(“Education”){EntityAnno(“id”,None,False),DefValueAnno(Null)}]){DefValueAnno(TypedSetCreation(SimpleSort(“Education”),[]))})}],[PropertyAssignment(“class”,“outputeducations”){TypeAnno(SimpleSort(“Void”))}],TemplateBody([])){CalledTemplateArgs([Arg(“educations”,GenericSort(“Set”,[SimpleSort(“Education”)])){At(“../ui.app”,48,15)},Arg(“heading”,SimpleSort(“String”)){At(“../ui.app”,48,44)}]),CallToDefinedAnno}

Submitted by Sverre Rabbelier on 24 November 2010 at 01:46

On 24 November 2010 at 14:59 Sverre Rabbelier commented:

Also breaks if the function is named differently it seems.


On 24 November 2010 at 15:07 Sverre Rabbelier commented:

Removing the “heading” string argument makes the error go away.


On 24 November 2010 at 15:42 Danny Groenewegen commented:

minimal test:

  define page root(){
test()
  }

  define test(s:String){}

On 24 November 2010 at 16:00 Danny Groenewegen closed this issue.

Log in to post comments