dengar81
dengar81

Reputation: 2525

Eclipse doesn't execute the right branch

I have just pulled a project from git into my freshly installed Eclipse (I'm using Ubuntu, if that matters). I have two branches, both cloned locally. However, when I change the branch and try to execute the second branch, Eclipse will still execute the former branch, even though it's not checked out. Why is that and how can I fix it?

Thanks,

Chris

Upvotes: 1

Views: 60

Answers (1)

dengar81
dengar81

Reputation: 2525

Okay, I finally figured out what the problem was. There was a file that should have been in the repo, but wasn't. It was required for the build on runtime.

It's a bit annoying that this wasn't pointed out by Eclipse, other than with a small exclamation mark next to the project folder. I finally spotted that (blind me) and googled what it meant. Suprise, surprise, file missing for the build!

I added that and everything compiled fine...

Upvotes: 1

Related Questions