Code Assist does not work for Aptana Ver 3 Plug-in for Eclipse Ver 3

UPDATE 9/5/2011: SOLVING THE PROBLEM - see details below


I'm having problems with Code Assist in Aptana Ver 3.0.4. plugin for Eclipse 3.7.0.

I installed the NetSuite plugin, but I DO NOT receive any code suggestions / suggestions when I press CTRL + SPACE. There are many NetSuite features that start with nlapi, but Code Assist does not offer any help.

This is for use with the Javascript editor.

This worked with Aptana Ver 2. How do I get it to work in Ver 3?

UPDATE: I added the NetSuite SuiteScript_API.js file to my project, but I still DO NOT get any code completion. I believe the file conforms to the ScriptDoc specification, so it should work.

Here is a sample from this file:

/** * Return a new record using values from an existing record. * @governance 10 units for transactions, 2 for custom records, 4 for all other records * * @param {string} type The record type name. * @param {int} id The internal ID for the record. * @param {Object} initializeValues Contains an array of name/value pairs of defaults to be used during record initialization. * @return {nlobjRecord} Returns an nlobjRecord object of a copied record. * * @since 2007.0 */ function nlapiCopyRecord(type, id, initializeValues) { ; } 


UPDATE: SOLVING THE PROBLEM!

Thanks to my colleague, I figured out how to get Code Assist to work / use the NetSuite SuiteScirpt API file to ensure code completion.

Code completion in the new version works differently. Right-click on your project and select "Properties", then go to "Nature of the project" and make it a web project.

Then, absolutely all .js files in your project will be indexed for autocompletion, including the SuiteScript API file, if it is in your project.

We have a large number of .js files, so I would prefer to choose which file to link to autocomplete. Version 3 does not currently allow this, unlike version 2

+4
source share
1 answer

Version 3.0.5 has changed in this area and may bring you closer to what you want.

First of all, you can exclude files and entire directories from indexing by right-clicking them, selecting Indexing, and then selecting Exclude from Index.

Further, in 3.0.5, a new mechanism for linking libraries to web projects appeared. Right-click the project, select "Project Build Path." You should see a list of files that may be associated with the project index. For example, if you have javascript-jquery ruble installed, you will see entries for jQuery 1.4.2 and 1.6.2. New entries can be added to the list in rubles. Select "Edit this bundle" from the javascript-jquery ruble menu to see an example of how this works. For instance:

 bundle 'myBundle' do |bundle| bundle.project_build_path["My Library 1.0"] = "#{File.dirname($0)}/support/myLib.sdocml" end 

This example creates a new entry in the build path of the project called "My Library 1.0" and points to a file called myLib.sdocml in the project, where the bundle.rb file is located in the folder named support. You can add a simple bundle.rb file to your project so that your api file appears in this list similar to the one above.

Please note that you may need to use "Commands" → "Development Kit → Updating Folders for Users" to make sure you have the latest versions of all packages.

NTN, Kevin

0
source

All Articles