It is very annoying that Force.com IDE unable to save code on server. And the worst thing is after triggering save to server option the code is reverted back as it wasn't there at first point. Any solution will be helpful. I'm newbie might don't know the tools of trade. Please guide.
Lately I was having issues with Force.com IDE, however after upgrade to the latest Java Version it was working ok again.
To save code on server directly when you click Save or press ctrl+s you need to have de activate the work offline mode. This way every time you try to save it will be send to server.
Another little thing is that sometimes maybe the class in server has changes that eclipse doesn't have, then if you refresh for server your project when you start your work then your project will be ready to work with.
I hope this help.
There could be many reasons for save to not work. I have listed down a few below:
- Your code is not latest. i.e. If differs from the code you have online.
- The change that you are trying to make is not allowed or has some error.
- 'Build Automatically' under Project menu is not checked.
- You are working offline.