9xc Troubleshooting - Owen2k6/GoOS GitHub Wiki

Troubleshooting

“Unknown library”

  • Use import with one of: System, Console, IO, Time, 9xGL, GoOS, *.

if (...) never enters

  • The left side must be an existing variable (Int, String, Bool).
  • Ensure your right side matches the type: quoted string, plain integer, or true|false.

File paths

  • Use 0:\\... style paths.
  • For WrFile, ensure the file exists (use MkFile) or that the path is valid and writable.

Drawing fails

  • You must create a window first and pass its variable as the first parameter.
  • Colour name must be known (e.g., DarkMagenta, not arbitrary text).

Console colour did not change

  • You must import Console. Then set Color ForeColor = <Name> or Color BackColor = <Name>.

Goto jumps to wrong place

  • Line numbers are 1‑based. Count lines including blanks (comments are ignored but still occupy a line).
⚠️ **GitHub.com Fallback** ⚠️