11

Today we had an interesting problem that a developer made a change to a Controller that removed an attribute from controller but left it in the page - which should then cause the compile error to a page, they accidentally forgot to check in the page. When we did an svn update on our other environments we got the new controller but not the new page (because he didn't check it in). I would expect that the force.com IDE would have had a compile problem, but it didn't. We also used the ant migration tool and pushed the new code to another environment, again no problems.

When we tried to access the page, it failed with the normal visualforce page error, but no debug logs.

So as a result of some trial and error, I removed some lines from the visualforce page, and when I added them back in, force.com IDE gave me a compile error.

So my question, is there a way to configure either/both the ant tool or the IDE to detect these type of errors?

Even when I do a save to server of my pages folder, nothing comes up. Seems like there should be a "rebuild/recompile all" task on the IDE and a "check pages" flag on the ant task...

1
  • 6
    There isn't, and it causes problems. Salesforce.com's metadata checker seems to have gone braindead a release or so ago, because I've been breaking pages far more frequently now than I was a couple releases ago.
    – sfdcfox
    Oct 4, 2013 at 18:57

1 Answer 1

1

There is a way;

You could do a compile job on every commit to svn using the ANT scripts and a Jenkins build

What you would have to do is create yourself a build server on Jenkins. This can then use Ant takes to create a SF org and compile all your work up to it on every commit.

Any errors like this should then be brought to light.

unfortunately this will only catch this error when you commit the work.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .