Page 1 of 1

Spket custom class code completion only in that class

Posted: Wed Jan 18, 2012 2:47 am
by zulus
Hi,
I'm using commercial spket license as eclipse plugin (PHP Symfony 2 Project or JavaScript Project). Code completion on ext class work ok.

Completion of custom class only works while I work on that clas:

Code: Select all

Ext.define('com.example.view.test',  {
extends: "something"
});
But whne I want use code completion on another class (another file), code completion not work. Is it normal?

Eclipse Indigo with Symfony 2 plugin, egi and mylyn.

Re: Spket custom class code completion only in that class

Posted: Wed Jan 18, 2012 4:25 am
by eric_suen
probably because the editor can't find the class "something", you can add that file in your profile, or use include comment, please take a look this thread - viewtopic.php?f=3&t=365

Re: Spket custom class code completion only in that class

Posted: Wed Jan 18, 2012 3:03 pm
by zulus
Hmm it is too big project to add @include everywhere.

Is possible to for example register namespaces ? Or for the future? For ex:
namespace A : project_root/some_dirs/Resrources/app/subnamespace/subnamespace2/class.js
namespace B : project_root/some_dirs/Resrources/app/subnamespace/subnamespace2/class.js

like on ext but with many namespaces ;) ?

Re: Spket custom class code completion only in that class

Posted: Wed Jan 18, 2012 5:35 pm
by eric_suen
If the API is stable, you can consider add these files to your profile. and indeed the way find class in same project should be improved.

Re: Spket custom class code completion only in that class

Posted: Wed Dec 12, 2012 9:37 am
by jimmyjack
using the custom com.spket.js_1.6.18.jar for Ext 4.x support after installing spket in eclipse 3.7 causes a null pointer exception. Below is the stack trace

Message: An internal error occurred during: "Loading Context".

java.lang.NullPointerException
at com.spket.js.profile.ProfileLoader.getFiles3(Unknown Source)
at com.spket.js.profile.ProfileLoader.load(Unknown Source)
at com.spket.js.profile.ProfileLoader.load(Unknown Source)
at com.spket.js.profile.ProfileContext.loadClasses(Unknown Source)
at com.spket.js.model.Context$2.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)