存档

文章标签 ‘Eclipse’

Eclipse+PDT:PHP内置函数不能正常进行代码提示!

2009年7月12日

Eclipse+PDT:PHP内置(Core)函数不能正常进行代码提示(Code Assite)!

解决方法:

编辑.project 文件 ,删除<buildSpec>节点,重新关闭打开项目,然后测试下

.project 文件大概类似如下内容:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>name</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.dltk.core.scriptbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.php.core.PHPNature</nature>
		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
	</natures>
</projectDescription>

深入PHP , ,