pulse00 / Twig-Eclipse-Plugin

Eclipse plugin for the twig templating language.
twig.dubture.com
MIT License
107 stars 24 forks source link

Twig plugin trying access all php files #72

Closed zulus closed 8 years ago

zulus commented 11 years ago

I have in eclipse some projects without Twig/Symfony support.

When I'm editing *.php files and this files are not in BuildPath, I see these errors in logs:

PHPCore plugin internal error

org.eclipse.dltk.core.ModelException: application/config [in combo] does not exist
    at org.eclipse.dltk.internal.core.ModelElement.newNotPresentException(ModelElement.java:270)
    at org.eclipse.dltk.internal.core.ProjectFragment.getUnderlyingResource(ProjectFragment.java:342)
    at org.eclipse.dltk.internal.core.Openable.getUnderlyingResource(Openable.java:273)
    at org.eclipse.dltk.internal.core.Openable.getUnderlyingResource(Openable.java:273)
    at org.eclipse.dltk.internal.core.AbstractSourceModule.getUnderlyingResource(AbstractSourceModule.java:368)
    at com.dubture.twig.core.codeassist.context.AbstractTwigCompletionContext.isValid(AbstractTwigCompletionContext.java:113)
    at com.dubture.twig.core.codeassist.context.TemplateVariablesContext.isValid(TemplateVariablesContext.java:46)
    at com.dubture.symfony.twig.codeassist.context.TemplateVariableCompletionContext.isValid(TemplateVariableCompletionContext.java:33)
    at org.eclipse.php.internal.core.codeassist.contexts.CompletionContextResolver.resolve(CompletionContextResolver.java:116)
    at org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:96)
    at org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:63)
    at org.eclipse.dltk.internal.core.Openable$CompletionThread.run(Openable.java:503)
    at org.eclipse.dltk.internal.core.Openable$CompletionThread.run(Openable.java:484)

Kepler 4.3M6, PDT 3.2, DLTK 5.0.0.201304051211