Community
Participate
Working Groups
The syntax of the scrapbook has changed a bit since VAJ. Unaware of this, I tried writing the following piece of code in a scrapbook windows: boolean foo = true; foo; Then I selected it, and chose "Display", expecting to see "(boolean) true". Instead I got: Syntax error on token ";", "Unexpected End Of File" expected which of course gave me a good laugh. :-) However, it was not really as helpful in tracking down the syntax of the scrapbook as it could have been. Even better, the scrapbook should allow this kind of syntax, and when the user selects "Display", it should print the result of the last expression, regardless of if it ends with a ";" or not.
We are relying on JCORE for the parsing/compliation, which is producing this error. Moving to JDT CORE.
The syntax of a code snippet is a sequence of statements, optionally followed by one expression. VAJ did accept a trailing semi-colon, which we don't. We can certainly silently ignore a trailing semi-colon, but this is not P1.
Why is this one ranked as 'critical' ?
Closing
Created attachment 237798 [details] Bug Error Unknown Error At The End Of Code....