Skip to content

[source_ref] include the ending line of a log statement#13

Merged
ttiimm merged 2 commits into
ttiimm:mainfrom
tstack:integ5
Sep 22, 2025
Merged

[source_ref] include the ending line of a log statement#13
ttiimm merged 2 commits into
ttiimm:mainfrom
tstack:integ5

Conversation

@tstack

@tstack tstack commented Sep 21, 2025

Copy link
Copy Markdown
Contributor

If a log statement is broken up over multiple lines, the user might refer to any of those lines when setting a breakpoint. So, we need to include the ending line number in the SourceRef.

Files:

  • lib.rs: Add a method to get the StatementsInFile object from the LogMatcher. This is needed to handle a breakpoint request. Also, adjust the java tree-sitter query so template strings are handled using Named placeholders.
  • source_hier.rs: Completely ignore some directories in the source hierarchy, like version control ones. Add methods to find a file in the source hierarchy.
  • source_query.rs: Only return results from captures after the format string.
  • source_ref.rs: Add ending line number.
  • test_java.rs: Add a java test that uses slf4j-style log statements.

If a log statement is broken up over multiple lines, the
user might refer to any of those lines when setting a
breakpoint.  So, we need to include the ending line
number in the SourceRef.

Files:
* lib.rs: Add a method to get the StatementsInFile
  object from the LogMatcher.  This is needed to
  handle a breakpoint request.  Also, adjust the
  java tree-sitter query so template strings
  are handled using Named placeholders.
* source_hier.rs: Completely ignore some
  directories in the source hierarchy, like version
  control ones.  Add methods to find a file in the
  source hierarchy.
* source_query.rs: Only return results from captures
  after the format string.
* source_ref.rs: Add ending line number.
* test_java.rs: Add a java test that uses slf4j-style
  log statements.
@ttiimm ttiimm merged commit a63ee3a into ttiimm:main Sep 22, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants