Ext JS 3.3.1 - Code Completion not working

Get help with Spket IDE.
ofer
Posts: 4
Joined: Tue Sep 06, 2011 1:57 pm

Ext JS 3.3.1 - Code Completion not working

Post by ofer » Tue Sep 06, 2011 2:04 pm

Hi all,

I'm using Eclipse Indigo and Spket in order to get code completion for Ext JS 3.3.1 and it's not working. I've read many forum pages on the issue and have validated that I am using the JSB2 file from the correct location and that the editor I'm using is the Spket IDE editor and not the default one.
I've tried this with Eclipse J2EE, Eclipse, Eclipse for JavaScript Developers and Aptana Studio (both as Eclipse plugin and standalone) and nothing seems to work!

I have noticed one strange thing and that is that the "Ext All" that I choose from the JSB2 file references in "ext-all-no-core.js" under the "pkgDeps" property, but I cannot find that file. Note that this comes with the original Ext JS download and was not manipulated. Should I use a different option? I have tried a few, but none seemed to work.

Do also note that I have the snippets window and when adding a new Extension, then the Ext.ux namespace is code completed properly, but all of the regular Ext stuff still does not.

Anyone have any clue? I've been struggling with this all day long and just can't get it to work.


Many thanks,
Ofer

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Re: Ext JS 3.3.1 - Code Completion not working

Post by eric_suen » Tue Sep 06, 2011 3:42 pm

Have you set that profile as default one? you can find 2 files:

workspace\.metadata\.plugins\com.spket.js\profiles.xml
workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\com.spket.js.prefs

Could you send these 2 files to me or paste contents here

ofer
Posts: 4
Joined: Tue Sep 06, 2011 1:57 pm

Re: Ext JS 3.3.1 - Code Completion not working

Post by ofer » Tue Sep 06, 2011 6:38 pm

Hi Eric,

Thanks for your answer. I have set the profile as a default one.

The profiles.xml is as follows:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles>
<profile id="ExtJS" name="ExtJS">use namespace ExtJS("Ext All");
include 'C:\\Users\\oferi\\Desktop\\Portal\\MDB 3\\js\\ext\\ext.jsb2';
</profile>
</profiles>

And the com.spket.js.prefs is:
#Tue Sep 06 13:09:27 IDT 2011
eclipse.preferences.version=1
js.profile=ExtJS

Thanks,
Ofer

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Re: Ext JS 3.3.1 - Code Completion not working

Post by eric_suen » Tue Sep 06, 2011 7:31 pm

these files are correct, could you take a look this thread: viewtopic.php?f=3&t=1252&p=2201&hilit=empty#p2201

ofer
Posts: 4
Joined: Tue Sep 06, 2011 1:57 pm

Re: Ext JS 3.3.1 - Code Completion not working

Post by ofer » Wed Sep 07, 2011 8:41 am

Hi Eric,

I looked at the additional thread, but haven't found any solution there. Note that when I open a new JS file, then when I hit CTRL+SPACE I get:
Inifinity
NaN
document
undefined
window
decodeURI
docodeURIComponent
encodeURI
encodeURIComponent
....
...
..

and when I hit ALT+/ then I don't get anything (just a beep indicating nothing is available).

Any ideas?

Also, what I wrote earlier regarding the JSB2 file pointing to an invalid location in the pkgDeps section - is that OK? What's the effect of that?

Thanks,
Ofer

ofer
Posts: 4
Joined: Tue Sep 06, 2011 1:57 pm

Re: Ext JS 3.3.1 - Code Completion not working

Post by ofer » Wed Sep 07, 2011 9:04 am

I've just downloaded ext js from their site and referenced that instead of the previous folder of ext js and it works!!!

Seems that the previous folder had some missing parts, such as the src/ directory.

Thanks for your help!

apecoder
Posts: 2
Joined: Fri Jan 27, 2012 9:31 am

Re: Ext JS 3.3.1 - Code Completion not working

Post by apecoder » Fri Jan 27, 2012 9:43 am

I am evaluating Spket. The standalone version is working, but i can not run the plugin version.

My configuration: Win XP Pro 32-bit (vmware), jdk 1.6, eclipse-jee-3.7.1-indigo-SR1-win32.zip, spket-1.6.22.zip, Ext JS 3.3.2
My steps:
- unzip eclipse, start it, create new workspace, close eclipse
- unzip ext-3.3.2.zip
- unzip spket-1.6.22.zip into eclipse folder
- start eclipse, create new Spket javascript profile pointing to ext-3.3.2/ext.jsb2, set this profile as default
- create new Java EE Web project
- create new js file
- no autocomplete for Ext namespace
:( :( :(
PS: restarting eclipse with parameter "-clean" did not help

apecoder
Posts: 2
Joined: Fri Jan 27, 2012 9:31 am

Re: Ext JS 3.3.1 - Code Completion not working

Post by apecoder » Fri Jan 27, 2012 10:12 am

I have got it :idea: :P
Eclipse JEE version has it's own javascript editor which is the default one.
It is necessary to associate all JS files with Spket editor !!!

Look at step 10 in this blog post
http://ria.arunkumarm.com/2010/09/setti ... query.html

sam-omni
Posts: 5
Joined: Tue Feb 21, 2012 12:53 pm

Re: Ext JS 3.3.1 - Code Completion not working

Post by sam-omni » Tue Feb 21, 2012 1:19 pm

hi all,
i am using spket 1.16.20 as a plugin in eclipse indigo 3.7.0 release.I have created a javascript profile and have added ext.jsb2 .I have associated *.js files with spket editor.I have selected the newly created extjs profile as default for js files.
I have checked the configurations and settings but couldnt figure out why code completion still not working.
com.spket.js.prefs and profiles.xml seems right (checked from thread here).
When i open a new js file and hit Ctrl+space i get :
Ext
Infinity
NaN
..
...
..

Please help!

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Re: Ext JS 3.3.1 - Code Completion not working

Post by eric_suen » Tue Feb 21, 2012 1:45 pm

could you give more information what kind of code completion do you expected, when you open a new file and hist ctrl+space, the Ext already on the list. It's the sign that your setup is correct.

BTW, if you use Ext JS 3.4.x, please upgrade to version 1.6.22.

sam-omni
Posts: 5
Joined: Tue Feb 21, 2012 12:53 pm

Re: Ext JS 3.3.1 - Code Completion not working

Post by sam-omni » Wed Feb 22, 2012 11:25 am

hi,
i am using Ext 3.3.1.I was thinking code completion will happen in a manner...like if i write Ext. and hit ctrl+space, this code completion will show all options to choose from.
For eg,. Ext.Msg...Ext.onReady...
If i am wrong, please correct.

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Re: Ext JS 3.3.1 - Code Completion not working

Post by eric_suen » Wed Feb 22, 2012 1:26 pm

Could you please upgrade to 1.6.22 and try again? after upgrade, please check your profile, make sure Ext Base is selected and load first(select Ext Base, then click up button), or you could simply recreate one, could be this bug in 1.6.20 - viewtopic.php?f=3&t=3563&p=6268

sam-omni
Posts: 5
Joined: Tue Feb 21, 2012 12:53 pm

Re: Ext JS 3.3.1 - Code Completion not working

Post by sam-omni » Sat Feb 25, 2012 7:59 am

Could you please specify a site from where i can intall spket 1.6.22 plugin. I am trying to install it from http://www.agpad.com/update/ but of no use.

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Re: Ext JS 3.3.1 - Code Completion not working

Post by eric_suen » Sat Feb 25, 2012 1:05 pm

What problem were you encounter? I have no problem install from http://www.agpad.com/update/

sam-omni
Posts: 5
Joined: Tue Feb 21, 2012 12:53 pm

Re: Ext JS 3.3.1 - Code Completion not working

Post by sam-omni » Wed Feb 29, 2012 10:22 am

when i enter thr url for installation, eclipse shows
"Could not find the site"
"This repository is currently not available." :x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest