Skip to content

Amazon Q to review code and identify which lines #505

@xRoyQ

Description

@xRoyQ

Issue Summary:
When I ask Amazon Q to review code and identify which lines require fixes or provide suggestions, the reported line numbers are frequently inaccurate. This makes it difficult to locate the referenced issues, especially in larger files.

Suspected Cause:
It appears that blank lines or comment blocks may be affecting the line number calculation. The discrepancy seems consistent across different files and scenarios, suggesting a systemic parsing or mapping issue.

Expected Behavior:
Amazon Q should report line numbers that match the actual structure of the source file, accounting for all lines—including comments and whitespace—so that developers can reliably locate and apply the suggested changes.

Environment Details:
Eclipse version: 2025-06 (4.36)
Amazon Q plugin version: 2.4.0.202508131831
Operating system: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions