getappmap / appmap-java

AppMap client agent for Java
Other
80 stars 14 forks source link

Source paths in AppMaps are wrong #236

Closed apotterri closed 9 months ago

apotterri commented 9 months ago

Currently, the source paths that appear in AppMaps aren't correct. They're missing the portion of the path from the project root to the first package directory. For example, if the source file is in src/main/java/com/example/HelloWorld.java, the path for com.example.HelloWorld will be com/example/HelloWorld.java.

The Java compiler doesn't record the file system path in a class file, so there's no way to retrieve a path that's guaranteed to be correct. However, the agent can do a better job guessing what the path is.

appland-release commented 9 months ago

:tada: This issue has been resolved in version 1.24.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: