Spket custom class code completion only in that class

Bug Reports and Fixes
Post Reply
zulus
Posts: 2
Joined: Wed Jan 18, 2012 12:36 am

Spket custom class code completion only in that class

Post by zulus » Wed Jan 18, 2012 2:47 am

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.

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

Re: Spket custom class code completion only in that class

Post by eric_suen » Wed Jan 18, 2012 4:25 am

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

zulus
Posts: 2
Joined: Wed Jan 18, 2012 12:36 am

Re: Spket custom class code completion only in that class

Post by zulus » Wed Jan 18, 2012 3:03 pm

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 ;) ?

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

Re: Spket custom class code completion only in that class

Post by eric_suen » Wed Jan 18, 2012 5:35 pm

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.

jimmyjack
Posts: 1
Joined: Wed Dec 12, 2012 9:36 am

Re: Spket custom class code completion only in that class

Post by jimmyjack » Wed Dec 12, 2012 9:37 am

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)
Pass 642-447 dumps exam fast to explore the better job opportunities. More details visit now Harvard University website or see on wikipedia and Youtube or Facebook.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest