PDA

View Full Version : WebStorm plugin [6.0.1.396] does not detect class usage for requires



nikolay.bobrovskiy
27 Jul 2015, 5:44 AM
Please look at this screenshot: https://s3.amazonaws.com/donnicky_screenshots/2015-07-27_16-41.png

Lead.Manager defined as:

Ext.define('Lead.Manager', { singleton: true, ... });

Mark.Brocato
27 Jul 2015, 6:55 AM
Thank you for posting. Where is the file that contains the Lead.Manager class? Is it in app/Manager.js or somewhere else? If you hover over the grayed-out 'Lead.Manager' in the requires array, what is the error message?

nikolay.bobrovskiy
27 Jul 2015, 10:10 AM
Maybe the problem exists because Application.js is toolkit independent, but Lead.Manager is from classic.https://s3.amazonaws.com/donnicky_screenshots/2015-07-27_21-09.png

Mark.Brocato
27 Jul 2015, 10:18 AM
Yes, that is the source of the problem. When looking up references within the app directory, the plugin only looks for classes outside of toolkits, since it's ambiguous which toolkit is being referenced. There isn't really a way around this for now, other than to move shared classes into the app directory tree, if that's possible.

ngocmai9791
27 Jul 2015, 7:40 PM
thanks for posting

okshophanhphuc
23 Apr 2017, 6:56 PM
Thank you, exactly what I needed!










__________________________________________________________________________________________________________________________________________________________________

do choi tinh duc (https://dochoitinhducnamnu.com/do-choi-tinh-duc-gia-re) co suc cuon hut manh me ban nen su dung them ca bao cao su don den (https://dochoitinhducnamnu.com/bao-cao-su-don-den) neu muon nua nhe.

deleted14
30 Jun 2017, 6:10 PM
Please look at this screenshot: https://s3.amazonaws.com/donnicky_screenshots/2015-07-27_16-41.png

Lead.Manager defined as:

Ext.define('Lead.Manager', { singleton: true, ... });
Thank you for posting

stch
7 Sep 2017, 11:37 PM
thanks for posting