Problem with build package

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with build package

Andrea Venturini
Hi all,
   I have a problem with the build version of my application. My
application is composed by several classes, each class in implemented in
a unique js and is defined using the syntax:

qx.Class.define("myapp.myclass", {


   I obviously use the class using this syntax:

myVar  = new myapp.myclass();


   This works perfectly in the source version, the lint target doesn't
report any error about it.

   In build version I get this error:

bb is not defined


   and the code has become:

myVar =new bb.myclass();


   If I manually replace the code replacing "bb" with "myapp" it works.

Can someone help me?

Tanks in advance
Ciao
a


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with build package

thron7


Andrea Venturini wrote:

> Hi all,
>    I have a problem with the build version of my application. My
> application is composed by several classes, each class in implemented in
> a unique js and is defined using the syntax:
>
> qx.Class.define("myapp.myclass", {
>
>
>    I obviously use the class using this syntax:
>
> myVar  = new myapp.myclass();
>
>
>    This works perfectly in the source version, the lint target doesn't
> report any error about it.
>
>    In build version I get this error:
>
> bb is not defined
>
>
>    and the code has become:
>
> myVar =new bb.myclass();
>
>
>    If I manually replace the code replacing "bb" with "myapp" it works.
>
> Can someone help me?
>  

Andrea, this looks like an optimizer issue. For a quick work-around you
could switch off variable optimization by setting

   "OPTIMIZE" : ["basecalls", "privates", "strings"]

in your config.json's global 'let' section. If this doesn't help try
removing the other optimize keywords one by one (leaving a final empty
list).

We're currently working on optimizer issues, so chances are the bug has
already been fixed or is in the making. If you will check out the trunk
version from SVN and see if your build is working there with full
optimization.

Thomas

> Tanks in advance
> Ciao
> a
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>  

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with build package

Andrea Venturini
Great! It works!

Thank you very much
Ciao
a


thron7 ha scritto:
Andrea Venturini wrote:
  
Hi all,
   I have a problem with the build version of my application. My 
application is composed by several classes, each class in implemented in 
a unique js and is defined using the syntax:

qx.Class.define("myapp.myclass", {


   I obviously use the class using this syntax:

myVar  = new myapp.myclass();


   This works perfectly in the source version, the lint target doesn't 
report any error about it.

   In build version I get this error:

bb is not defined


   and the code has become:

myVar =new bb.myclass();


   If I manually replace the code replacing "bb" with "myapp" it works.

Can someone help me?
  
    

Andrea, this looks like an optimizer issue. For a quick work-around you 
could switch off variable optimization by setting

   "OPTIMIZE" : ["basecalls", "privates", "strings"]

in your config.json's global 'let' section. If this doesn't help try 
removing the other optimize keywords one by one (leaving a final empty 
list).

We're currently working on optimizer issues, so chances are the bug has 
already been fixed or is in the making. If you will check out the trunk 
version from SVN and see if your build is working there with full 
optimization.

Thomas

  
Tanks in advance
Ciao
a


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


  
    

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

  


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel