Opened 9 years ago

Closed 9 years ago

#10884 closed defect (worksforme)

Build System: JavaScript runtime exception when using 'buildLayers' arg

Reported by: delee Owned by: James Burke
Priority: high Milestone: tbd
Component: BuildSystem Version: 1.4.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by James Burke)

I'm having problems with the buildLayers argument in the Build System, I am using Dojo 1.4.2.

I run a build with optimize=shrinksafe: build.bat action=release,clean profile=standard optimize=shrinksafe

Then, I attempt to build only my custom layer: build.bat action=release profile=standard buildLayers=customlayer.js

I get this error: js: "./jslib/i18nUtil.js#68(eval)", line 1: uncaught JavaScript? runtime exception: TypeError?: Cannot find function cache in object [object Object]. at ./jslib/i18nUtil.js#68(eval):1

Any ideas? Pretty sure I had this going in Dojo 1.3-ish.

Here's my test profile. It is the 'standard' profile augmented with a simple layer called 'customlayer.js'.

dependencies = {
        //Strip all console.* calls except console.warn and console.error. This is basically a work-around
        //for trac issue: http://bugs.dojotoolkit.org/ticket/6849 where Safari 3's console.debug seems
        //to be flaky to set up (apparently fixed in a webkit nightly).
        //But in general for a build, console.warn/error should be the only things to survive anyway.
        stripConsole: "normal",

        layers: [
                {
                        name: "../dijit/dijit.js",
                        dependencies: [
                                "dijit.dijit"
                        ]
                },
                {
                        name: "../dijit/dijit-all.js",
                        layerDependencies: [
                                "../dijit/dijit.js"
                        ],
                        dependencies: [
                                "dijit.dijit-all"
                        ]
                },
                {
                        name: "../dojox/grid/DataGrid.js",
                        dependencies: [
                                "dojox.grid.DataGrid"
                        ]
                },
                {
                        name: "../dojox/gfx.js",
                        dependencies: [
                                "dojox.gfx"
                        ]
                },
                // FIXME:
                // we probably need a better structure for this layer and need to
                // add some of the most common themes
                {
                        name: "../dojox/charting/widget/Chart2D.js",
                        dependencies: [
                                "dojox.charting.widget.Chart2D",
                                "dojox.charting.widget.Sparkline",
                                "dojox.charting.widget.Legend"
                        ]
                },
                {
                        name: "../dojox/dtl.js",
                        dependencies: [
                                "dojox.dtl",
                                "dojox.dtl.Context",
                                "dojox.dtl.tag.logic",
                                "dojox.dtl.tag.loop",
                                "dojox.dtl.tag.date",
                                "dojox.dtl.tag.loader",
                                "dojox.dtl.tag.misc",
                                "dojox.dtl.ext-dojo.NodeList"
                        ]
                },
                {
                        name : "customlayer.js",
                        dependencies : [ "dijit.form.Button", "dijit.form.Form", "dijit.form.ValidationTextBox" ]
                }
        ],

        prefixes: [
                [ "dijit", "../dijit" ],
                [ "dojox", "../dojox" ]
        ]
} 

Change History (5)

comment:1 Changed 9 years ago by Adam Peller

Milestone: tbd

comment:2 Changed 9 years ago by James Burke

Description: modified (diff)

comment:3 Changed 9 years ago by James Burke

In your description of the problem, you mention in the first command you pass action=release,clean but asking for a clean after a release will wipe out the release?

comment:4 Changed 9 years ago by delee

The order of the arguments to 'action' is important?

At any rate, I can no longer reproduce this problem :) I am using an IBM JRE, so perhaps it was a point-in-time issue with that JRE. Feel free to close this bug out.

comment:5 Changed 9 years ago by Adam Peller

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.