PyVizAST Release 0.6.1
Bug Fixes & Code Quality Improvements
Backend Fixes:
- Fixed custom exception classes: Added
__init__,__str__methods, error codes, and default messages forAnalysisError,CodeParsingError,CodeTooLargeError,ResourceNotFoundError - Fixed
_parse_patch_hunksline index counter initialization issue inpatches.py - Enhanced
_notify_listenerserror handling inprogress.py- replacedpasswith proper error logging - Improved exception handling in
performance.py- added logging for caught exceptions
Frontend Fixes:
- Fixed
CodeEditornot supportingreadOnlyprop - Monaco Editor now properly receives thereadOnlyoption - Unified logging system: Replaced all
console.log/error/warnwith structuredloggerutility - Files updated:
api.js,PatchPanel.js,ChallengeView.js,LearnView.js,AnalysisPanel.js,ProjectAnalysisView.js,ProjectVisualization.js,ASTVisualizer.js,ASTVisualizer3D.js,ErrorBoundary.js,App.js
Code Quality:
- 36 console statements replaced with structured logging
- Frontend errors now batch-sent to backend for persistence
- Better error filtering (ignoring ResizeObserver benign errors)
- Development/production environment logging support
Files Modified:
backend/main.py- Exception class implementationsbackend/optimizers/patches.py- Line index counter fixbackend/utils/progress.py- Error loggingbackend/analyzers/performance.py- Exception loggingfrontend/src/components/CodeEditor.js- readOnly prop supportfrontend/src/components/*.js- Logger integration