-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Scala3doc: fix issues with loading stdlib #10340
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ae34440
Scala3doc: fix issues with loading stdlib
abgruszecki 66e5612
Fix test failure
abgruszecki 674a589
Look upon my works, ye brave, and behold the kludges
abgruszecki 29880b4
Temporarily comment out other projects from Scala3Documentation task
abgruszecki 3f4b101
Document stdlib in a separate task
abgruszecki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1160,7 +1160,9 @@ object Build { | |
val testcasesOutputDir = taskKey[String]("Root directory where tests classses are generated") | ||
val testcasesSourceRoot = taskKey[String]("Root directory where tests sources are generated") | ||
val generateSelfDocumentation = taskKey[Unit]("Generate example documentation") | ||
// Note: the two tasks below should be one, but a bug in Tasty prevents that | ||
val generateScala3Documentation = taskKey[Unit]("Generate documentation for dotty lib") | ||
val generateScala3StdlibDocumentation = taskKey[Unit]("Generate documentation for Scala3 standard library") | ||
val generateTestcasesDocumentation = taskKey[Unit]("Generate documentation for testcases, usefull for debugging tests") | ||
lazy val `scala3doc` = project.in(file("scala3doc")).asScala3doc | ||
lazy val `scala3doc-testcases` = project.in(file("scala3doc-testcases")).asScala3docTestcases | ||
|
@@ -1506,15 +1508,24 @@ object Build { | |
(`scala3-interfaces`/Compile/products).value, | ||
(`tasty-core-bootstrapped`/Compile/products).value, | ||
(`scala3-library-bootstrapped`/Compile/products).value, | ||
// TODO we can't load stdlib from Tasty | ||
// (`stdlib-bootstrapped`/Compile/products).value, | ||
).flatten | ||
|
||
val roots = joinProducts(dottyJars) | ||
|
||
if (dottyJars.isEmpty) Def.task { streams.value.log.error("Dotty lib wasn't found") } | ||
else generateDocumentation(roots, "Scala 3", "scala3", "-p scala3doc/scala3-docs --projectLogo scala3doc/scala3-docs/logo.svg --revision master") | ||
}.value, | ||
|
||
generateScala3StdlibDocumentation:= Def.taskDyn { | ||
val dottyJars: Seq[java.io.File] = Seq( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it should be stdLibJars |
||
(`stdlib-bootstrapped`/Compile/products).value, | ||
).flatten | ||
|
||
val roots = joinProducts(dottyJars) | ||
|
||
if (dottyJars.isEmpty) Def.task { streams.value.log.error("Dotty lib wasn't found") } | ||
else generateDocumentation(roots, "Scala 3", "scala3-stdlib", "-p scala3doc/scala3-docs --syntax wiki --projectLogo scala3doc/scala3-docs/logo.svg --revision master") | ||
}.value, | ||
generateTestcasesDocumentation := Def.taskDyn { | ||
generateDocumentation(Build.testcasesOutputDir.in(Test).value, "Scala3doc testcases", "testcases", "--revision master") | ||
}.value, | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
IMHO we should leave this here until we will be able to generate stdlib togeter with rest of Scala3 jars
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.
We have a similar comment above, where we define
generateScala3StdlibDocumentation
.