theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Handling Compile Errors: K_DerefProp: objref arg is undefined (bad scriptText?) #417

Open benloh opened 2 years ago

benloh commented 2 years ago
  1. Edit a blueprint.
  2. Add a new line.
  3. Add a prop keyword
  4. Save to Server

You'll get an error on the prop keyword on both Main and the ScriptEditor:

screenshot_1064

If you look at prop.tsx, the error is probably because during compile the gemscript line is a partial line with just a keyword and no object ref.

I think this is a general question of how the system should handle compiles and errors of this nature.

  1. if objref is undefined, do we just not compile? return an error state?
  2. how should that error state be conveyed to the student?

We can discuss how to tackle.