Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add CLI argument for debugging comptime blocks #5192

Merged
merged 27 commits into from
Jul 10, 2024

Commits on Jun 6, 2024

  1. feat: add CLI argument for debugging comptime blocks for a particular…

    … module, wip, add back hir_to_ast for display only, make a CustomDiagnostic for displaying the before/after, patch hir_to_ast's TypeVariable case for display
    michaeljklein committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    33ee349 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    695194c View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. basic debugging working w/o filtering, added handling for each of the…

    … ~5-6 cases, added debug_comptime_scope for filtering, add error for DebugEvaluateComptime, add non-ID method for hir_to_display_ast, add debug_comptime_evaluations where needed, add simple_with_kind and simple_debug to CustomDiagnostic, add debug case to lsp, ensure debug diagnostics are handled as info in LSP and on CLI,
    michaeljklein committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    53b0a8b View commit details
    Browse the repository at this point in the history
  2. add method to find FileId by path suffix, cleanup and make methods fo…

    …r debug diagnostic, propagate the command line arg, add CompilationError for failing to resolve path, add command line arg to compile options, propagate cli arg, cleanup
    michaeljklein committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    289afaa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1d8ba31 View commit details
    Browse the repository at this point in the history
  4. cargo clippy/fmt

    michaeljklein committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    ebed5f8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1bc05ea View commit details
    Browse the repository at this point in the history
  6. cleanup TODO's

    michaeljklein committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    8e518c3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f1bdb57 View commit details
    Browse the repository at this point in the history
  8. add missing arg

    michaeljklein committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    f7f01b3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    52bcd04 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. Configuration menu
    Copy the full SHA
    375229e View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. Update compiler/noirc_frontend/src/hir/comptime/errors.rs

    Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
    michaeljklein and TomAFrench authored Jun 12, 2024
    Configuration menu
    Copy the full SHA
    6351085 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60d9ef6 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Update compiler/noirc_errors/src/reporter.rs

    Co-authored-by: jfecher <jake@aztecprotocol.com>
    michaeljklein and jfecher authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    427b1ca View commit details
    Browse the repository at this point in the history
  2. Update compiler/noirc_frontend/src/elaborator/mod.rs

    Co-authored-by: jfecher <jake@aztecprotocol.com>
    michaeljklein and jfecher authored Jun 14, 2024
    Configuration menu
    Copy the full SHA
    2ae971f View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. fix span todo

    michaeljklein committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    d225099 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Configuration menu
    Copy the full SHA
    f030f38 View commit details
    Browse the repository at this point in the history
  2. add debug_comptime_scope parameter where missing, use newer NamedGene…

    …ric parameters, import fixes and cleanup
    michaeljklein committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    32fe0ab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c76abe View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. make find_by_path_suffix less generic, use as_deref instead of clone,…

    … rename Debug -> Info, only use a newline when already multi-line, formatting cleanup
    michaeljklein committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    b9f6745 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7658908 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0bc2931 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2e1cc5e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    71ea123 View commit details
    Browse the repository at this point in the history
  6. rename debug_comptime_scope -> debug_comptime_in_file, pass interpret…

    …er_errors by value to avoid clone
    michaeljklein committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    90cab04 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    92dc357 View commit details
    Browse the repository at this point in the history