Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix #21669 This part of code is from #20084 We should check `parents` is non-empty before calling `reduceLeft`. I haven't been able to create a standalone test. To test locally: `i21669.scala` ```scala //> using dep "com.softwaremill.sttp.tapir::tapir-sttp-client:1.11.5" import sttp.tapir.* import sttp.tapir.client.sttp.SttpClientInterpreter @main def run = lazy val pingGET = endpoint.get .in("ping") .out(stringBody) SttpClientInterpreter() .toRequest(pingGET, Some(uri"http://localhost:8080")) ``` ``` > sbt publishLocal > scala compile --server=false -S 3.6.0-RC1-bin-SNAPSHOT i21669.scala -- [E008] Not Found Error: /dotty/i21669.scala:12:33 ------ 12 | .toRequest(pingGET, Some(uri"http://localhost:8080")) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |value uri is not a member of StringContext, but could be made available as an extension method. | |One of the following imports might fix the problem: | | import sttp.client3.UriContext | import sttp.client3.quick.UriContext | import sttp.model.Uri.UriContext | 1 error found Compilation failed ```
- Loading branch information