lightbend / genjavadoc

A compiler plugin for generating doc’able Java source from Scala source
Other
58 stars 32 forks source link

use point positions in comment index #274

Closed lrytz closed 3 years ago

lrytz commented 3 years ago

fixes https://github.com/lightbend/genjavadoc/issues/220

i only tested this on 2.13.5 locally, let's see what travis says.

lrytz commented 3 years ago

@raboof this went green. not sure what's the best strategy for testing, i added a commit that tests everything with -Yrangepos. I think either the test suite should just use the compiler's default (so rangepos will be on for 2.13.4+), or everything should be tested twice (with and without rangepos).

lrytz commented 3 years ago

In this case I'd suggest to remove the rangepos overrides in the tests, so that it tests the compiler's default.

lrytz commented 3 years ago

@raboof could you test this on Akka (2.12.13, 2.13.3, 2.13.5)? Would you prefer to have a release or do your own publishLocal?

lrytz commented 3 years ago

(failure seems spurious, and travis doesn't let me restart the job, "Oh no! An error occurred. The job could not be restarted")

raboof commented 3 years ago

@raboof could you test this on Akka (2.12.13, 2.13.3, 2.13.5)? Would you prefer to have a release or do your own publishLocal?

I'll give it a go (with publishLocal)

lrytz commented 3 years ago

Thanks!

raboof commented 3 years ago

Tested a couple of variations:

With genjavadoc 0.16 and default settings:

With this branch and default settings:

So all good!

lrytz commented 3 years ago

Thanks for testing it!