jackfirth / jackfirth/resyntax

More automatic rule debug logs

Open
#599 0 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

testing
Dominant language
Racket
Stars
70
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Currently, define-refactoring-rule automatically inserts a debug logging statement for every #:when condition in the rule that logs if the condition was false, causing the rule to not match. There should be similar logging added to #:with patterns, because a #:with pattern failing to match is not an error and simply causes the whole rule to not match. Additionally, there should be an #:undo statement added to every rule which logs (at debug level) when the entire partial rule match is discarded, for any reason. This should make debugging #lang resyntax/test failures easier, since they automatically capture debug logs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.