antlr / antlr/antlr4

STViz tool issue

Open
#2,170 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
19k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

With the latest GH code the STViz tool (triggered via the `-XdbgST` parameter) shows unusual selection ranges in the source code for a `RuleFunction` entry:

sviz

Selection begins a couple of lines too early and ends early as well. Seems to be a pure problem of the STViz tool, not the ST generation.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the STViz tool using the -XdbgST parameter with a RuleFunction entry from the latest code. Inspect how STViz determines the source selection range and compare it with the displayed source; done means the selection starts and ends at the RuleFunction's actual range.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.