Aptana “PHP Version” doesn't stick in project properties

与世无争的帅哥 提交于 2019-12-21 07:17:17

问题


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?


回答1:


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.




回答2:


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!



来源:https://stackoverflow.com/questions/24633995/aptana-php-version-doesnt-stick-in-project-properties

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!