Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [ERR] C2001: Closure Compiler Error (Parse error. invalid assignment target) -- compr

  1. #1
    Sencha Premium User
    Join Date
    Feb 2014
    Posts
    16
    Vote Rating
    17
      1  

    Default [ERR] C2001: Closure Compiler Error (Parse error. invalid assignment target) -- compr

    Hi all,


    I am getting the following error when using Sencha Cmd version 6.2.1.29. Hope someone can clarify what needs to be done. The issue is that app.js is zero bytes which should hold all application code.

    [ERR] C2001: Closure Compiler Error (Parse error. invalid assignment target) -- compression-input:9:54

    Configs in app.json manifest are:

    Code:
        "production": {
            "output": {
                "appCache": {
                    "enable": true,
                    "path": "cache.appcache"
                }
            },
            "loader": {
                "cache": "${build.timestamp}"
            },
            "cache": {
                "enable": true
            },
            "compressor": {
                "type": "closure",
    
    
                //all other keys are passed as options
                "ambiguateProperties" : true,
                "foldConstants"       : true
            }
        },

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Vote Rating
    292
      0  

    Default

    Did this just start happening with 6.2.1? Are you saying that you are trying to build an application that has an empty app.js or that it winds up that way after the build attempt?

  3. #3
    Sencha Premium User
    Join Date
    Feb 2014
    Posts
    16
    Vote Rating
    17
      0  

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    Did this just start happening with 6.2.1? Are you saying that you are trying to build an application that has an empty app.js or that it winds up that way after the build attempt?
    Thx for the fast reply - I am saying it winds up that way after the build, surely.

    Another details is taht the app was generated with -ext and -classic options:
    Code:
    sencha -sdk ~/Downloads/ext-6.2.1 generate app -ext -classic App ~/Projects/sencha/wcwr-dashboard

  4. #4
    Sencha Premium User
    Join Date
    Feb 2014
    Posts
    16
    Vote Rating
    17
      0  

    Default

    This is really getting frustrating. For the problem above, I've tested also with Sencha Cmd 6.5 EA.


    Additionally, I've tried with Uglify, I get the following error, although the jvm memory has been increased according to https://www.sencha.com/forum/showthr...limit-exceeded
    Code:
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: GC overhead limit exceeded
    [ERR]  a
    [ERR] t org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
    [ERR] 
    [ERR] Total time: 2 minutes 4 seconds

    YUI compressor also issues errors.
    In Cmd 6.2.1, a class cannot stored in the second folder, like 'Namespace.folder1.folder2.ClassName' and in Cmd 6.5 EA, YUI seems to be replaced with CmdJavascriptCompressor and the same error of Closure compressor is issued:
    Code:
    [ERR] C2001: Closure Compiler Error (Parse error. invalid assignment target) -- compression-input:9:54

    Any hints are highly appreciated.

  5. #5
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Vote Rating
    292
      0  

    Default

    That is strange. Do you get any better information if you run the build with the debug flag (sencha -d app build)?

    Regarding the second issue, you tried the changes mentioned in this thread?
    https://www.sencha.com/forum/showthread.php?331627

  6. #6
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Vote Rating
    504
      1  

    Default

    We had another report of this. Seems this corrected the issue for the user:

    >> I have added the following line to both sencha.cfg file in /cmd/.. and in .sencha/app directories

    cmd.jvm.args=-Xms1024m -Xmx8192m -Dapple.awt.UIElement=true -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:-UseConcMarkSweepGC

  7. #7
    Sencha Premium Member
    Join Date
    Sep 2014
    Posts
    43
    Vote Rating
    6
      0  

    Default

    Seems something similar is happening with Sencha CMD 6.5 though now you have to edit the sencha.vmoptions file to up the max memory.

  8. #8
    Sencha Premium Member
    Join Date
    Feb 2016
    Posts
    10
    Vote Rating
    1
      0  

    Default

    I think I have a similar problem. I'm running sencha cmd 6.5 with ext 6.5 app.
    It used to compile just fine without errors but now it doesn't even though the code syntax looks ok.

  9. #9
    Sencha Premium Member
    Join Date
    Sep 2014
    Posts
    43
    Vote Rating
    6
      0  

    Default

    This is still an issue with Sencha CMD 6.5.1. Editing the max memory settings in the sencha.vmoptions file in the cmd install directory works around the issue for now but a proper fix would be nice.

  10. #10
    Sencha Premium User
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    733
    Vote Rating
    46
      0  

    Default

    Quote Originally Posted by thomas.hardwick View Post
    This is still an issue with Sencha CMD 6.5.1. Editing the max memory settings in the sencha.vmoptions file in the cmd install directory works around the issue for now but a proper fix would be nice.
    confirmed - same issue here with CMD 6.5.1.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 9
    Last Post: 10 Jun 2014, 3:07 PM
  2. externs.js for closure compiler
    By Ion Tichy in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 6 Sep 2011, 10:13 AM
  3. Google Closure Compiler
    By hitman01 in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 17 Feb 2011, 6:34 AM
  4. Googles Closure Compiler
    By crp_spaeth in forum Community Discussion
    Replies: 30
    Last Post: 5 Jan 2011, 2:46 AM
  5. Google Closure Compiler
    By Beginner1971 in forum Community Discussion
    Replies: 3
    Last Post: 3 Dec 2010, 3:48 AM

Tags for this Thread

Posting Permissions

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