question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More lenient behavior for unsupported version formats

See original GitHub issue

In 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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kitlangtoncommented, Jun 27, 2022

This shall not blow up any longer 😃

0reactions
kubukozcommented, Jun 27, 2022

thanks 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found