Force.com IDE does ONLY save to server when explicitely force by "Save to Server"

If you have "build automatically" option set, then whenever you save the file locally Eclipse will try and save it to the server.

Build Automatically menu option

Otherwise you have to explicitly use "Force | Save to server".

--edit-- Since you have the build automatically checked, it must be something else. Perhaps the org is locked at the time because of running tests? Have you looked at the Eclipse progress window? (you can add this to your view) When you hit save, this should be where you see the status of the save to server when build automatically is checked.

Progress window

What do you see now in your progress window if you try and save? Is there an error message?

edit2-- Another possibility is that you have somehow enabled "work offline" mode on your project. In this case it will still do the "save to server" on demand but not for normal saves even when build automatically is on. Work offline option

And when you select it you are warned Work offline warning

edit3-- One quick check to make would be to ensure that the classes are referenced in your package.xml Although, since you find it works when you manually "save to server" then this should not be the problem. Check this in Force.com | Add/remove Metadata Components and then ensure your class is listed there.

Other than that, can you try and pin down particular files that are affected? Is it a repeatable problem - try force "save to server" on a file. Then add a line or comment and do a normal save. Observe if the "polling server" progress appears. Check in the Problems window for anything like this Problems window showing sync state error

Once a file is out of sync you will need to resolve it and force save (this can happen if there is a problem communicating with the server or if someone else has updated the file and the instance copy is more up-to-date than your local one).


It is really hard to notice, but when project is 'Online' you will notice a blue square background in the small X icon in the top left of the project root icon folder, and it missing in 'Offline' mode.

However, please note that if 'Menu: Project > Build Automatically' is unselected working online doesn’t seem to have any effect.

online-offline-icon-indicator-for-salesforce-eclipse-ide

You can take it online by Right click on project folder --> Force.com --> Work Online.

enter image description here

Tags:

Ide

Force.Com