Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aptana "PHP Version" doesn't stick in project properties

Tags:

aptana

aptana3

I have a project that explicitly needs PHP 5.4.x compatibility, so I right click on my project and go to Properties. Then I click the "PHP Development" menu on the left, and select "PHP 5.4.x" from the dropdown. It works fine until I restart Aptana--then it goes back to "PHP 5.3.x" which I guess is the default. Is this a bug in Aptana? How do I get the version to stick even when I restart?

like image 556
Brade Avatar asked Jul 08 '14 14:07

Brade


2 Answers

The only temporary solution I found (in Aptana build 3.6.0.201407100658) is setting the PHP 5.4.x version from Project->Properties from the opened file. You just can't close Aptana or the file but can come handy when working on few important files.

update: You can add project_path/.settings/com.aptana.editor.php.prefs file that reads:

eclipse.preferences.version=1
phpVersion=php5.4

In my case, this helped.

like image 154
Viktor Sulak Avatar answered Nov 12 '22 00:11

Viktor Sulak


It seems this is a serious bug in Aptana. Just like our friend Viktor Sulak said: edit the file .settings/com.aptana.editor.php.prefs,

But, if your workpsace does not have this file "com.aptana.editor.php.prefs", simply create it with the content:

eclipse.preferences.version = 1
phpversion = php5.4

and everything gonna be all right!

like image 35
David Toledo Avatar answered Nov 12 '22 01:11

David Toledo