Results 1 to 8 of 8

Thread: WebStorm plugin [6.0.1.396] does not detect class usage for requires

  1. #1
    Sencha User
    Join Date
    Jun 2014
    Location
    Murmansk, Russia
    Posts
    284
    Answers
    3
    Vote Rating
    109
      0  

    Default Answered: WebStorm plugin [6.0.1.396] does not detect class usage for requires

    Please look at this screenshot: https://s3.amazonaws.com/donnicky_sc...7-27_16-41.png

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

  2. 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.

  3. #2
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114
    Vote Rating
    54
      0  

    Default

    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?

  4. #3
    Sencha User
    Join Date
    Jun 2014
    Location
    Murmansk, Russia
    Posts
    284
    Answers
    3
    Vote Rating
    109
      0  

    Default

    Maybe the problem exists because Application.js is toolkit independent, but Lead.Manager is from classic.https://s3.amazonaws.com/donnicky_sc...7-27_21-09.png

  5. #4
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114
    Vote Rating
    54
      0  

    Default

    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.

  6. #5

  7. #6

    Default

    Thank you, exactly what I needed!










    __________________________________________________________________________________________________________________________________________________________________

    do choi tinh duc co suc cuon hut manh me ban nen su dung them ca bao cao su don den neu muon nua nhe.

  8. #7
    Sencha User
    Join Date
    Jun 2017
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by nikolay.bobrovskiy View Post
    Please look at this screenshot: https://s3.amazonaws.com/donnicky_sc...7-27_16-41.png

    Lead.Manager defined as:
    Code:
    Ext.define('Lead.Manager', { singleton: true, ... });
    Thank you for posting
    do choi tinh duc nam cao cap gia re | do choi tinh duc nu giong that | bao cao su don den hang khung

  9. #8
    Sencha User
    Join Date
    Sep 2017
    Posts
    2
    Vote Rating
    0
      0  

    Default

    thanks for posting
    Chuyên cung cấp đồ chơi người lớn và các loại âm đạo giả

Similar Threads

  1. [FIXED] Webstorm plugin Auto-Requires adding way too much stuff
    By FBNitro in forum JetBrains IDE Plugin
    Replies: 8
    Last Post: 19 Jun 2015, 10:02 AM
  2. [FIXED] [WebStorm plugin] Reports unused class in requires, but class is actually used
    By nikolay.bobrovskiy in forum JetBrains IDE Plugin
    Replies: 1
    Last Post: 26 May 2015, 12:31 PM
  3. [DUP] [WebStorm plugin] Ext.widget('somextype') does not generate requires array missing
    By nikolay.bobrovskiy in forum JetBrains IDE Plugin
    Replies: 1
    Last Post: 26 May 2015, 12:06 AM
  4. Replies: 0
    Last Post: 22 May 2015, 7:10 PM
  5. Webstorm plugin produces redudant requires missing errors
    By nikolay.bobrovskiy in forum JetBrains IDE Plugin
    Replies: 7
    Last Post: 18 May 2015, 7:32 AM

Posting Permissions

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