Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Bug with decoding of mappings with symbols

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
java
Domain
devtools

Research direction

Open Consumer.java around line 207 and follow the mapping-decoding logic for the named source symbol. Verify that the symbol lookup uses sourceSymbolNameIndex rather than the source-file index. Done means symbol mappings decode with the correct source symbol name.

Written by the indexing model from the issue text.

Description

In Consumer.java, line 207...

...
case 5:
// A mapped section of the generated file, that has an associated
// name.
sourceFileNameIndex = vals[1] + previousSrcId;
sourceFileName = sourceFileNames.get(sourceFileNameIndex);
sourceSymbolNameIndex = vals[4] + previousNameId;
sourceSymbolName = sourceSymbolNames.get(sourceFileNameIndex);

                entry = new MappingImpl(
                    generatedLine,
                    vals[0] + previousCol,
                    vals[2] + previousSrcLine,

...

sourceSymbolName is being calculated incorrectly. The line should read

sourceSymbolName = sourceSymbolNames.get(sourceSymbolNameIndex );

Dominant language
Java
Stars
25
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.