- Notifications
You must be signed in to change notification settings - Fork3.1k
Scaladoc: realign-doc-source-url behavior with 2.12#10581
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
som-snytt commentedOct 20, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 to2ad345fComparelrytz commentedNov 21, 2023
@SethTisue could you review this? I summarized everything in the description. |
SethTisue left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 atscala/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?
Uh oh!
There was an error while loading.Please reload this page.
som-snytt commentedNov 23, 2023
my test dirs from that day... |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
som-snytt left a comment
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.
som-snytt commentedNov 23, 2023
NBD I tried the crusty way.https://github.com/scala/scala/compare/2.13.x...som-snytt:scala:test/t12867?expand=1 |
lrytz commentedNov 23, 2023
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
Uh oh!
There was an error while loading.Please reload this page.
Summary
-sourcepathis 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-sourcepathis not specified or is not a prefix of the file).What happens without
-sourcepath:scaladoc a/B.scalawould insert a relative path.Paths.get("").toUriis the current directoryFixesscala/bug#12867