codecharta icon indicating copy to clipboard operation
codecharta copied to clipboard

Sourcecodeparser can't parser Junit5 code

Open Richargh opened this issue 9 months ago • 0 comments

Bug

Expected Behavior

GIVEN

git clone [email protected]:junit-team/junit5.git

WHEN

ccsh sourcecodeparser junit5 -o junit5.src.cc.json

THEN I get a valid junit5.src.cc.json

Actual Behavior

At 8% -> PointerException: Cannot invoke "org.sonar.plugins.java.api.tree.Tree.kind()" because "node" is null At 83% -> java.lang.IllegalArgumentException: 94 is not a valid line offset for pointer. File junit-jupiter-engine/src/test/java/org/junit/jupiter/api/AssertLinesMatchAssertionsTests.java has 21 character(s) at line 304

And CodeCharta Visualization says the file is "empty or invalid"

Specifications

  • is released in online-demo: yes
  • CodeCharta Version: 1.125.0
  • OS: MacOs
  • Browser: FireFox

Richargh avatar May 18 '24 13:05 Richargh