Select to view content in your preferred language

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

4592
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
MarkPaulson
Occasional 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.


Kelly �?? Thanks for the clarification. I tried it and it works fine on a .js file.
0 Kudos
HubertLo
Emerging Contributor

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.


I notice similar behavior as well. Esri code assist works great in a separate JavaScript file but non functional between <script> tags of a html page. I have the dojo sdocml file in the same Aptana (3) project. The Dojo code assist works between the <script> tags where Esri vsdoc fails. Are we going to see a fix of that?

By the way. I notice none of the code assist (Dojo or Esri) works if you use Aptana as an Eclipse plugin. I am using Eclipse Juno.
0 Kudos
HaroldBostic
Frequent Contributor
Hello, attached is my directory structure under project explorer, code assist is not working, what am I doing wrong
0 Kudos
HaroldBostic
Frequent Contributor
hmmm, it works when I use a .html web site but not when I have a .aspx wrapper
0 Kudos
danbecker
Frequent Contributor
works great on .js file with Aptana studio 3; Thanks Kelly
0 Kudos
BillZborowski
Emerging Contributor
I am having the exact same issue.  Impossible to get a code complete by simply adding and reference the api.
[ATTACH=CONFIG]17004[/ATTACH]
0 Kudos
GaneshSolai_Sambandam
Regular Contributor
Hi GIS folks,
I understand the problems we have in relation to the ESRI javascript API code asssist to work in Apatana Studio 3.0.  Following the thread, I can add  the "jsapi_vsdoc_v31.js" file  to my project to enable the intellisense feature working on a separate Javascript file.
However, the only problem is, I can't reference the DOJO1.7 libraries on to my project within HTML Page. If anyone has DOJO 1.7 vsdocml file, can you please send them across to my mail ID: ganeshssac@yahoo.com

I have also noticed that Dojo has released new version of Dojo1.8 and I am wondering whether they are compatiable with ESRI Javascript  API 3.1.

Regards
Ganesh
0 Kudos
GaneshSolai_Sambandam
Regular Contributor
Hi Hubertlo
Do you have the DOJO sdocml file. How big is the file. If you have this file, is it possible to send it across to me (ganeshssac@yahoo.com).  can you also let me know how to reference the DOJO 1.7 file to work / reference them within my HTML page, would be much appreciated.
0 Kudos
ReneWoy
Occasional Contributor
works great in Eclipse Indigo with Aptana plugin, but not in Juno 😞

I do not get it in to run in Aptana Studio 3 standalone :rolleyes:

@ganeshssac: you still need the DOJO sdocml file?
0 Kudos
HubertLo
Emerging Contributor
To ganeshssac:
From my understanding if you have the jsapi_vsdoc_v31.js (or higher I guess), you will automatically have the code assist for dojo 1.7 as well. I am not using dojo that heavily in my own code right now so I cannot tell whether any 1.7 feature is missing.

To Fistandantilus:
You must be a Dragonlance fan! Maybe I should have named myself Fizban but that may not look too professional here.
My experience is different from you. I find the code assist works perfectly in Aptana 3 standalone. The behavior is more questionable as a plugin to Eclipse Juno. I personally prefer to work in the standalone version of Aptana 3.
0 Kudos