Skip to content

"Correct Indentation" results in ClassCastException in log #231

@davidmichaelkarr

Description

@davidmichaelkarr

Using Neon.1a & 2.9.2.xx-201611160028-e46.

I associated "Jenkinsfile" with the groovy editor. When I select the entire file and press Ctrl+i, nothing happens, but I see this in the log:

Caused by: java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.codehaus.jdt.groovy.model.GroovyCompilationUnit
at org.codehaus.groovy.eclipse.refactoring.actions.FormatGroovyAction.run(FormatGroovyAction.java:70)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:249)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:118)
... 55 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions