More lenient behavior for unsupported version formats
See original GitHub issueIn a project like this:
//plugins.sbt
addSbtPlugin("com.disneystreaming.smithy4s" % "smithy4s-sbt-codegen" % "0.13.6")
//build.sbt
val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.disneystreaming.smithy4s" %% "smithy4s-aws-http4s" % smithy4sVersion.value,
//other deps
),
)
.enablePlugins(Smithy4sCodegenPlugin)
The app seems to fail when seeing .value
- in this case, the version is set by the plugin but this app probably couldn’t (and shouldn’t) know that - probably the best course of action would be to log a warning but otherwise ignore the version and handle others.
Current behavior:
~/projects/sbt-interactive-update/target/universal/stage/bin/sbt-interactive-update
timestamp=2022-06-27T14:18:48.892822Z level=ERROR thread=#zio-fiber-0 message="" cause="Exception in thread "zio-fiber-" java.lang.Error: Could not find version for com.disneystreaming.smithy4s %% smithy4s-aws-http4s % smithy4sVersion.value
at dependencies.DependencyParser$$anonfun$$nestedInanonfun$getDependencies$1$1.applyOrElse(DependencyParser.scala:71)"
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
String to Date migration from Spark 2.0 to 3.0 gives Fail to ...
If you want to use the legacy format in a newer version of spark(>3), you need to ... I guess the earlier version...
Read more >os.cpu_count - Unsupported operand types for * ("Optional[int ...
os. cpu_count - Unsupported operand types for * ("Optional[int]" and "int") in strict mode · Issue #4670 · python/mypy · GitHub.
Read more >Site compatibility-impacting changes coming to Microsoft Edge
Summary of high-impact changes that are planned for Microsoft Edge that may impact website compatibility.
Read more >Backward Incompatible Changes - Manual - PHP
The behavior of explicit casts to int/float from strings has not been changed. Magic Methods will now have their arguments and return types...
Read more >Deprecations by version - GitLab Docs
In order to make the behavior of toggling the draft status of a merge request more clear via a quick action, we're deprecating...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This shall not blow up any longer 😃
thanks 😃