On "Syntax Error" morphs

Richard A. O'Keefe ok at cs.otago.ac.nz
Wed Jun 5 04:17:03 UTC 2002


What happened:
  1. Student X wanted to create a big method, and found it hard with
     Squeak's Browser's code pane.
  2. Student X created a dummy method, and saved out a .st file.
  3. Student X edited the .st file with a text editor (BBEdit, I think).
  4. Student X made a mistake:
	start to: finish do: [:b | ~~stuff~~].
  	b to: furtheron do: [:q | ~~stuff~~].
  5. Student X handed in his .st file without testing.

  6. Lecturer Y (not me) tried to load the .st file.
  7. A Syntax Error morph popped up.  It was clear to lecturer Y that there
     *was* a syntax error, but out of a couple of hundred lines in a small
     window it was not clear *where* or *what* it was.
  8. Lecturer Y called for help (this is where I come in).
     It eventually dawned on me to try searching for '->'.
  9. The location and nature of the error were clearly revealed.
     "Out of scope ->" pointing to the b.

Problem:
  The error message and arrow are not highlighted in a Syntax Error morph.



More information about the Squeak-dev mailing list