Martin Klosi
Martin Klosi

Reputation: 3296

Why Grails keep saying: "unable to resolve class" randomly, for no reason?

This bug or my lack-of-knowledge or smth else is really starting to bother me. I am working on a Grails app and randomly in the middle of my work, grails with complain about some import, saying that cannot resolve the class name. It was working one save ago! I havent changed anything to the infrastructure of the project. I've just written more code. the bothering part is that the app still runs fine, it's just that it has two tagging Xses and every time I start it, I need to press "proceed with errors". I have to refactor the class names to smth else and then back again to the original name. that fixes it and takes a lot of time. Am I missing smth here?

Upvotes: 1

Views: 829

Answers (1)

Marcin Niebudek
Marcin Niebudek

Reputation: 388

From your comments under the question seems like you are using Eclipse or STS. If that is the case then I was experiencing the same problem with older versions of STS or to be more precise with older versions of Groovy-Eclipse plugin.

I think I haven't seen that happening since STS 2.7 (I'm now using STS 2.8 with Groovy-Eclipse 2.6), so try upgrading. It's IDE bug not the Grails problem itself (at least it was in my case).

Upvotes: 1

Related Questions