-
Notifications
You must be signed in to change notification settings - Fork 122
Follow-up to the fields added in #580, and add Problem#rendered #588
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
Conversation
|
A validation involving this pull request is in progress... |
|
The validator has checked the following projects against Scala 2.12,
❌ The result is: FAILED |
|
The validator is still broken: [scala-212] --== End Extracting dependencies for scala-212 ==--
[error] java.lang.RuntimeException:
[error]
[error] Fatal: multiple projects have the same artifacts visible in the same space.
[error]
[error] org.scala-sbt#zinc-classpath from sbt212-zinc and sbt212-zinc, both visible in space "sbt212"
[error] org.scala-sbt#zinc-apiinfo from sbt212-zinc and sbt212-zinc, both visible in space "sbt212"
[error] org.scala-sbt#zinc-classfile from sbt212-zinc and sbt212-zinc, both visible in space "sbt212"
[error] org.scala-sbt#compiler-bridge from sbt212-zinc and sbt212-zinc, both visible in space "sbt212"
[error]
[error] at scala.sys.package$.error(package.scala:27)
[error] at com.typesafe.dbuild.model.RepeatableDBuildConfig.<init>(RepeatableBuild.scala:158)
[error] at com.typesafe.dbuild.model.RepeatableDBuildConfigH$.fromExtractionOutcome(RepeatableBuild.scala:71)
Shutting down, please wait...
Result: EXTRACTION FAILED (Cause: RuntimeException: ) |
jvican
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.
👍 on the addition of rendered, aside from the comment this LGTM
| import sbinary.Format | ||
| import xsbti.{ Position, Problem, Severity } | ||
|
|
||
| // TODO: Remove this method once a version of sbinary containing |
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.
You don't need to update the text analysis format since it's not supported anymore and it's not used by any build tool that I know of (and if somebody is using it, it's fine that they don't see the new additions to positions). We should probably remove this from this PR
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.
You don't need to update the text analysis format since it's not supported anymore
Then why isn't it deprecated? If it was, I wouldn't have wasted a day implementing this.
We should probably remove this from this PR
At this point I would just keep it since it avoids some deprecation warnings in the build of Zinc.
| } | ||
| } | ||
|
|
||
| private def fromString(value: String): Option[String] = |
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.
Is indentation off here compared to fromInt?
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.
What do you mean? They're both indented the same way.
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.
Safari plays tricks on me 😛
This was forgotten in sbt#580. Also bump sbinary to 0.5.0 to make `asProduct13` from sbt/sbinary#17 available.
And bump util to 1.2.2 to include sbt/util#175
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
This PR requires a release of sbt util with sbt/util#175 merged.
After having a look at https://discuss.lightbend.com/t/patching-strategy/1924 I have no idea whether I'm supposed to open things against 1.2.x or 1.x, so I'm opening against 1.2.x since that's what I care about right now.