Select to view content in your preferred language

API 3.0 and Dojo 1.7 - code assist in Aptana Studio 2

3991
19
08-02-2012 07:26 AM
HubertLo
Emerging Contributor
Until ESRI releases proper code assist support for JavaScript API 3.0 in Aptana Studio 3; I guess I am stuck with Aptana Studio 2 using the older 2.7 jsapi file for code assist. It seems there is no new information regarding Aptana Studio 3 support since late last year based on forum posts, is there any update since then?

Since I am fairly new to the ESRI JavaScript API (migrate from ESRI Silverlight API), I am probably forced to depend on code assist more than others on this forum. Here are few questions:

- Is there any plan for to release a code assist plugin for ESRI JavaScript API 3.0 for the older Aptana Studio 2?
- If there is no official plan to make a code assist plugin for the 3.0 API, is there any way to get code assist with the 3.0 API?

- In Aptana Studio 2, the JavaScript Libraries updates for Dojo only goes up to 1.3. Is there a way to get the latest Dojo 1.7.3 code assist to work in Aptana Studio 2. I notice the support is based on a file called org.dojotoolkit.dojo.1.3_1.3.00001.jar. Where can find a updated one of this file for 1.7.3?
0 Kudos
19 Replies
derekswingley1
Deactivated User
We released version 3.1 of the API today which includes a VSDoc that works with Visual Studio 2010 and the 2012 RC. It also works with Aptana 3. You can get it here:  http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/api_codeassist.htm
0 Kudos
HubertLo
Emerging Contributor
Thank you Derek. That is simple enough to add ArcGIS API 3.1 code assist to Aptana 3.

What version of Dojo is the 3.1 API using?

Being a relative newbie to JavaScript development, how do I get Dojo code assist to work in Aptana Studio 3? It was simple to have Dojo code assist in Aptana Studio 2.
0 Kudos
derekswingley1
Deactivated User
Glad to help. Version 3.1 still uses Dojo 1.7 (documented at the end of the What's New in 3.1).

I am not an Aptana user so I'm not sure what to tell you for Dojo code completion in Aptana 3.
0 Kudos
Donald_EricPimpler
Emerging Contributor
Is there anything else that needs to be done in Aptanta 3.0 other than drag the vsdoc to the project in which you're working?  I've done this but it doesn't seem to work.
0 Kudos
HubertLo
Emerging Contributor
It works for me just by adding the vsdoc js file to the project. The html tags never really work properly but the code assist seems to be fine for the JavaScripts.

P.S. My background is Visual Studio so my expectation is quite high. Although the vsdoc and sdocml are not really up to par with VS, it is far better than using a simple text editor.
0 Kudos
MarkPaulson
Occasional Contributor
Just so I am clear you are using Aptana 2 and not 3 correct? I am not getting it to work with 3.2.1 of Studio.
0 Kudos
HubertLo
Emerging Contributor
Just so I am clear you are using Aptana 2 and not 3 correct? I am not getting it to work with 3.2.1 of Studio.


If you read the whole thread, then you know I started with Aptana 2 and asked about the updated code assist for ESRI Api and Dojo. swingley told me that the code assist for Aptana 3 is finally released few days ago. I have been working in Aptana 3 ever since and probably will remove Aptana 2 from my workstation soon. I was forced to use Aptana 2 because it used to be the only one that have code assist for the ESRI API.
0 Kudos
MarkPaulson
Occasional Contributor
If you read the whole thread, then you know I started with Aptana 2 and asked about the updated code assist for ESRI Api and Dojo. swingley told me that the code assist for Aptana 3 is finally released few days ago. I have been working in Aptana 3 ever since and probably will remove Aptana 2 from my workstation soon. I was forced to use Aptana 2 because it used to be the only one that have code assist for the ESRI API.


I did read the whole thread and just wanted to verify that you where using 3 as I have not been able to get it to work.
0 Kudos
KellyHutchins
Esri Frequent Contributor
Eric and Mark,

The Aptana code assist works well if you are writing your javascript in a separate file with a .js extension. It doesn't work well within  script tags in an html file. I've noticed this same behavior with other code assist plug-ins for Aptana 3.
0 Kudos