4

I'm using Mavensmate to edit Apex Classes on Subl 3. I'm able to pull all of the current classes from my salesforce, and able to edit them locally via sublime. When I save, the Mavensmate console shows success.

I then deploy to server. I run the validation, everything checks out. I select deploy to server, and it returns success. But nothing has actually changed in salesforce! When I refresh the file from server, it loads the old file.

I don't even know where to begin with how to figure out the error.

Here are the steps I'm taking:

  1. Get latest file from server (Refresh File From Server: enter image description here

  2. Here is current file:

enter image description here

  1. Change last comment:

enter image description here

  1. Save file:

enter image description here

  1. Deploy to Server:

enter image description here

  1. Select Deployment target:

enter image description here

  1. Validate Deployment

enter image description here

  1. Check what changes will be made:

enter image description here

  1. Finish Validate Deploy:

enter image description here

  1. Review Results:

enter image description here enter image description here

  1. Deploy!

enter image description here

  1. Result:

enter image description here

Now let's check on the results in my salesforce developer console:

  1. Open up dev console and locate file
  2. Result:

enter image description here

No change...

And if I reload my file from server

enter image description here

So what successfully deployed? What is going wrong??

Thank you!

  • When you save/compile or refresh from server, are you working against a developer edition or sandbox org? I assume you are doing the deploy to a production org, correct? – Daniel Ballinger Jun 23 '15 at 1:23
  • To sandbox. The deployment target points to a dev sandbox. Org sandbox specifically – ZAR Jun 23 '15 at 1:33
  • For the record, our production doesn't have this script at all. So hitting "refresh from server" is returning the script from the org sandbox. So it's pulling correctly, just not saving – ZAR Jun 23 '15 at 1:35
  • 1
    So you are compiling and deploying against a single sandbox instance? Typically the save/compile step will be updating the apex class in the Salesforce sandbox org. You don't need to then deploy it unless you want to send it to a different org. If the refresh from server isn't returning the updated apex classes then something has gone wrong with the initial save/compile step. – Daniel Ballinger Jun 23 '15 at 1:53
  • 2
    Immediately after you have saved the changes to the Apex class and got back a Compiling Result: Success, check if the Apex class has updated in the corresponding org in the developer console. – Daniel Ballinger Jun 23 '15 at 1:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.