P 123
Mostrando resultados del 1 al 10 de 21

Tema: Bug: Incorrect encoding on concatenated JS file in Sencha Cmd 5.1.1.39

    Success! Looks like we've fixed this one. According to our records the fix was applied for SDKTOOLS-1052 in 5.1.3.
  1. #1
    Sencha Premium Member
    Fecha de Ingreso
    Jul 2012
    Mensajes
    35

    Predeterminado Bug: Incorrect encoding on concatenated JS file in Sencha Cmd 5.1.1.39

    REQUIRED INFORMATION

    Sencha Cmd version(s) tested:
    • Sencha Cmd 5.1.1.39

    Operating System:
    • Win 8.1 x64

    Framework used:

    • Ext JS 5.1.0

    Description:
    • When including external JavaScript libraries that depend on UTF-8 encoding (such as d3.js), the encoding is lost in the output app.js file. This previously worked fine with Sencha Cmd 5.0.0.160.

    Diagnostic Output:

    C:
    PS D:\Projects\temp> sencha diag show
    Sencha Cmd v5.1.1.39
    [INF]                          app.archivePath : archive
    [INF]                       app.bootstrap.base : D:\Projects\temp
    [INF]                        app.bootstrap.css : bootstrap.css
    [INF]                   app.bootstrap.manifest : bootstrap.json
    [INF]                app.bootstrap.microloader : bootstrap.js
    [INF]                            app.classpath : D:\Projects\temp/app
    [INF]                          app.cmd.version : 5.1.1.39
    [INF]                           app.config.dir : D:\Projects\temp\.sencha\app
    [INF]                    app.cordova.config.id : com.domain.temp
    [INF]                  app.cordova.config.name : temp
    [INF]                  app.cordova.config.path : D:\Projects\temp/cordova
    [INF]                app.cordova.config.target :
    [INF]               app.cordova.config.verbose : false
    [INF]                    app.cordova.js.0.path : cordova.js
    [INF]                app.cordova.js.0.priority : 1000
    [INF]                  app.cordova.js.0.remote : true
    [INF]                    app.cordova.js.length : 1
    [INF]                  app.cordova.microloader : D:\Projects\temp\.sencha\app/Microloader.js
    [INF]                  app.cordova.output.base : D:\Projects\temp/cordova/www
    [INF]          app.cordova.output.cache.enable : false
    [INF]         app.cordova.output.deltas.enable : false
    [INF]                                  app.dir : D:\Projects\temp
    [INF]                            app.framework : ext
    [INF]                    app.framework.version : 5.1.0.107
    [INF]                                   app.id : 8f055d45-a140-456c-a770-24ae9d94df00
    [INF]                        app.indexHtmlPath : index.html
    [INF]                                 app.name : temp
    [INF]                          app.output.base : D:\Projects\temp/build/${build.environment}/temp
    [INF]                  app.output.cache.enable : false
    [INF]                 app.output.deltas.enable : false
    [INF]            app.output.microloader.enable : true
    [INF]                            app.overrides : D:\Projects\temp/overrides
    [INF]                            app.page.name : index.html
    [INF]                   app.phonegap.config.id : com.domain.temp
    [INF]                 app.phonegap.config.name : temp
    [INF]                 app.phonegap.config.path : D:\Projects\temp/phonegap
    [INF]               app.phonegap.config.remote : false
    [INF]              app.phonegap.config.verbose : false
    [INF]                   app.phonegap.js.0.path : phonegap.js
    [INF]               app.phonegap.js.0.priority : 1000
    [INF]                 app.phonegap.js.0.remote : true
    [INF]                   app.phonegap.js.length : 1
    [INF]                 app.phonegap.microloader : D:\Projects\temp\.sencha\app/Microloader.js
    [INF]                 app.phonegap.output.base : D:\Projects\temp/phonegap/www
    [INF]         app.phonegap.output.cache.enable : false
    [INF]        app.phonegap.output.deltas.enable : false
    [INF]           app.production.compressor.type : yui
    [INF]                       app.requires.names : sencha-core,ext
    [INF]                    app.requires.packages : D:\Projects\temp\ext\packages\sencha-core,D:\Projects\temp\ext
    [INF]                       app.resource.paths : D:\Projects\temp/resources
    [INF]                         app.sass.etcpath : D:\Projects\temp/sass/etc/all.scss
    [INF]                       app.sass.namespace : temp
    [INF]                         app.sass.srcpath : D:\Projects\temp/sass/src
    [INF]                         app.sass.varpath : D:\Projects\temp/sass/var
    [INF]         app.slicer.js.0.isWidgetManifest : true
    [INF]                     app.slicer.js.0.path : D:\Projects\temp/sass/example/custom.js
    [INF]                     app.slicer.js.length : 1
    [INF]          app.testing.output.cache.enable : false
    [INF]         app.testing.output.deltas.enable : false
    [INF]                                app.theme : ext-theme-neptune
    [INF]                     buildenvironment.dir : D:\Projects\temp
    [INF]                buildenvironment.load.dir : D:\Projects\temp
    [INF]                           cmd.config.dir : C:\Users\someone\bin\Sencha\Cmd\5.1.1.39
    [INF]                                  cmd.dir : C:\Users\someone\bin\Sencha\Cmd\5.1.1.39
    [INF]                     cmd.framework.minver : 5.0.0
    [INF]                    cmd.framework.version : 99.99
    [INF]                             cmd.jvm.args : -Xms128m -Xmx1024m -Dapple.awt.UIElement=true
    [INF]               cmd.merge.tool.args.araxis : -wait -merge -3 -a1 {base} {user} {generated} {out}
    [INF]               cmd.merge.tool.args.kdiff3 : {base} {user} {generated} -o {out}
    [INF]              cmd.merge.tool.args.p4merge : {base} {user} {generated} {out}
    [INF]            cmd.merge.tool.args.smartsync : {user} {generated} {base}
    [INF]           cmd.merge.tool.args.sourcegear : --merge --result={out} {user} {base} {generated}
    [INF]             cmd.merge.tool.args.tortoise : -base:{base} -theirs:{generated} -mine:{user} -merged:{out}
    [INF]                               cmd.minver : 3.0.0.0
    [INF]                             cmd.platform : windows
    [INF]                          cmd.server.port : 1841
    [INF]                      cmd.unicode.escapes : C:\Users\someone\bin\Sencha\Cmd\5.1.1.39/unicode-escapes.json
    [INF]                              cmd.version : 5.1.1.39
    [INF]                             cmd.web.port : 1841
    [INF]                                  ext.dir : D:\Projects\temp/ext
    [INF]                         ext.license.name : trial
    [INF]                      framework.classpath : D:\Projects\temp\ext/src
    [INF]                     framework.cmd.minver : 5.1.0.26
    [INF]                    framework.cmd.version : 5.1.0.26
    [INF]                  framework.compatVersion : 4.0
    [INF]                     framework.config.dir : C:\Users\someone\bin\Sencha\Cmd\5.1.1.39\plugins\ext\current
    [INF]                        framework.creator : Sencha
    [INF]            framework.detailedDescription : Sencha Ext JS JavaScript Framework
    [INF]                            framework.dir : D:\Projects\temp\ext
    [INF]                         framework.format : 1
    [INF]                           framework.isV5 : true
    [INF]                           framework.name : ext
    [INF]                         framework.output : ${package.dir}/build
    [INF]                   framework.packages.dir : D:\Projects\temp\ext/packages
    [INF]         framework.signatures.0.algorithm : SHA1withRSA
    [INF]           framework.signatures.0.created : 2014-12-11T08:20:47Z
    [INF]              framework.signatures.0.name : Sencha
    [INF]             framework.signatures.0.nonce : OVA6weXipPs=
    [INF]         framework.signatures.0.signature : gbpwzCQU3cDuAsbQPW7e6KpBwsWbgMbpv3r2uK6d8nvGRkgly0Tao7Tu71LfDo/ua/MSVXV
    btVUDqZ+B0taqQCygbv21L5KFAhVlH6NRXcHloqOPX/DLPD2c0xC/jZukhxr1Usd3Dd1/vj12s3MtjWRLYYf5Honcnj0Nl5L70BA8/P6g4t+8lIB+2qBSAmY
    6fA3zgRFpcYV+R3y6Wo9SVJVip3h+cnupcGsLrrC6qw9cIfJN3mT0+QP9doF2vMVXaE4lf1pR7z4oLi0BTBwurJlA5fykUhGNZxd9huEm09rqJN/+naIOVN0
    ZbYirtVMs3R5V9WRFYH7hOgguk0zlzOBDpQBFuvzHjeQWPTPp5YxJJsrruHn/iQXd2T06z1P4GN/jnEZUTpZPT5iGi7vLxYqv0AabNTeopQ2RbGg5OlTEAec
    G87GB7Yu63Kl7nx9MYDifKhCYIn70wbQS6aWSDyLP9jUvhUciu8q7Wmwi8oOJ/kFpn4Wt2nuLI7bqUgPNSzKYR/NToSO/CHyBSlxlJk6ba1CiDqPBgdkupfI
    ANHgdxR0IVB87yfeGrl03jjnU2cDLWDNh7Fc3yzeAt9Pe4uvdk0XrFYUDdIf2TFLUyVBiRVtlByucQmhYWpunKnIxLLBHV/+CmvmXY30Qm0QL3FZnp7J7a86
    ywMmb+bjpS+A=
    [INF]              framework.signatures.0.uuid : e93ebd09-85f5-46b6-bfc1-c7f06cf0b8a5
    [INF]              framework.signatures.length : 1
    [INF]                        framework.summary : Ext JS
    [INF]                           framework.type : framework
    [INF]                        framework.version : 5.1.0.107
    [INF]                           repo.local.dir : C:\Users\someone\bin\Sencha\Cmd\repo
    [INF]         system.java.net.useSystemProxies : true
    [INF]                         theme.base.names : ext-theme-base,ext-theme-neutral,ext-theme-neptune
    [INF]                      theme.base.packages : D:\Projects\temp\ext\packages\ext-theme-base,D:\Projects\temp\ext\packa
    ges\ext-theme-neutral,D:\Projects\temp\ext\packages\ext-theme-neptune
    [INF]                      workspace.build.dir : D:\Projects\temp/build
    [INF]                    workspace.cmd.version : 5.1.1.39
    [INF]                     workspace.config.dir : D:\Projects\temp\.sencha\workspace
    [INF]                            workspace.dir : D:\Projects\temp
    [INF]                   workspace.packages.dir : D:\Projects\temp/packages
    [INF]                      workspace.theme.dir : D:\Projects\temp/packages/${args.themeName}
    Steps to reproduce the problem:

    Generate a temp app and move to that folder:
    C:
    PS D:\Projects> sencha generate app -ext temp temp
    Sencha Cmd v5.1.1.39
    [INF] Processing Build Descriptor : default
    [INF] Loading app json manifest...
    [INF] Appending content to D:\Projects\temp/bootstrap.js
    [INF] Writing content to D:\Projects\temp/bootstrap.json
    
    PS D:\Projects> cd temp
    PS D:\Projects\temp>
    Install d3.js (assumes node and bower):
    C:
    PS D:\Projects\temp> bower install d3
    bower d3#*                      cached git://github.com/mbostock/d3.git#3.5.3
    bower d3#*                    validate 3.5.3 against git://github.com/mbostock/d3.git#*
    bower d3#~3.5.3                install d3#3.5.3
    
    d3#3.5.3 bower_components\d3
    For isolating the issue, add the following to .sencha\app\build.properties so that only the JS tasks execute:
    C:
    skip.sass=true
    skip.slice=true
    skip.page=true
    skip.resources=true
    skip.theme=true
    Add a reference to d3.js in app.json:
    C:
        "js": [
            {
                "path": "${framework.dir}/build/ext-all-rtl-debug.js"
            },
            {
                "path": "bower_components/d3/d3.js",
                "includeInBundle": true
            },
            {
                "path": "app.js",
                "bundle": true
            }
        ],
    Build the app:
    C:
    PS D:\Projects\temp> sencha app build
    Sencha Cmd v5.1.1.39
    [INF] Processing Build Descriptor : default
    [INF] Loading app json manifest...
    [INF] Appending content to D:\Projects\temp/bootstrap.js
    [INF] Writing content to D:\Projects\temp/bootstrap.json
    [INF] Compressing data with YuiJavascriptCompressor
    [ERR] C2009: YUI Parse Error (missing variable name =>     var ? = 1.0E-6,) -- unknown-file:137136:9
    [ERR] C2009: YUI Parse Error (syntax error =>         ?2 = ? * ?,) -- unknown-file:137137:14
    [ERR] C2009: YUI Parse Error (syntax error =>         ? = Math.PI,) -- unknown-file:137138:12
    [ERR] C2009: YUI Parse Error (syntax error =>         ? = 2 * ?,) -- unknown-file:137139:12
    [ERR] C2009: YUI Parse Error (syntax error =>         ?? = ? - ?,) -- unknown-file:137140:10
    [ERR] C2009: YUI Parse Error (syntax error =>         half? = ? / 2,) -- unknown-file:137141:13
    [ERR] C2009: YUI Parse Error (syntax error =>         d3_radians = ? / 180,) -- unknown-file:137142:21
    [ERR] C2009: YUI Parse Error (syntax error =>         d3_degrees = 180 / ?;) -- unknown-file:137143:21
    [ERR] C2009: YUI Parse Error (syntax error =>         return x > 1 ? 0 : x < -1 ? ? : Math.acos(x);) -- unknown-file:137
    151:37
    [ERR] C2009: YUI Parse Error (syntax error =>         return x > 1 ? half? : x < -1 ? -half? : Math.asin(x);) -- unknown
    -file:137154:31
    [ERR] C2009: YUI Parse Error (missing variable name =>     var ? = Math.SQRT2,) -- unknown-file:137168:9
    [ERR] C2009: YUI Parse Error (Invalid assignment left-hand side. =>         ?2 = 2,) -- unknown-file:137169:15
    [ERR] C2009: YUI Parse Error (Invalid assignment left-hand side. =>         ?4 = 4;) -- unknown-file:137170:15
    [ERR] C2009: YUI Parse Error (syntax error =>             b0 = (w1 * w1 - w0 * w0 + ?4 * d2) / (2 * w0 * ?2 * d1),) -- u
    nknown-file:137182:39
    [ERR] C2009: YUI Parse Error (syntax error =>             b1 = (w1 * w1 - w0 * w0 - ?4 * d2) / (2 * w1 * ?2 * d1),) -- u
    nknown-file:137183:17
    [ERR] C2009: YUI Parse Error (syntax error =>             r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),) -- unknown-file:1
    37184:17
    [ERR] C2009: YUI Parse Error (syntax error =>             r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1),) -- unknown-file:1
    37185:17
    [ERR] C2009: YUI Parse Error (syntax error =>             dr = r1 - r0,) -- unknown-file:137186:17
    [ERR] C2009: YUI Parse Error (syntax error =>             S = (dr || Math.log(w1 / w0)) / ?;) -- unknown-file:137187:16
    [ERR] C2009: YUI Parse Error (syntax error =>                     u = w0 / (?2 * d1) * (coshr0 * d3_tanh(? * s + r0) - d
    3_sinh(r0));) -- unknown-file:137192:31
    [ERR] C2009: YUI Parse Error (syntax error =>                     w0 * coshr0 / d3_cosh(? * s + r0)) -- unknown-file:137
    196:43
    [ERR] C2009: YUI Parse Error (syntax error =>                 w0 * Math.exp(? * s)) -- unknown-file:137202:31
    [ERR] C2009: YUI Parse Error (syntax error =>                 d3_geo_areaSum += 4 * ?;) -- unknown-file:139380:39
    [ERR] C2009: YUI Parse Error (syntax error =>                 d3_geo_areaSum += area < 0 ? 4 * ? + area : area;) -- unkn
    own-file:139391:50
    [ERR] C2009: YUI Parse Error (missing variable name =>         var ?00, ?00, ?0, cos?0, sin?0;) -- unknown-file:139396:1
    3
    [ERR] C2009: YUI Parse Error (missing formal parameter =>         d3_geo_area.point = function(?, ?) {) -- unknown-file:
    139397:38
    [ERR] C2009: YUI Parse Error (syntax error =>             d3_geo_area.point = nextPoint;) -- unknown-file:139398:25
    [ERR] C2009: YUI Parse Error (syntax error =>             ?0 = (?00 = ?) * d3_radians , cos?0 = Math.cos(? = (?00 = ?) *
     d3_radians / 2 + ? / 4) , sin?0 = Math.sin(?);) -- unknown-file:139399:13
    [ERR] C2009: YUI Parse Error (missing formal parameter =>         function nextPoint(?, ?) {) -- unknown-file:139401:28
    [ERR] C2009: YUI Parse Error (missing } after function body =>         function nextPoint(?, ?) {) -- unknown-file:13940
    1:28
    [ERR] C2009: YUI Parse Error (syntax error =>             ? *= d3_radians;) -- unknown-file:139402:16
    [ERR] C2009: YUI Parse Error (syntax error =>             ? = ? * d3_radians / 2 + ? / 4;) -- unknown-file:139403:13
    [ERR] C2009: YUI Parse Error (missing ; before statement =>             var d? = ? - ?0,) -- unknown-file:139404:18
    [ERR] C2009: YUI Parse Error (syntax error =>                 sd? = d? >= 0 ? 1 : -1,) -- unknown-file:139405:19
    [ERR] C2009: YUI Parse Error (syntax error =>                 ad? = sd? * d?,) -- unknown-file:139406:19
    [ERR] C2009: YUI Parse Error (syntax error =>                 cos? = Math.cos(?),) -- unknown-file:139407:20
    [ERR] C2009: YUI Parse Error (syntax error =>                 sin? = Math.sin(?),) -- unknown-file:139408:20
    [ERR] C2009: YUI Parse Error (syntax error =>                 k = sin?0 * sin?,) -- unknown-file:139409:20
    [ERR] C2009: YUI Parse Error (syntax error =>                 u = cos?0 * cos? + k * Math.cos(ad?),) -- unknown-file:139
    410:20
    [ERR] C2009: YUI Parse Error (syntax error =>                 v = k * sd? * Math.sin(ad?);) -- unknown-file:139411:20
    [ERR] C2009: YUI Parse Error (syntax error =>             ?0 = ? , cos?0 = cos? , sin?0 = sin?;) -- unknown-file:139413:
    13
    [ERR] C2009: YUI Parse Error (syntax error =>         }) -- unknown-file:139414:9
    [ERR] C2009: YUI Parse Error (syntax error =>         d3_geo_area.lineEnd = function() {) -- unknown-file:139415:21
    [ERR] C2009: YUI Parse Error (syntax error =>             nextPoint(?00, ?00);) -- unknown-file:139416:23
    [ERR] C2009: YUI Parse Error (syntax error =>         };) -- unknown-file:139417:9
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139418:5
    [ERR] C2009: YUI Parse Error (missing ; before statement =>     function d3_geo_cartesian(spherical) {) -- unknown-file:
    139419:42
    [ERR] C2009: YUI Parse Error (syntax error =>         var ? = spherical[0],) -- unknown-file:139420:13
    [ERR] C2009: YUI Parse Error (syntax error =>             ? = spherical[1],) -- unknown-file:139421:16
    [ERR] C2009: YUI Parse Error (syntax error =>             cos? = Math.cos(?);) -- unknown-file:139422:16
    [ERR] C2009: YUI Parse Error (invalid return =>         return [) -- unknown-file:139423:15
    [ERR] C2009: YUI Parse Error (syntax error =>             cos? * Math.cos(?),) -- unknown-file:139424:19
    [ERR] C2009: YUI Parse Error (syntax error =>             cos? * Math.sin(?),) -- unknown-file:139425:16
    [ERR] C2009: YUI Parse Error (syntax error =>             Math.sin(?)) -- unknown-file:139426:18
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139428:5
    [ERR] C2009: YUI Parse Error (missing ; before statement =>     function d3_geo_cartesianDot(a, b) {) -- unknown-file:13
    9429:40
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139431:5
    [ERR] C2009: YUI Parse Error (missing ; before statement =>     function d3_geo_cartesianCross(a, b) {) -- unknown-file:
    139432:42
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139438:5
    [ERR] C2009: YUI Parse Error (missing ; before statement =>     function d3_geo_cartesianAdd(a, b) {) -- unknown-file:13
    9439:40
    [ERR] C2009: YUI Parse Error (Invalid assignment left-hand side. =>         a[0] += b[0];) -- unknown-file:139440:21
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139443:5
    [ERR] C2009: YUI Parse Error (missing ; before statement =>     function d3_geo_cartesianScale(vector, k) {) -- unknown-
    file:139444:47
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139450:5
    [ERR] C2009: YUI Parse Error (missing ; before statement =>     function d3_geo_cartesianNormalize(d) {) -- unknown-file
    :139451:43
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139456:5
    [ERR] C2009: YUI Parse Error (missing ; before statement =>     function d3_geo_spherical(cartesian) {) -- unknown-file:
    139457:42
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139462:5
    [ERR] C2009: YUI Parse Error (missing ; before statement =>     function d3_geo_sphericalEqual(a, b) {) -- unknown-file:
    139463:42
    [ERR] C2009: YUI Parse Error (syntax error =>         return abs(a[0] - b[0]) < ? && abs(a[1] - b[1]) < ?;) -- unknown-f
    ile:139464:35
    [ERR] C2009: YUI Parse Error (syntax error =>     }) -- unknown-file:139465:5
    [ERR] C2009: YUI Parse Error (syntax error =>     d3.geo.bounds = function() {) -- unknown-file:139466:8
    [ERR] C2009: YUI Parse Error (syntax error =>         var ?0, ?0, ?1, ?1, ?_, ?__, ?__, p0, d?Sum, ranges, range;) -- un
    known-file:139467:13
    [ERR] C2009: YUI Parse Error (missing : in conditional expression =>                     d?Sum = 0;) -- unknown-file:139
    476:30
    [ERR] C2009: YUI Parse Error (syntax error =>                         ?0 = -(?1 = 180) , ?0 = -(?1 = 90);) -- unknown-fi
    le:139485:25
    [ERR] C2009: YUI Parse Error (syntax error =>                     else if (d?Sum > ?)  {) -- unknown-file:139487:38
    [ERR] C2009: YUI Parse Error (Invalid assignment left-hand side. =>                         ?1 = 90;) -- unknown-file:13
    9488:32
    [ERR] C2009: YUI Parse Error (missing } after property list =>                     else if (d?Sum < -?)  {) -- unknown-f
    ile:139490:25
    [ERR] C2009: YUI Parse Error (syntax error =>                     else if (d?Sum < -?)  {) -- unknown-file:139490:39
    [ERR] C2009: YUI Parse Error (Invalid assignment left-hand side. =>                         ?0 = -90;) -- unknown-file:1
    39491:33
    [ERR] C2009: YUI Parse Error (syntax error =>                     }) -- unknown-file:139492:21
    [ERR] C2009: YUI Parse Error (syntax error =>                     range[0] = ?0 , range[1] = ?1;) -- unknown-file:139494
    :32
    [ERR] C2009: YUI Parse Error (syntax error =>                 }) -- unknown-file:139495:17
    [ERR] C2009: YUI Parse Error (missing formal parameter =>         function point(?, ?) {) -- unknown-file:139497:24
    [ERR] C2009: YUI Parse Error (Compilation produced 84 syntax errors. => null) -- unknown-file:2
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: Failed to compress input
    [ERR]   at sun.reflec
    [ERR] t.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]
    [ERR] Total time: 7 seconds
    [ERR] The following error occurred while executing this line:
    D:\Projects\temp\.sencha\app\build-impl.xml:266: The following error occurred while executing this line:
    D:\Projects\temp\.sencha\app\js-impl.xml:71: com.sencha.exceptions.ExBuild: Failed to compress input
    Build the app in testing mode:
    C:
    PS D:\Projects\temp> sencha app build testing
    Sencha Cmd v5.1.1.39
    [INF] Processing Build Descriptor : default
    [INF] Loading app json manifest...
    [INF] Appending content to D:\Projects\temp/bootstrap.js
    [INF] Writing content to D:\Projects\temp/bootstrap.json
    Open build\testing\temp\app.js in a text editor and observe encoding:

    ansi.png

    The result that was expected:
    • Output is encoded correctly as UTF-8.

    The result that occurs instead:
    • Output is encoded as ANSI.
    Raz: Fixed build output.

  2. #2
    Ext JS Premium Member
    Fecha de Ingreso
    Apr 2010
    Ubicaci
    Omaha, NE
    Mensajes
    631

    Predeterminado

    I'm running into a similar problem doing a production build. The development build works fine and the app runs just fine in development. My production build bombs with errors similar to above.

    C:
    PS D:\Workspaces\wp-architect-java\wp-architect-java\web-app\wp-architect\app-admin-desktop> sencha app build production
    
    
    Sencha Cmd v5.1.1.39
    [INF] Processing Build Descriptor : default
    [INF] Loading app json manifest...
    [INF] Appending content to D:\Workspaces\wp-architect-java\wp-architect-java\web-app\wp-architect\app-admin-desktop/boot
    strap.js
    [INF] Writing content to D:\Workspaces\wp-architect-java\wp-architect-java\web-app\wp-architect\app-admin-desktop/bootst
    rap.json
    [WRN] C1014: callParent has no target (this.callParent in Deft.Component.setParent) -- D:\Workspaces\wp-architect-java\w
    p-architect-java\web-app\wp-architect\packages\deft\src\js\event\LiveEventBus.js:95:9
    [WRN] C1014: callParent has no target (this.callParent in Wp.base.form.ModelForm.onItemAdd) -- D:\Workspaces\wp-architec
    t-java\wp-architect-java\web-app\wp-architect\packages\wp-base-desktop\src\form\ModelForm.js:107
    [INF] Compressing data with YuiJavascriptCompressor
    [ERR] C2009: YUI Parse Error (missing name after . operator => if (!Wp.admin.view.tools.export) Wp.admin.view.tools.expo
    rt = {};) -- unknown-file:101:32
    [ERR] C2009: YUI Parse Error (missing name after . operator => if (!Wp.admin.view.tools.import) Wp.admin.view.tools.impo
    rt = {};) -- unknown-file:102:32
    [ERR] C2009: YUI Parse Error (missing name after . operator =>     Wp.admin.view.tools.export,) -- unknown-file:182858:3
    1
    [ERR] C2009: YUI Parse Error (syntax error => ], 0));) -- unknown-file:182860:1
    [ERR] C2009: YUI Parse Error (missing name after . operator =>     Wp.admin.view.tools.export,) -- unknown-file:182871:3
    1
    [ERR] C2009: YUI Parse Error (syntax error => ], 0));) -- unknown-file:182873:1
    [ERR] C2009: YUI Parse Error (missing name after . operator =>     Wp.admin.view.tools.export,) -- unknown-file:183026:3
    1
    [ERR] C2009: YUI Parse Error (syntax error => ], 0));) -- unknown-file:183028:1
    [ERR] C2009: YUI Parse Error (missing name after . operator =>     Wp.admin.view.tools.import,) -- unknown-file:183226:3
    1
    [ERR] C2009: YUI Parse Error (syntax error => ], 0));) -- unknown-file:183228:1
    [ERR] C2009: YUI Parse Error (missing name after . operator =>     Wp.admin.view.tools.import,) -- unknown-file:183247:3
    1
    [ERR] C2009: YUI Parse Error (syntax error => ], 0));) -- unknown-file:183249:1
    [ERR] C2009: YUI Parse Error (missing name after . operator =>     Wp.admin.view.tools.import,) -- unknown-file:183483:3
    1
    [ERR] C2009: YUI Parse Error (syntax error => ], 0));) -- unknown-file:183485:1
    [ERR] C2009: YUI Parse Error (Compilation produced 14 syntax errors. => null) -- unknown-file:2
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: Failed to compress input
    [ERR]   at sun.reflec
    [ERR] t.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]
    [ERR] Total time: 9 seconds
    [ERR] The following error occurred while executing this line:
    D:\Workspaces\wp-architect-java\wp-architect-java\web-app\wp-architect\app-admin-desktop\.sencha\app\build-impl.xml:266:
     The following error occurred while executing this line:
    D:\Workspaces\wp-architect-java\wp-architect-java\web-app\wp-architect\app-admin-desktop\.sencha\app\js-impl.xml:71: com
    .sencha.exceptions.ExBuild: Failed to compress input
    Commenting out these simple requires allows the production build to work, but of course the app doesn't run properly because classes are missing.

    C:
        requires: [
            'Wp.admin.view.tools.export.Window',
            'Wp.admin.view.tools.import.Window'
        ],

  3. #3
    Sencha User
    Fecha de Ingreso
    Apr 2012
    Mensajes
    3

    Predeterminado bug utf-8 encoding in windows

    me too ,i found in window platoform is bug ,but in mac is ok.

  4. #4
    Sencha - Support Team
    Fecha de Ingreso
    Oct 2011
    Mensajes
    4.108

    Predeterminado

    Thanks for the report! I have opened a bug in our bug tracker.

  5. #5
    Sencha Premium Member
    Fecha de Ingreso
    Jul 2012
    Mensajes
    35

    Predeterminado

    The workaround as provided by Sencha support (thanks Fred) is to downgrade to Sencha Cmd 5.1.0.26. I've just tested it, and it seems to build Ext JS 5.1.0 just fine with the correct encoding.

    It's available via the Sencha support dashboard, or on the release notes page here:
    http://cdn.sencha.com/cmd/5.1.0.26/release-notes.html

  6. #6
    Ext JS Premium Member
    Fecha de Ingreso
    Apr 2010
    Ubicaci
    Omaha, NE
    Mensajes
    631

    Predeterminado

    Unfortunately going back to 5.1.0.26 doesn't fix my problem. My problem is different than yours but has similar error output.

  7. #7
    Ext JS Premium Member
    Fecha de Ingreso
    Apr 2010
    Ubicaci
    Omaha, NE
    Mensajes
    631

    Predeterminado

    Looks like I found out what my problem was. I had import and export in namespaces which is a reserved keyword:http://www.w3schools.com/js/js_reserved.asp

  8. #8
    Sencha Premium Member
    Fecha de Ingreso
    Jul 2012
    Mensajes
    35

    Predeterminado

    That's a shame. It's possible that the YUI compressor (which has been end-of-life for some time) is too old to parse certain parts of your script. Certain keywords as object properties for example, which are legal in ES5.

    I recommend turning off compression, even on the production build, and use uglify-js to minify in a separate step.

    You can turn off compression by adding this line to build.properties:

    C:
    build.compression=
    Edit: Yep, sounds like it was reserved keywords that are legal as property names in ES5.

  9. #9
    Sencha Premium Member
    Fecha de Ingreso
    Dec 2012
    Ubicaci
    Belgium
    Mensajes
    7

    Predeterminado

    I also had an encoding issue after upgrade to 5.1.1.39

    Had to change my source from:

    C:
    afsCodes: {            
         a:'[\u0061\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5\u00e6]',
         c:'[\u0063\u00e7]',
         e:'[\u0065\u00e8\u00e9\u00ea\u00eb\u00e6]',
         i:'[\u0069\u00ec\u00ed\u00ee\u00ef]',
         n:'[\u006e\u00f1]',
         o:'[\u006f\u00f2\u00f3\u00f4\u00f5\u00f6\u00f8]',
         s:'[\u0073\u00df]',
         u:'[\u0075\u00f9\u00fa\u00fb\u00fc]',
         y:'[\u0079\u00ff]'
    };
    to

    C:
    afsCodes: {
          a: '[' + String.fromCharCode(0x61, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6) + ']',
          c: '[' + String.fromCharCode(0x63, 0xe7) + ']',
          e: '[' + String.fromCharCode(0x65, 0xe8, 0xe9, 0xea, 0xeb, 0xe6) + ']',
          i: '[' + String.fromCharCode(0x69, 0xec, 0xed, 0xee, 0xef) + ']',
          n: '[' + String.fromCharCode(0x6e, 0xf1) + ']',
          o: '[' + String.fromCharCode(0x6f, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf8) + ']',
          s: '[' + String.fromCharCode(0x73, 0xdf) + ']',
          u: '[' + String.fromCharCode(0x75, 0xf9, 0xfa, 0xfb, 0xfc) + ']',
          y: '[' + String.fromCharCode(0x79, 0xff) + ']'
    },

  10. #10
    Sencha User
    Fecha de Ingreso
    Dec 2011
    Ubicaci
    Istanbul, Turkey
    Mensajes
    16

    Predeterminado

    I have the same problem as Qube mentioned. But when i build my application on Linux, there is no problem with the latest cmd. I am using the same cmd version on mac and get ??? letters instead of the real letters. All my encodings are utf-8, and those characters are turkish special chars.

    I dont want to downgrade coz we are working as a team in different platforms. Is there any other solution?

P 123

Normas de Publicaci

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •