-
17 Feb 2011 7:41 AM #1
JavaScript Editor that use JSB2 File
JavaScript Editor that use JSB2 File
I've just learned that JSB2 file can be used to assist "auto code completion" for JavaScript Editor. As of now, I'm using Aptana that's built into Eclipse. While it's "fairly" good, it's missing a lot of API. Someone mentioned about Spket Editor and followed the guide on
http://www.scribd.com/doc/43810349/T...ry-Development
Still, the auto completion code did not work for me. Another thing I notice is that Spket hasn't been updated since 2009 September so I like to know other type of JavaScript Editor that utilizes jsb2 file. Any help would be appreciated!
-
17 Feb 2011 7:46 AM #2
I have no idea...why it's working now... Spket is working!!! Still, it's having the same problem as Aptana. It's not picking up API like Ext.ns methods... ah well~ If there's other plugin, I would love to give it a try!
-
17 Feb 2011 7:51 AM #3Sencha - Community Support Team
- Join Date
- Nov 2008
- Location
- San Diego, Peoples' Republic of California
- Posts
- 2,040
- Vote Rating
- 7
Komodo Edit. Doesn't even require the .jsb file, it builds its own from the ExtJS sources (if they're in your project/workspace) and does an amazing job of completion.
It also supports jsdoc comments.SilkJS - Server Side JavaScript Swiss Army Knife and HTTP Server
Powerful, flexible, advanced charting for ExtJS and Touch: http://zingchart.com
Javascript rocks. Even on the server-side:
ExtJS Forums' Server-Side Javascript Social Group
-
17 Feb 2011 7:52 AM #4
By using new way of creating Class under ExtJS4 using Ext.define method... I realize no IDE will ever understand the new class I've created.... So, if Sencha creates a JavaScript Editor that's specific to their library would be unbelievable useful.... Heck if someone made a that editor for Eclipse for $100, sign me up!!!
-
17 Feb 2011 8:21 AM #5
I tried Komodo but liked Spket better because it also gave completion for config objects and I needed Eclipse anyway. Spket supports JSDoc, too. Komodo wasn't bad though; to each his own.
Ext.ns works fine for me.
I assume you made a ExtJS profile? Once this is done, people often forget to make this the default. Select the ExtJS profile and select the Default button on the right of the preferences screen. Once this is done, you'll have to reload the profile. You can do this by right-clicking your project and selecting Reload JavaScript Profile or by restarting Eclipse. You'll probably also have to close and reopen any .js files you had open before you made ExtJS the default.
-
17 Feb 2011 8:26 AM #6
Holy s*it!
Holy s*it!
I found the problem. When importing jsb2 file, I checked everything... So, I went back and checked
Ext All
Ext base
.....pure awesomeness!!!!.... thanks guys!!!!
-
17 Feb 2011 8:27 AM #7
I tried komodo as well... It only seems to pick up Ext base not things like Ext.Window.. and it did not contain JSDOC... To me spket seem like a dead project but at least it works

-
17 Feb 2011 10:01 AM #8
-
17 Feb 2011 10:14 AM #9
WebStorm is definitely awesome! It works great! However it's not importing the JSDoc... I like how it shows the return type from the method... Spket does not show what Object type is being returned..... Also found that Spket is not quite reliable for auto complete
example on Spket
Ah well~~~ Looks like WebStorm is the winner for me.. I guess I just have to switch from WebStorm for JavaScript and Java for Eclipse.Code:var test = new Ext.Window(); test.getComponent('test').<nothing shows up>
-
17 Feb 2011 11:27 AM #10
This is bad news for the IDE....
I checked out ExtJS4 Window.js
It starts off
Ext.define('Ext.window.Window',...
Not saying Ext.define is bad at all! But, it's just that IDE won't pick up auto completion for Ext.window.Window!!!! Looks like back to spket since they'll provide jsb2 file... ah well......
Similar Threads
-
Can you have comments in the JSB2 file?
By mark.lancaster in forum Sencha CmdReplies: 4Last Post: 30 Dec 2010, 4:23 AM -
Is there a tool for generating a custom ext.jsb2 file?
By vesper8 in forum Community DiscussionReplies: 3Last Post: 10 Jun 2010, 3:10 PM -
ext-touch.jsb2 file?
By mrsunshine in forum Sencha Touch 1.x: DiscussionReplies: 6Last Post: 8 Jun 2010, 7:13 AM -
Xml version of jsb2 project file
By maxm165 in forum Sencha CmdReplies: 0Last Post: 30 Oct 2009, 10:18 AM -
Possible JSB2 error with file globbing
By jakehurst in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 8 Jul 2009, 4:49 AM


Reply With Quote