在Eclipse中使用dubture插件导入Symfony项目时出错 [英] Error Importing a Symfony project in Eclipse with dubture plugin
问题描述
我有麻烦试图将已经存在的 Symfony 2.3
项目导入我的 Eclipse
(标准4.3.1)我使用 Eclipse向导
c / >用于导入,但是当我点击完成时,弹出窗口显示:
导入过程中出现错误。有关详细信息,请参阅工作区日志。
日志文件给我一堆像这样的消息:
!ENTRY org.eclipse.dltk.core 2 0 2014-02-18 18:08:35.104
!MESSAGE接收文件时出错: Symfony / app / cache / dev / twig / d1 / 4c / d23835735a18dbf9b98dd75484f6.php内容:重试(1)
!STACK 1 org.eclipse.core.internal.resources.ResourceException:Resource / Symfony / app / cache / dev / twig / d1 / 4c / d23835735a18dbf9b98dd75484f6.php'不存在。 $ org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:215)
在org.eclipse.core.internal.resources.File.getContents(File.java:287)
在org.eclipse.dltk.internal.core.util.Util.getResourceContentsAsCharArray(Util.java: 534)
在org.eclipse.dltk.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:491)
在org.eclipse.dltk.internal.core.SourceModule.getBufferContent(SourceModule。 java:405)
在org.eclipse.dltk.internal.core.AbstractSourceModule.getSourceAsCharArray(AbstractSourceModule.java:314)
在org.eclipse.dltk.internal.core.AbstractSourceModule.getContentsAsCharArray(AbstractSourceModule。 java:335)
在org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:41)
在org.eclipse.php.internal.core。 compiler.ast.parser.PHPSourceParserFactory.parse(PHPSourceParserFactory.java:41)
在com.dubture.twig.core.parser.TwigSourceParserFactory.parse(TwigSourceParserFactory.java:36)
在org.eclipse.dltk.core.SourceParserUtil.parse(SourceParserUtil.java:135)
在org .eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:171)
在org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:166)
在org.eclipse.php .internal.core.index.PhpIndexingParser.parseSourceModule(PhpIndexingParser.java:27)
在org.eclipse.dltk.core.index2.AbstractIndexer.indexDocument(AbstractIndexer.java:45)
在org.eclipse .dltk.internal.core.index.sql.SqlIndexer.indexDocument(SqlIndexer.java:147)
在org.eclipse.dltk.internal.core.index2.SourceModulesRequest.run(SourceModulesRequest.java:78)
在org.eclipse.dltk.core.search.indexing.AbstractJob.execute(AbstractJob.java:76)
在org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager。 java:467)
在java.lang.Thread.run(未知来源)
!SUBENTRY 1 org.eclipse.core.resources 4 368 2014-02-18 18:08:35.104
!MESSAGE资源'/Symfony/app/cache/dev/twig/d1/4c/d23835735a18dbf9b98dd75484f6.php'不存在。
我检查了指定的文件是否存在,他们做,所以我不明白这些消息。任何人都有同样的问题,可以指出我的方向正确吗?
你必须确保你的厂商安装正确,还要确保你有一个PHP可执行文件。
- 在eclipse菜单中:
窗口 - >首选项 - > Php - > php可执行文件。
如果您没有任何内容:
点击添加 - >浏览可执行文件(normaly / usr / bin / php5)。
使用zend调试器,并检查使用默认值php.ini框。
I have troubles trying to import an already existing Symfony 2.3
project into my Eclipse
(standard 4.3.1) workspace using dubture's
plugin.
I use the Eclipse wizard
for importing, but when I click on 'Finish' a popup window shows:
An error ocurred during import. Please see the workspace logs for details.
The log file gives me a bunch of messages like this one:
!ENTRY org.eclipse.dltk.core 2 0 2014-02-18 18:08:35.104
!MESSAGE Error receiving file: /Symfony/app/cache/dev/twig/d1/4c/d23835735a18dbf9b98dd75484f6.php content: retrying(1)
!STACK 1 org.eclipse.core.internal.resources.ResourceException: Resource /Symfony/app/cache/dev/twig/d1/4c/d23835735a18dbf9b98dd75484f6.php' does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:341)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:215)
at org.eclipse.core.internal.resources.File.getContents(File.java:287)
at org.eclipse.dltk.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:534)
at org.eclipse.dltk.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:491)
at org.eclipse.dltk.internal.core.SourceModule.getBufferContent(SourceModule.java:405)
at org.eclipse.dltk.internal.core.AbstractSourceModule.getSourceAsCharArray(AbstractSourceModule.java:314)
at org.eclipse.dltk.internal.core.AbstractSourceModule.getContentsAsCharArray(AbstractSourceModule.java:335)
at org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:41)
at org.eclipse.php.internal.core.compiler.ast.parser.PHPSourceParserFactory.parse(PHPSourceParserFactory.java:41)
at com.dubture.twig.core.parser.TwigSourceParserFactory.parse(TwigSourceParserFactory.java:36)
at org.eclipse.dltk.core.SourceParserUtil.parse(SourceParserUtil.java:135)
at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:171)
at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:166)
at org.eclipse.php.internal.core.index.PhpIndexingParser.parseSourceModule(PhpIndexingParser.java:27)
at org.eclipse.dltk.core.index2.AbstractIndexer.indexDocument(AbstractIndexer.java:45)
at org.eclipse.dltk.internal.core.index.sql.SqlIndexer.indexDocument(SqlIndexer.java:147)
at org.eclipse.dltk.internal.core.index2.SourceModulesRequest.run(SourceModulesRequest.java:78)
at org.eclipse.dltk.core.search.indexing.AbstractJob.execute(AbstractJob.java:76)
at org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:467)
at java.lang.Thread.run(Unknown Source)
!SUBENTRY 1 org.eclipse.core.resources 4 368 2014-02-18 18:08:35.104
!MESSAGE Resource '/Symfony/app/cache/dev/twig/d1/4c/d23835735a18dbf9b98dd75484f6.php' does not exist.
I checked if the specified files exist and they do, so I don't understand these messages. Anyone had the same problem and can point me in the right direction?
You have to make sure youre vendors are installed correctly and also make sure you have a php executable running.
- In eclipse menu :
window -> preferences -> Php -> php executables.
If you have nothing there :
Click add -> browse the executable (normaly /usr/bin/php5).
use zend debugger and check the "use defaults php.ini" box.
这篇关于在Eclipse中使用dubture插件导入Symfony项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!