When formatting a file, Aptana reports:
Unable to format. See error log for details.
I haven\'t been able to find the error log.
You could access it via Help > Aptana > View Log File.