Skip to content

Depyler v3.20.2 Compatibility Validation - No New Fixes #2

Description

@noahgift

Summary

Tested depyler v3.20.2 (latest from ../depyler) against all 6 examples. The compatibility status remains unchanged from the documented state in README.md.

Test Results

✅ Working Examples (3/6 - 50%)

  1. example_simple

    • Status: Compiles and runs correctly
    • Command: depyler compile trivial_cli.py -o trivial_cli_test
    • Validation: ./trivial_cli_test --name "Test" produces Hello, Test!
  2. example_flags

    • Status: Compiles and runs correctly
    • Command: depyler compile flag_parser.py -o flag_parser_test
    • Validation: ./flag_parser_test --verbose --debug produces correct output
  3. example_positional

    • Status: Compiles and runs correctly
    • Command: depyler compile positional_args.py -o positional_args_test
    • Validation: ./positional_args_test start target1 target2 produces correct output

❌ Failing Examples (3/6 - 50%)

  1. example_subcommands

    • Status: Build fails
    • Error: cannot find type 'Args' in this scope
    • Issue: The generated Rust code references an Args type that isn't defined
    • Root cause: Subcommand enum handling not generating proper types
  2. example_complex

    • Status: Build fails with 26 compilation errors
    • Key errors:
      • Invalid casts: serde_json::Value as i32
      • Option type mismatches (bool vs Option)
      • Missing argparse module references
      • Display trait not implemented for Option types
    • Root cause: Complex type inference and Option handling issues
  3. example_stdlib

    • Status: Transpile fails immediately
    • Error: Expression type not yet supported
    • Root cause: Unsupported expression types in stdlib code

Conclusion

No improvements detected in depyler v3.20.2. The same 3 examples that previously failed continue to fail with identical error patterns.

Version Information

  • Depyler: v3.20.2 (installed from ../depyler via cargo install --path ../depyler/crates/depyler)
  • Test Date: 2025-11-13
  • System: Linux 6.8.0-87-generic

Outstanding Issues

The following issues need to be addressed in depyler for 100% compatibility:

  1. Subcommand enum generation - Need proper Args type definitions
  2. Complex type handling - Better type inference for Option types and custom validators
  3. Expression type support - Expand supported expression types for stdlib integration

Reproduction

# Install depyler v3.20.2
cargo install --path ../depyler/crates/depyler

# Verify version
depyler --version

# Test working examples
depyler compile examples/example_simple/trivial_cli.py -o examples/example_simple/trivial_cli_test
depyler compile examples/example_flags/flag_parser.py -o examples/example_flags/flag_parser_test
depyler compile examples/example_positional/positional_args.py -o examples/example_positional/positional_args_test

# Test failing examples
depyler compile examples/example_subcommands/git_clone.py -o examples/example_subcommands/git_clone_test 2>&1
depyler compile examples/example_complex/complex_cli.py -o examples/example_complex/complex_cli_test 2>&1
depyler compile examples/example_stdlib/stdlib_integration.py -o examples/example_stdlib/stdlib_integration_test 2>&1

Related

  • README.md compatibility table (lines 67-80)
  • Previous compatibility testing documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions