CoatiSoftware / Sourcetrail

Sourcetrail - free and open-source interactive source explorer
https://www.sourcetrail.com/
GNU General Public License v3.0
14.81k stars 1.39k forks source link

Sourcetrail support for lombok in java gradle project #569

Open Christoph460 opened 6 years ago

Christoph460 commented 6 years ago

I would like to know if the sourcetrail (version 2018.2) supports the lombok plugin within a gradle java project.

egraether commented 6 years ago

It is not yet not available. As far as I remember the tricky part about lombok is, that it creates getters/setters during runtime, so the information is not available for our static analyzer yet. We have to add lombok capabilities to our static analyzer to support it.

Christoph460 commented 6 years ago

Alright, thank you your for the answer. Since our current project at Authentic Vision is mostly based on using lombok getter/setter generation during runtime, a lot of unfound messages in sourcetrail exists, which makes it under this circumstances hardly impossible to use. Looking forward when lombok will be supported.

Mortinke commented 5 years ago

+1

egraether commented 5 years ago

+1 via e-mail

alexey-hw commented 5 years ago

+1

egraether commented 5 years ago

+1 via e-mail

borisilic commented 4 years ago

+1

ghost commented 4 years ago

+1 getters/setters etc are created at compile time by lombok

myhau commented 4 years ago

+1

lftrevisan commented 4 years ago

+1

mt3o commented 4 years ago

+1 I just tested SourceTrail with my app (maven+lombok) - without success. However, after delombok - it was successful :-)

I had to use maven plugin that delombokifies the source, then with some help of IntelliJ - correct files that were not processed by the plugin, also I had to manually remove all @SneakyThrows and finally SourceTrail successfully scanned my code base. It's great help to learn the code base! Diagram is much better than what IntelliJ generates!

mlangkabel commented 4 years ago

Thanks for sharing this workaround!

dnobre commented 4 years ago

+1

Simulant87 commented 4 years ago

Lombok generates the getter and setter methods during compile time, not during runtime. If Sourcetrail would be able to analyze the .class files compiled by gradle/maven it would find the methods which are missing in the .java source files.

ManuelMos commented 4 years ago

+1

guxingke commented 4 years ago

+1 , for maven

zhaoxingyun commented 4 years ago

+1

ghost commented 4 years ago

+1 for maven

MLNW commented 4 years ago

+1

yusiwen commented 4 years ago

+1

Josemartins-ptc commented 4 years ago

+1

yusiwen commented 3 years ago

+1 need it!