Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcecodeparser can't parser Junit5 code #3624

Open
Richargh opened this issue May 18, 2024 · 0 comments
Open

Sourcecodeparser can't parser Junit5 code #3624

Richargh opened this issue May 18, 2024 · 0 comments
Labels
bug Only issues that describe bugs. priority:high Set by PO

Comments

@Richargh
Copy link

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 Richargh added the bug Only issues that describe bugs. label May 18, 2024
@ChristianHuehn ChristianHuehn added the priority:high Set by PO label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Only issues that describe bugs. priority:high Set by PO
Projects
None yet
Development

No branches or pull requests

2 participants