Search found 18 matches

by Gary
Wed Jul 02, 2008 8:52 pm
Forum: Bugs
Topic: JSDoc and @type
Replies: 0
Views: 5624

JSDoc and @type

It is silly, but JSDoc and JSDoc-toolkit do not expect { } around the class type for the @type parameter. I've been using JSDoc-Tookit lately and I couldn't figure out why all of the property types were missing. Once I changed /** * @type {String} */ to /** *@type String */ my property types showed ...
by Gary
Fri Jun 27, 2008 7:55 pm
Forum: Feature Requests
Topic: Outline Enhancement
Replies: 0
Views: 5044

Outline Enhancement

Would it be possible to have the Outline show properties of objects that have been assigned to other objects? For example: A = { a : "a" }; B = { b : "b" }; A.myB = B; Currenty, the outliner shows this: http://www.garyparr.net/img/current.gif Would it be possible to add an option that gave you this?...
by Gary
Fri Jun 27, 2008 7:32 pm
Forum: Bugs
Topic: Outline bug (minor)
Replies: 0
Views: 4995

Outline bug (minor)

Eric, wanted to pass this along.

Code: Select all

/** @class A */
A = (function( ) {
	return { a : "a" };
})( );

/** @class B */
B = (function( ) {
	var pub = { b : "b"};
	return pub;
})( );
Code Completion works fine for both objects, but the Outline only shows a Name property for the A object.

-Gary
by Gary
Fri Jun 27, 2008 4:06 pm
Forum: General discussion
Topic: force type when using [] for property?
Replies: 8
Views: 8782

Ok, that was it. Using a custom profile caused the in-line typing to start working per the code sample. It looks like we are starting to combine two different threads... this one and my "Anyway to suggest..." ( http://forums.spket.com/viewtopic.php?t=505 ) which dealt with in-line typing. I played a...
by Gary
Fri Jun 27, 2008 2:47 pm
Forum: General discussion
Topic: force type when using [] for property?
Replies: 8
Views: 8782

Eric, I can not thank you enough for putting time into this. Unfortunately, the quick fixes are not working. I downloaded the jar files and replaced the existing ones in the packages folder. The new option "enable inline" did appear on the preferences dialog, but has no effect. Perhaps there is anot...
by Gary
Thu Jun 26, 2008 5:15 pm
Forum: General discussion
Topic: force type when using [] for property?
Replies: 8
Views: 8782

Eric, Not sure why, but I can't get any code completion to work in these cases. I opened Spket with a new workspace, created an empty project with a single file and copied/pasted your code to make sure I wasn't miss-typing anything and it still doesn't work. Regardless, assuming it should work (I'll...
by Gary
Thu Jun 26, 2008 4:30 pm
Forum: General discussion
Topic: Any way to "suggest" object types for code complet
Replies: 9
Views: 10773

Sort of. Something like this I think... var s = Sections.Item(0); // s is typed as Section base class if(s.Type==0) { // somehow re-type variable s as SectionTypeA // do stuff } else if(s.Type==1) { // somehow re-type variable s as SectionTypeB // do other stuff } else { // leave s typed as the gene...
by Gary
Thu Jun 26, 2008 4:01 pm
Forum: General discussion
Topic: force type when using [] for property?
Replies: 8
Views: 8782

Hey Eric, does that code really work for you? Perhaps something is wrong with my copy of the IDE... /** @class objA */ objA = { aaa : "" }; /** @type objA[] */ CollectionOfA = { Count : 0 } CollectionOfA[0].| ... does nothing for me at the cursor location. I also tried just copy/paste the code snip ...
by Gary
Wed Jun 25, 2008 9:37 pm
Forum: General discussion
Topic: Any way to "suggest" object types for code complet
Replies: 9
Views: 10773

Eric, follow up question. Will your next release also allow you to re-type a variable? In the examples we used for this thread, it will often be the case that you don't know the sub-type of the class returned from the array when you declare the variable. It would be helpful to re-type after determin...
by Gary
Wed Jun 25, 2008 9:16 pm
Forum: General discussion
Topic: force type when using [] for property?
Replies: 8
Views: 8782

force type when using [] for property?

I'm in a rather unique situation. I'm using Spket to program for a non-web environment. This other environment has its own DOM which is basically a bunch of C objects exposed to the JavaScript runtime. In order to code for this other DOM, I have to use JS files to "recreate" those exposed C objects ...
by Gary
Mon Jun 02, 2008 6:47 pm
Forum: Feature Requests
Topic: Find Usage
Replies: 0
Views: 5088

Find Usage

As I'm starting to use this IDE I find the one thing I keep looking for is a way to list all the places a function/object/property is used. Using the "find" feature of the edit menu is not quite cutting it, especially since it does not search multiple files within a project. The next step is refract...
by Gary
Mon Jun 02, 2008 4:31 pm
Forum: Bugs
Topic: Code Completion, ExtJS and functions
Replies: 3
Views: 5059

Eric, it may very well be the same base issue as the other reported bug but the symptoms are different. In the other case it seems that a method parsed through JQuery was showing the wrong return type. In my case, the return type is correct but code completion/suggestion fails... myTest.| with the c...
by Gary
Sun Jun 01, 2008 9:12 pm
Forum: Bugs
Topic: Code Completion, ExtJS and functions
Replies: 3
Views: 5059

Code Completion, ExtJS and functions

I'm using ExtJS to load my own js files into a project. I'm not sure if this is a bug or a "feature" but for some reason, code completion is not working on functions that return an existing object. Here is a very simple example of an external file... /** * @type {A} */ A = { gotA : true }; /** * @ty...
by Gary
Sun Jun 01, 2008 1:17 am
Forum: General discussion
Topic: Remove items from profile explorer?
Replies: 2
Views: 4658

Thanks Eric, I'll go plink around with the file.
by Gary
Sat May 31, 2008 4:31 pm
Forum: General discussion
Topic: Remove items from profile explorer?
Replies: 2
Views: 4658

Remove items from profile explorer?

I'm writing JavaScript meant to be embedded in a third party application with it's own proprietary DOM. I'm working on some .js stub classes I can use as a JavaScript profile, but would like to remove some of the default items from the profile explorer if possible. The proprietary DOM does not have ...