You need to sign in to do that
Don't have an account?
DPFrazier
Apex Code - Can't save unless it compiles correctly?
I've tried to create a relatively simple function in both the Eclipse environment and in Setup->Build->Code, and unless/until the code compiles correctly, all edits since the last successful compile will be wiped out.
I'm a newbie to Java, so I don't know if this is normal. But I don't always finish debugging a code block before I want to (or have to) move onto something else, and I don't want to lose the work I've done when I do so.
Perhaps have both "in development" and "deployed" modes for Apex code packages?
As an aside, it's interesting that I can be editing the same code in both places at the same time. There should probably be an interlock for this.
I'm a newbie to Java, so I don't know if this is normal. But I don't always finish debugging a code block before I want to (or have to) move onto something else, and I don't want to lose the work I've done when I do so.
Perhaps have both "in development" and "deployed" modes for Apex code packages?
As an aside, it's interesting that I can be editing the same code in both places at the same time. There should probably be an interlock for this.
So I can't save this code in Eclipse no matter what I do!
I went through a similar sequence with Setup->Build->Code, but still can't save the code in either the "correct" form (since there's the exception error) or the "buggy" form (since apparently you can't save Apex code that has a syntax error).
So now I'm capturing my code in a Word file before I exit Eclipse...