Skip to content

PyVizAST Release 0.6.1

Choose a tag to compare

@ChidcGithub ChidcGithub released this 10 Mar 04:38
· 52 commits to main since this release

Bug Fixes & Code Quality Improvements

Backend Fixes:

  • Fixed custom exception classes: Added __init__, __str__ methods, error codes, and default messages for AnalysisError, CodeParsingError, CodeTooLargeError, ResourceNotFoundError
  • Fixed _parse_patch_hunks line index counter initialization issue in patches.py
  • Enhanced _notify_listeners error handling in progress.py - replaced pass with proper error logging
  • Improved exception handling in performance.py - added logging for caught exceptions

Frontend Fixes:

  • Fixed CodeEditor not supporting readOnly prop - Monaco Editor now properly receives the readOnly option
  • Unified logging system: Replaced all console.log/error/warn with structured logger utility
  • 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 implementations
  • backend/optimizers/patches.py - Line index counter fix
  • backend/utils/progress.py - Error logging
  • backend/analyzers/performance.py - Exception logging
  • frontend/src/components/CodeEditor.js - readOnly prop support
  • frontend/src/components/*.js - Logger integration