Bug with decoding of mappings with symbols
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 55/100
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Update license yearOpen0 - Backlog 1 - Ready documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
cbor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
FasterXML/jackson-dataformats-binary#844 ·
Maintainers usually reply within 1 day
-
Issue: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
OpenAPITools/openapi-generator#25107 ·
Maintainers usually reply within 1 day
-
improvement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/iceberg#18351 · 1 comment ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
repowise-dev/repowise#2945 · 1 comment ·
Maintainers usually reply within 1 day