-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Try purging scala-xml #6480
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
Try purging scala-xml #6480
Conversation
|
This is only for discussion, which see scala/bug#9560 |
|
The man pages will fail to compile: |
Imagine the scala-xml dependency was removed from scaladoc. Would it be possible to remove it as a dependency entirely from the build? Presumably, XML literal tests will fail. Anything else? As an exercise, I've shredded scaladoc entirely so that it doesn't use scala-xml but it also doesn't do anything. I've ripped out the tests against scaladoc, as well. Although, there weren't many. So scaldoc will still compile sucessfully, and will write empty files.
f5c2e77 to
4e39819
Compare
|
Seems like a test case that is neither here-nor-there wrt scala-xml. Could be simplified? |
|
Thought it was a test that could be moved to a junit test in scala-xml, but I guess it's related to the compiler's |
|
This also seems to be a compiler test for XML literals. |
|
Another compiler test for XML literals: |
|
This test does a number of sanity checks on the REPL. It both written in a huge XML block and also contains tests of scala-xml. |
|
I think this test could be moved to a jUnit test in scala-xml's repo: |
|
Here's a property-test related to quasiquotes that has scala-xml bindings: |
|
Build succeeds with scala-xml dependency removed when:
|
|
thanks for looking into this! offhand, I think it will be fine to relocate XML literal tests to the scala-xml repo and let the community build catch it if something about XML literal support regresses in this repo? |
|
Yeah, presumably the community build infrastructure would catch something like that. |
|
Thanks to all for this effort. We can/should retain tests for XML literals that only run the compiler as far as the parser phase, e.g. any |
|
The change here was considering the proposal of even ripping out those tests against XML literals, and no longer retaining them in the compiler repo. This was motivated by not having the compiler's build/bootstrap depend on scala-xml at all. Instead, the "testing" of XML literal support would be done downstream when the community build foists scala-xml (or any other Scala library that uses XML literal syntax). |
|
My point is, testing that our parser's support for XML literals doesn't require the scala-xml library, so leaving the tests here doesn't make bootstrapping any harder, and keeps the test cases and the code-under-test colocated, which IMO is desirable. I don't feel too strongly about that, so as long as we end up with the same nett test coverage I'm happy. |
|
ticket on resurrecting removed tests in over at scala/scala-xml is scala/scala-xml#211 |
Imagine the scala-xml dependency was removed from scaladoc, which see #6436.
Would it be possible to remove it as a dependency entirely from the build? Presumably, XML literal tests will fail. Anything else?
As an exercise, I've shredded scaladoc entirely so that it doesn't use scala-xml but it also doesn't do anything. I've ripped out the tests against scaladoc, as well. Although, there weren't many. So scaldoc will still compile sucessfully, and will write empty files.