本文介绍了Aptana“PHP版本"不坚持项目属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个明确需要 PHP 5.4.x 兼容性的项目,所以我右键单击我的项目并转到属性".然后单击左侧的PHP Development"菜单,并从下拉列表中选择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

就我而言,这有帮助.

这篇关于Aptana“PHP版本"不坚持项目属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 09:58