Results 1 to 7 of 7

Thread: code completion not working

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2015
    Posts
    4

    Default Answered: code completion not working

    Just installed the latest IntelliJ Ultimate 14.1.1 with the latest Sencha plugin (0.1.211). The config options are not showing up for code completion for any xtype such as a textfield. Do I need to setup a project a certain way?

  2. Try File... Invalidate Caches/Restart... Invalidate and Restart. That will reindex all sources. If things are still acting weird afterwards, I'd love to hop on a hangout and see if we can figure out what's wrong.

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

    Default

    First, verify that your project has the full Ext JS or Sencha Touch source code (non-minified) somewhere within the project. If you don't want to put it in the project you can also add it as a custom JavaScript library. The plugin needs the full source to index and provide code completion.

    In some cases, you may have to add an xtype or xclass config before the rest of the configs will come up. Just adding an xtype and completing on the value should bring up all xtypes.

    If that doesn't work, can you share the contents of the file that you're working on?

  4. #3
    Sencha User
    Join Date
    Apr 2015
    Posts
    4

    Default IntelliJ code completion not working

    I do have Ext source code in my project. For my workspace I have 2 apps, one app is Ext4 and another app is Ext5. So I have both Ext4 and Ext5 source code inside my project. The structure is like this:
    root/
    myext4app/
    myext5app/
    ext/ (ext 4 source code)
    ext5/ (ext 5 source code)
    packages/ (shared common code)

    Does this cause any issue?
    I created a new simple widget and code completion is not working for my checkbox:

    Ext.define('VSP.view.configs.MyComp', {
    requires: [
    /* include classes required by this component here */
    ],

    extend: 'Ext.Container',

    /*
    Uncomment to give this component an xtype
    xtype: 'mydialog',
    */


    items: [
    {
    xtype: 'checkbox',
    }
    ]
    });

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

    Default

    We haven't tested using multiple framework versions in the same project yet, so it's not surprising that you are running into issues. We'll start to tackle that as part of support for ext6 next week. It might be a few weeks before an update is released which addresses that. In the meantime you could treat them as separate projects as a workaround.

  6. #5
    Sencha User
    Join Date
    Apr 2015
    Posts
    4

    Default

    We plan to upgrade both apps to Ext5. Will see if this problem goes away.

  7. #6
    Sencha Premium Member
    Join Date
    Oct 2008
    Posts
    46

    Default

    I am having the similar issue but I only have one Global Javascript library configured and it is pointing to ext\src. When I click on thextype: 'textfield' it does find the source file, but when running inspections I get a lot of errors for 'Unknown widget' textfield and other Ext components. on a positive note. Great to see a plug in..

  8. #7
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    Try File... Invalidate Caches/Restart... Invalidate and Restart. That will reindex all sources. If things are still acting weird afterwards, I'd love to hop on a hangout and see if we can figure out what's wrong.

Similar Threads

  1. Code completion?
    By firefoxSafari in forum Sencha Architect 3.x: Q&A
    Replies: 5
    Last Post: 23 Jan 2014, 11:13 AM
  2. Code Completion - where is it?
    By steve_ in forum Sencha Architect 3.x: Q&A
    Replies: 5
    Last Post: 15 Nov 2013, 3:57 PM
  3. Code Completion
    By deshartman in forum Sencha Architect 2.x: Help & Discussions
    Replies: 2
    Last Post: 22 Mar 2012, 6:13 AM
  4. how to set up code completion a la ext.jsb* for Ext4
    By asinning in forum Community Discussion
    Replies: 1
    Last Post: 4 Jan 2012, 8:22 AM
  5. code completion / code assist / intellisense with NetBeans
    By el_chief in forum Ext:User Extensions and Plugins
    Replies: 1
    Last Post: 9 Nov 2011, 5:53 AM

Tags for this Thread

Posting Permissions

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