Aptana"PHP版本";不停留在项目属性中 [英] Aptana "PHP Version" doesn't stick in project properties
问题描述
我有一个明确需要PHP 5.4.x兼容性的项目,因此我右键单击我的项目并转到属性".然后,单击左侧的"PHP开发"菜单,然后从下拉列表中选择"PHP 5.4.x".在我重新启动Aptana之前,它工作正常,然后返回到"PHP 5.3.x",我猜这是默认设置.这是Aptana中的错误吗?重启后如何保持版本不变?
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?
推荐答案
我发现的唯一临时解决方案(在Aptana构建3.6.0.201407100658中)是从打开的文件的Project-> Properties中设置PHP 5.4.x版本.您只是无法关闭Aptana或文件,但在处理几个重要文件时会很方便.
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.
更新:您可以添加 project_path/.settings/com.aptana.editor.php.prefs 文件,该文件的内容为:
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.
这篇关于Aptana"PHP版本";不停留在项目属性中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!