St Validate

Validate Tonel file syntax before importing to the Smalltalk image (Pharo or Squeak). Use when suspecting syntax errors in .st files, or when a file was edited manually and correctness is uncertain.

mumez cf78f5c 951 B Updated

File contents

Validate Tonel Syntax

Validate Tonel .st files before importing to the Smalltalk image. Modern AI usually generates correct Tonel, so this is optional.

Usage

/st-validate /absolute/path/to/MyClass.st   # validate a file
/st-validate 'Tonel source text'            # validate content directly

Steps

  1. Call validate_tonel_smalltalk_from_file for a file path, or validate_tonel_smalltalk for raw content
  2. Report any syntax errors or confirm the file is valid

Notes

  • Use validate_smalltalk_method_body to validate a single method body in isolation
  • Validation errors must be fixed before importing

Examples

/st-validate /home/user/project/src/MyPackage/MyClass.st

mumez/smalltalk-dev-plugin/tree/main/skills/st-validate commit cf78f5c1c2

Frequently asked questions

npx skillmds@latest add mumez/st-validate