You need to sign in to do that
Don't have an account?
Simple SOQL-Query: Eclipse Force.com Compiler shows error.
Hello,
I've tried to put a select-query with Date/DateTime-Comparison using literals and the compiler always showed an error, like: "unexpected token: today (or LAST_MONTH,...)", Hence I took the following simple query example from the online sf documentation and put it into my eclipse:
List<Account> acc = [SELECT Id FROM Account WHERE CreatedDate = YESTERDAY];
from: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_select_dateformats.htm
again the same error ("unexpected token: YESTERDAY") occured. Can someone explain, what's happening here?
Thanks
Hans
Hans,
Then i recommend trying out either Galileo or Ganimede Eclipse , whatever your not using, flip over see if it persists. Also remember to update to the last IDE version.
http://wiki.developerforce.com/index.php/Force.com_IDE_Installation_for_Eclipse_3.5
Some people had trouble installing it, if you do, please check the forums there has been many solutions.
Im currently using Galileo Eclipse with the last IDE and havent experienced anything weird like that.
Hope you can get that solved.
Gaston.
All Answers
It's already solved, the compiler doesn't complain anymore. Strange thing about it, I haven't changed any code! ???
Always check the version of the code, sometimes if you have old code (from previous versions) some weird errors happen, updating the code to the latest api version sometimes solves it.
You can check that in setup-> develop -> apex classes -> myclass -> version settings
Let me know if you found out what was wrong.
Gaston
Salut Gaston,
thanks for your reply!
Actually the complaints come and go without any obvious reason, i.e. I do some coding and the compiler complains about something weird and some times later the errors are gone...
A little bit annoying I must say ;-)
Regards
Hans
Hans,
Then i recommend trying out either Galileo or Ganimede Eclipse , whatever your not using, flip over see if it persists. Also remember to update to the last IDE version.
http://wiki.developerforce.com/index.php/Force.com_IDE_Installation_for_Eclipse_3.5
Some people had trouble installing it, if you do, please check the forums there has been many solutions.
Im currently using Galileo Eclipse with the last IDE and havent experienced anything weird like that.
Hope you can get that solved.
Gaston.