Aptana Studio Code Assist for WordPress is incomplete

I installed the WordPress bundle/ruble for Aptana Studio, but it’s only providing code assistance for a subset of WordPress functions. I’d like code assistance for all WordPress core functions (or as many as possible). My projects have PHP as their nature, and are connected via SFTP to remote WordPress installations.

After the bundle (which hasn’t been updated in over a year) didn’t provide everything I was looking for, I tried using a local copy of WordPress as an external library, then adding it as an external directory to the PHP Buildpath. Neither one added any more functions than the bundle provided. These actions were suggested in Aptana Studio Support and WordPress Answers.

Read More

Am I doing something wrong, or is the level of code assistance I’m looking for not available?

Related posts

Leave a Reply

2 comments

  1. It’s true that the WordPress bundle offers just some limited auto-completion support. Though including the local copy of another WordPress installation as a PHP external library seemed to solve this in the latest Aptana Studio version (3.4.0,) as you already mention to have tried, and as it is suggested in this one of the links that you pointed out.

    Here are all the specific steps I took, so you can check if there was something different in the procedure you followed.

    • Open the Preferences menu going to Window > Preferences
    • Select Aptana Studio > Editors > PHP > Libraries
    • Click “New user library”
    • Add the path to another local WordPress installation (not the same WordPress files in the current project,) selecting the root folder of a freshly extracted WordPress download (e.g.: C:wordpress-3.5.1wordpress)
    • Make sure the new library is selected in the user libraries list (marking it with a checkmark next to the library icon.)
    • Apply the changes and press OK
    • Make sure your project is a PHP project. Right click the project folder, select Properties > Project Natures and mark the PHP checkbox.

    Now, inside PHP code, I get autocompletion suggestions for all core WordPress functions – and I can even go to check their source by pressing F3 on their function name.

  2. I followed the steps of E. Serrano and it works perfectly. What is silly is that if you want autocompletion for, say, add_action('wp_print_footer_scripts', 'scripts.js', 1); the moment that you type the quote, autocompletion is lost… if you try add_action( wp_ you get all WP commands. Hope it helps…