What is the right way to install codesniffer to Aptana Studio standalone version?
Asked Answered
P

1

11

I followed this guide for eclipse integration on drupal: https://drupal.org/node/1420004

I tried to install PTI plugin to Aptana (Aptana Studio 3, build: 3.4.1.201306062137, with Eclipse Platform Version: 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q) , but got a lot requirement missing errors. Then I enable Eclipse Indigo Update Site (http://download.eclipse.org/releases/indigo) in my Aptana, and installed it successfully this time.

Then I config it like this:

enter image description here

But it just don't work!

I have installed php codesniffer and pear library, it works perfectly in command-line, and git pre-commit hook, but I can't get it work in Aptana. Even I right click on a file, the PHP Codesniffer is grey and unclickable.

I wonder what is the right way to install codesniffer to Aptana Studio ?

Pentadactyl answered 16/10, 2013 at 7:57 Comment(0)
B
2

You will need to set up the "PHP Executer". Use the link on the side of that select-box and configure one, poiting to the php binary you have. It probably is /usr/bin/php5. If the .ini file is required, it'll probably reside in /etc/php5/cli/ or /etc/php5/apache2/.

If those are not correct, you can execute and retrieve the location of that information.

I needed to set this up in order to have my codesniffer working. I couldn't find how to make it work without clicking in the button in the editor's toolbar, but It worked.

config 1

config 2

Bricklayer answered 3/2, 2014 at 3:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.