PDA

View Full Version : [OPEN] Regression in yuicompressor ? Sencha Cmd 3.0.0.250



olegtaranenko
7 Nov 2012, 3:46 PM
Hi all,

I got pretty interesting message from
sencha ant testing build:


Sencha Cmd v3.0.0.250[INF] testing:
[INF] -before-init-local:
[INF] -init-local:
[INF] -after-init-local:
[INF] init-local:
[INF] find-cmd:
[INF] -before-init:
[INF] -init:
[INF] -after-init:
[INF] init:
[INF] -before-build:
[INF] sass:
[INF] -before-sass:
[INF] -sass:
[INF] [shellscript]
[INF] [shellscript] C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\resources\sass>compass compile
[INF] [shellscript] unchanged app.scss
[INF] -after-sass:
[INF] page:
[INF] -before-page:
[INF] -page:
[INF] building application
[INF] Deploying your application to C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive\testing
[INF] Copied js/date.js
[INF] Copied bootstrap.js
[INF] Copied touch/sencha-touch.js
[INF] Copied app.js
[INF] Copied resources/css/app.css
[INF] Copied C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\resources\images
[INF] Copied C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\resources\icons
[INF] Copied C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\resources\loading
[INF] Resolving your application dependencies (file:///C:/dev/odesk/pipedrive/git/Pipedrive-Mobile-App/Pipedrive/index.html)
[INF] Compiling app.js and dependencies
[INF] Processing classPath entry : C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\sencha-compile-temp-dir
[INF] Processing classPath entry : C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\touch\src
[INF] Processing classPath entry : C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app.js
[INF] Processing classPath entry : C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\data\RestApi.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\DealFilters.js => 6 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationActivities.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\People.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\DealProducts.js => 12 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\DealActivities.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\PersonActivities.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\DealFields.js => 11 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\Activities.js => 35 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationFields.js => 5 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\Search.js => 12 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\PersonDeals.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\Organizations.js => 16 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationPeople.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\PersonFilters.js => 15 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\data\RestApi.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationFilters.js => 15 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationDeals.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\data\RestApi.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\StageDeals.js => 10 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\Deals.js => 9 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\PersonFields.js => 5 : 7 )
[INF] Processing class inheritance graph
[INF] Processing instantiation refereces to classes and aliases
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\data\RestApi.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\Activities.js => 35 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\DealActivities.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\DealFields.js => 11 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\DealFilters.js => 6 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\DealProducts.js => 12 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\Deals.js => 9 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationActivities.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationDeals.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationFields.js => 5 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationFilters.js => 15 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\data\RestApi.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\OrganizationPeople.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\Organizations.js => 16 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\People.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\PersonActivities.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\PersonDeals.js => 13 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\PersonFields.js => 5 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\PersonFilters.js => 15 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\data\RestApi.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\Search.js => 12 : 7 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\app\store\StageDeals.js => 10 : 7 )
[INF] Processing source dependencies
[INF] Concatenating output to file C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive\testing\app.js
[INF] Completed compilation.
[INF] Processed local file js/date.js
[INF] Processed local file bootstrap.js
[INF] Processed local file touch/sencha-touch.js
[INF] Processed local file app.js
[INF] Generated app.json
[INF] Embedded microloader into index.html
[INF] Successfully deployed your application to C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive\testing
[INF] -after-page:
[INF] run:
[INF] -build:
[INF] -after-build:
[INF] [echo] ********** Deploying to C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive/testing/
[INF] [copy] Copying 1 file to C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive\testing\resources\fonts
[INF] [copy] Copying 1 file to C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive\testing\resources\fonts
[INF] [copy] Copying 1 file to C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive\testing\config
[INF] [copy] Copying 1 file to C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive\testing\log4javascript
[INF] [copy] Copying 1 file to C:\dev\odesk\pipedrive\git\Pipedrive-Mobile-App\Pipedrive\build\Pipedrive\testing
[INF] build:





in the source nothing special:


Ext.define('Pipedrive.store.DealFilters', { extend: 'Pipedrive.store.FiltersStore',
defaultFilterText: 'All deals, unfiltered',
contentType: 'deals',
config: {
proxy: {
extraParams: {
'type': 'deals'
}
}
}
});


3.0.0.201 eat this without any question. Pretty interesting that app is full working after all.

Any toughts?

Cheers, Oleg

dongryphon
7 Nov 2012, 6:17 PM
I don't think this is coming from YUI but looks like it is coming from the compiler's (newly enhanced) auto-dependency scanner I believe. This messages is generated when the scanner does not find a type property... probably because your proxy does not specify a type.

The framework will resolve this to a particular form of proxy (Ext.data.proxy.Proxy or Ext.data.proxy.Memory) but the compiler does not recognize that default type.

I will open a ticket to pick up the default type, but you can either ignore the problem for now or specify a "type" property.

mjgallag
9 Nov 2012, 7:22 AM
Don, I don't think explicitly specifying a type resolves this error, please see my thread below, thanks.

http://www.sencha.com/forum/showthread.php?248458-sencha-app-build-production-issue-on-upgrade-from-2.0.3-to-2.1.0-amp-from-tools-to-cmd (http://www.sencha.com/forum/showthread.php?248458-sencha-app-build-production-issue-on-upgrade-from-2.0.3-to-2.1.0-amp-from-tools-to-cmd)

olegtaranenko
9 Nov 2012, 7:27 AM
I trying to show a link but got
Sencha Forums Message

olegtaranenko, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

what for fun? :( Should I buy Sencha subscription to view the thread?

mjgallag
9 Nov 2012, 7:49 AM
Ugh, I posted in a premium forum. Based on this experience, as a premium support subscriber, I question the value of the premium forums. I don't mind paying what I pay for the other benefits at all, I just think maybe premium forums are taking it too far, and that they should be eliminated altogether. I don't think I'll be posting in them in the future, because I want to be able to engage with the entire community, especially when I face issues. But I digress :)

I've closed that thread and directed all further discussion to here, so all can see, since this is a bug. I tried to attach the thread as a straight PDF, so all could read easily, but I had to ZIP it to get upload to work.

olegtaranenko
9 Nov 2012, 8:01 AM
Thanks mjgallag

will waiting for Don response... honestly speaking, I did not understand his advice something to define or override in my Store/Proxy classes :)

Cheers, Oleg

mjgallag
9 Nov 2012, 8:04 AM
Oleg, I believe Don was asking you to try explicitly specifying a proxy type, like you see in my code in the attachment. But based on my experience I don't think this resolves the compilation error.

mjgallag
9 Nov 2012, 8:52 AM
Just to make sure we are all on the same page I can confirm that it seems this error can be safely ignored as a workaround, as Don suggests, as my production build seems to be working just fine.

dongryphon
9 Nov 2012, 10:49 AM
@mjgallag -

In this code:



Ext.define('CheckIn.store.Visits', {
extend: 'Ext.data.Store',
requires: ['Ext.data.proxy.Direct'],
config: {
autoLoad: true,
model: 'CheckIn.model.Visit',
proxy: {
type: 'direct',
directFn: CheckInRemoteAction.getVisits,
reader: {
rootProperty: 'objects',
messageProperty: 'message'
}
}
}
});


There are two places where "type" must be determined: the "proxy" and the "reader". My guess is the compiler is not properly determining the type of the reader in this case. Can you confirm that adding an explicit type: 'foo' property to the reader has any affect?

mjgallag
9 Nov 2012, 11:24 AM
You're absolutely right Don. I should have noticed that based on the fact it was complaining about line 10, which is where the reader is defined. Replacing an implicit reader type of json with an explicit one fixes the compilation error.

Therefore, I'll go with the explicit type workaround, since I feel safer with 0 production build errors, even if these types of build errors don't cause any actual issues when running in production :) When this bug closes I'll try implicit again.

Thanks!

Steffen Hiller
17 Dec 2012, 10:01 AM
Just had the same issue and adding "type: 'json'" to the reader config fixed it.

Don,

when can we expect the next CMD version that fixes the generating the hash code of the manifest images?
This has been marked as fixed for some time now, but not yet released.
It's the only annoying issue I have currently with CMD.

Thanks!

dongryphon
19 Dec 2012, 2:50 PM
Just pushed 3.0.1 out the door - http://www.sencha.com/forum/showthread.php?252060-Sencha-Cmd-v3.0.1-GA-is-Now-Available

Please check and see if this fixes the issue. :)