JavaScript compilation failed

56 views
Skip to first unread message

Siddardha G

unread,
Mar 8, 2013, 1:51:25 AM3/8/13
to bite-d...@googlegroups.com
Hi,

I'm trying to build BITE on my Mac. I've cloned the repo and tried running ./build.py. All the tools and dependencies got downloaded successfully. When it tries to compile the JavaScript files, there is some error.

----ERROR----

 Compiling JavaScript files ...
  [FAILED]  Compiling extension/src/options/page.js

common/extension/externs/rpf_externs.js:17: WARNING - initializing variable
found   : {}
required: JSONType
var JSON = {};
           ^

extension/src/options/data.js:146: ERROR - invalid cast - must be a subtype or supertype
from: number
to  : string
                                   /** @type {string} */ (timestamp));
                                                          ^

extension/src/options/page.js:533: ERROR - invalid cast - must be a subtype or supertype
from: string
to  : number
      var millisec = /** @type {number} */ (timestamp);
                                            ^

2 error(s), 1 warning(s), 97.6% typed
deps/closure/closure-library/closure/bin/build/closurebuilder.py: JavaScript compilation failed.

----END_ERROR----

Can you help me out with this? Is this some error with the closure-compiler?

Thanks!

--
Siddardha

Jason Stredwick

unread,
Mar 8, 2013, 11:03:19 AM3/8/13
to bite-d...@googlegroups.com
Hi Siddardha,

Yes, it is closure compiler error complaining about the casting of a number to string.  I will take a look today and try to fix it.

Thanks,
Jason

Jason Stredwick

unread,
Mar 8, 2013, 2:12:10 PM3/8/13
to bite-d...@googlegroups.com
I updated dependencies.  If you could remove the clone then clone it again it should work.  Please let me know if it doesn't work for you.  I am going to publish a message to the group about the changes I made.  You can view that one shortly for details of my changes.  Please note the download will be much bigger now.
Reply all
Reply to author
Forward
0 new messages