Javascript ambiguity (1)
Yields:
Building application
webdslc arguments: –servlet -i ../feedback.app –session-timeout 120 –enable-caching 1 –dir /home/sverre/TUDelft/feedback/feedback/.servletapp
[ webdslc | info ] stage 1: parsing feedback.app : [user/system] = [0.07s/0.00s]
[ webdslc | info ] stage 2: importing modulesAmbiguities found during parsing of ../ui/evasys.app :
amb(
[ [JSString(“jQuery(function($) {
$(”“), JSString(”“, {“type”: “checkbox”}).replaceAll(”.showLink");
$(“”, {“type”: “checkbox”, “checked”: “true”}).replaceAll(“.hideLink”);
});
")]
, Conc(
amb(
[[JSString(“jQuery(function($) {
$(”“), JSString(”“, {“type”: “checkbox”}).replaceAll(”.showLink");
$("")], [JSString(“jQuery(function($) {
$(”“, {“type”: “checkbox”}).replaceAll(”.showLink");
$("")]]
)
, [JSString(“”, {“type”: “checkbox”, “checked”: “true”}).replaceAll(“.hideLink”);
});
")]
)
, [JSString(“jQuery(function($) {
$(”“, {“type”: “checkbox”}).replaceAll(”.showLink");
$(“”, {“type”: “checkbox”, “checked”: “true”}).replaceAll(“.hideLink”);
});
")]
]
)
[ webdslc | critical ] Internal error - ambiguities found in module ../ui/evasys.appBUILD FAILED
Submitted by Sverre Rabbelier on 8 February 2011 at 21:18
Total time: 3 seconds
Issue Log
If ’ are used instead of ":
Building application
webdslc arguments: –servlet -i ../feedback.app –session-timeout 120 –enable-caching 1 –dir /home/sverre/TUDelft/feedback/feedback/.servletapp
[ webdslc | info ] stage 1: parsing feedback.app : [user/system] = [0.07s/0.02s]
[ webdslc | info ] stage 2: importing modulesAmbiguities found during parsing of ../ui/evasys.app :
amb(
[ [JSString(“jQuery(function($) {
$(’”), JSString("‘, {‘type’: ‘checkbox’}).replaceAll(’.showLink’);
$(‘’, {‘type’:‘checkbox’, ‘checked’: ‘true’}).replaceAll(‘.hideLink’);
});
")]
, Conc(
amb(
[[JSString(“jQuery(function($) {
$(’”), JSString(“‘, {‘type’: ‘checkbox’}).replaceAll(’.showLink’);
$(’”)], [JSString(“jQuery(function($) {
$(‘’, {‘type’: ‘checkbox’}).replaceAll(‘.showLink’);
$(’”)]]
)
, [JSString("‘, {‘type’:‘checkbox’, ‘checked’: ‘true’}).replaceAll(’.hideLink’);
});
")]
)
, [JSString("jQuery(function($) {
$(‘’, {‘type’: ‘checkbox’}).replaceAll(‘.showLink’);
$(‘’, {‘type’:‘checkbox’, ‘checked’: ‘true’}).replaceAll(‘.hideLink’);
});
")]
]
)
[ webdslc | critical ] Internal error - ambiguities found in module ../ui/evasys.appBUILD FAILED
Total time: 4 seconds
Problem goes away when removing all ‘<’ from the script tag.
possibly related to https://yellowgrass.org/issue/WebDSL/436
Log in to post comments