Java – eclipse : Could not open editor after Eclipse PDT upgrade to version 5. 0.1.201706221952

eclipse : Could not open editor after Eclipse PDT upgrade to version 5. 0.1.201706221952… here is a solution to the problem.

eclipse : Could not open editor after Eclipse PDT upgrade to version 5. 0.1.201706221952

I

just upgraded my Eclipse PHP IDE by downloading Eclipse PDT version 5.0.1.201706221952, but that’s a bad idea because I can’t use Eclipse anymore. I think I’m getting an error because I can’t open any files for my project and the Eclipse file editor seems to be corrupted. The DLTK index also seems to be broken (at least for my current project…). Sometimes the editor can open one of my files, but the file name is not displayed and I cannot save the modifications.

I

tried to clean up my project because I found a similar issue (Could not open the editor: Editor could not be initialized. NoClassDefFoundError), but I’m getting a build workspace error.

Any ideas on how to make the Eclipse editor work?


  • Version: Neon.3 released (4.6.3).
  • Build ID: 20170314-1500
  • My project uses Symfony 3 (with more details if needed).

Build workspace error:

Errors occurred during the build.
Errors running builder 'Script Builder' on project 'PROJET_VISA_ECLIPSE'.
java.lang.NoClassDefFoundError: 
org/eclipse/php/internal/core/compiler/ast/visitor/PHPASTVisitor

Error on startup:

An internal error occurred during: "Initialize DLTK".
java.lang.NoClassDefFoundError: 
org/eclipse/php/internal/core/compiler/ast/visitor/PHPASTVisitor

The Dubture plugin also encountered an error:

com.dubture.twig.core.index.TwigIndexingVisitorExtension.

Editor

error: There is no editor descriptor for the id org.eclipse.ui.internal.emptyEditorTab

java.lang.Exception
at org.eclipse.ui.internal.EditorReference.createErrorPart(EditorReference.java:340)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:321)

Solution

This issue appears to be due to incompatibilities between the new PDT version and the Symfony plugin.

I’m getting the same error in both versions of Eclipse (4.6 and 4.7, PDT 5.0.1), I just need to uninstall the Symfony plugin (along with the Twig plugin).

Related Problems and Solutions