-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Scaladoc: realign -doc-source-url
behavior with 2.12
#10581
Conversation
I have a couple of branches. I'll comment if either contains a break-through.
One was from Sept 13, the longer one from Sept 20, when apparently it occurred to me to fix Scaladoc tickets?
|
12db79c
to
2ad345f
Compare
@SethTisue could you review this? I summarized everything in the description. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've looked through this and I can't think of a flaw or fresh angle, so I'll hit "Approve", but @som-snytt, you analyzed the situation pretty thoroughly at scala/bug#12867 (comment) ; would be good to have your signoff before merge, if you can spare the time
also perhaps @armanbilge would like to have a look?
my test dirs from that day...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I happen to be tired and lacking focus at the moment, so reading even this much regex is like, I'm not going to read any more regex until after New Year's.
NBD I tried the crusty way. https://github.com/scala/scala/compare/2.13.x...som-snytt:scala:test/t12867?expand=1 |
I'm all for a simpler regex, thanks a lot for your cleanup. |
-doc-source-url
compatibility with 2.12.11-doc-source-url
behavior with 2.12
Summary
-sourcepath
is used to relativize them/
, sobase€{FILE_PATH_EXT}
becomesbase/src/...
srcpathUri.relativize(fileUri)
, which doesn't have a leading/
foo/€{FILE_PATH}
andfoo€{FILE_PATH}
both emitfoo/relative/path/File
(insert/
if a word character precedes€{FILE_PATH}
). No such magic for absolute paths (if-sourcepath
is not specified or is not a prefix of the file).What happens without
-sourcepath
:scaladoc a/B.scala
would insert a relative path.Paths.get("").toUri
is the current directoryFixes scala/bug#12867