Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18918 closed defect (fixed)

string.substitute could not find key "!nameAttrSetting" in template

Reported by: gerhard presser Owned by: Dylan Schiemann <dylan@…>
Priority: undecided Milestone: 1.12.0-rc2
Component: String Version: 1.12.0-rc1
Keywords: Cc:
Blocked By: Blocking:

Description

using the latest dojo 1.12.0-rc1, I get following error when loading my app.

IMO

dojo/strings.substitute has to check the result-variable to be undefined, rather than the value

dojo/parser::parse() error string.substitute could not find key "!nameAttrSetting" in template(anonymous function) @ parser.js?en-us_9.0_1649267441663_Europe/Berlin:900signalListener @ dojo.js.uncompressed.js:12164Deferred.then.promise.then @ dojo.js.uncompressed.js:12385otherwise @ dojo.js.uncompressed.js:13094parse @ parser.js?en-us_9.0_1649267441663_Europe/Berlin:898_beforeFillContent @ _WidgetsInTemplateMixin.js?en-us_9.0_1649267441663_Europe/Berlin:43buildRendering @ _AttachMixin.js?en-us_9.0_1649267441663_Europe/Berlin:90inherited__debug @ dojo.js.uncompressed.js:6795buildRendering @ _TemplatedMixin.js?en-us_9.0_1649267441663_Europe/Berlin:118inherited__debug @ dojo.js.uncompressed.js:6795buildRendering @ _Container.js?en-us_9.0_1649267441663_Europe/Berlin:16inherited__debug @ dojo.js.uncompressed.js:6795buildRendering @ Toolbar.js?en-us_9.0_1649267441663_Europe/Berlin:70inherited__debug @ dojo.js.uncompressed.js:6795buildRendering @ StandardActionsToolbar?.js?en-us_9.0_1649267441663_Europe/Berlin:22create @ _WidgetBase.js?en-us_9.0_1649267441663_Europe/Berlin:430postscript @ _WidgetBase.js?en-us_9.0_1649267441663_Europe/Berlin:366(anonymous function) @ dojo.js.uncompressed.js:6991construct @ parser.js?en-us_9.0_1649267441663_Europe/Berlin:460(anonymous function) @ parser.js?en-us_9.0_1649267441663_Europe/Berlin:190map @ dojo.js.uncompressed.js:14251_instantiate @ parser.js?en-us_9.0_1649267441663_Europe/Berlin:184(anonymous function) @ parser.js?en-us_9.0_1649267441663_Europe/Berlin:893signalListener @ dojo.js.uncompressed.js:12164Deferred.then.promise.then @ dojo.js.uncompressed.js:12385parse @ parser.js?en-us_9.0_1649267441663_Europe/Berlin:892_beforeFillContent @ _WidgetsInTemplateMixin.js?en-us_9.0_1649267441663_Europe/Berlin:43buildRendering @ _AttachMixin.js?en-us_9.0_1649267441663_Europe/Berlin:90inherited__debug @ dojo.js.uncompressed.js:6795buildRendering @ _TemplatedMixin.js?en-us_9.0_1649267441663_Europe/Berlin:118create @ _WidgetBase.js?en-us_9.0_1649267441663_Europe/Berlin:430postscript @ _WidgetBase.js?en-us_9.0_1649267441663_Europe/Berlin:366(anonymous function) @ dojo.js.uncompressed.js:6991(anonymous function) @ com.groiss.smartclient.Main.showMainPage:76runFactory @ dojo.js.uncompressed.js:1154execModule @ dojo.js.uncompressed.js:1282(anonymous function) @ dojo.js.uncompressed.js:1320guardCheckComplete @ dojo.js.uncompressed.js:1297checkComplete @ dojo.js.uncompressed.js:1315onLoadCallback @ dojo.js.uncompressed.js:1481onLoad @ dojo.js.uncompressed.js:1734

...

Change History (6)

comment:2 Changed 3 years ago by vtsuper

I got this error in my every pages. so is it a bug in version 1.12.0-rc or I should enhanced my code???

comment:3 Changed 3 years ago by dylan

Milestone: tbd1.12.0-rc2

comment:4 Changed 3 years ago by dylan

Thanks, we'll see if we have a fix or if we just need to revert this change.

comment:5 Changed 3 years ago by Dylan Schiemann <dylan@…>

Owner: set to Dylan Schiemann <dylan@…>
Resolution: fixed
Status: newclosed

In e00edbc/dojo:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:6 Changed 3 years ago by dylan

@gpresser and @vtsuper, this should be resolved as of https://github.com/dojo/dojo/commit/e00edbcbb9c7037c9045c84fa7ac69a54ea20831 (we'll have a new RC2 over the weekend). Thanks again!

Note: See TracTickets for help on using tickets.