Joshua Goldberg
Joshua Goldberg

Reputation: 5333

Why is Groovy Eclipse's Organize imports putting the package declaration below imports, making my file uncompileable?

Why does the organize imports function in the Groovy Eclipse plug-in put imports above the package declaration and make the file uncompileable? Is there a work-around?

Upvotes: 1

Views: 396

Answers (1)

Joshua Goldberg
Joshua Goldberg

Reputation: 5333

The current version of the plug-in gets confused when there are imbalanced parentheses. The editor itself also becomes less helpful for finding and fixing that kind of error. The solution I found was to open the file in another programming editor (such as emacs) to find the unbalanced pair.

Upvotes: 1

Related Questions