Open amnaredo opened 3 years ago
I don't know what you are asking and so I don't know how to help =(
Original Author: lihaoyi
I'm going to have to make a whole app to explain what's going on. As a newbie it's impossible to know if I'm doing something wrong by combining some libs. I can say that I've got some spray paths that I'm creating from a list of string tokens via reduce( ~ ) for a total of about 25 paths (5 paths for each of 5 strings). When upickle (Used inside of some of those paths) breaks, that reduce line breaks. I'm sure that still doesn't make sense, but need a reference somewhere for when I come back and make a better question.
I've discovered that while clean command doesn't help, commenting out the upickle read and write lines and recompiling, then re-introducing the upickle references does heal the router. This leads me to believe that upickle shouldn't be following the standard advice for shared-dependencies provided on the scalajs documentation page, but again - can't be sure, because I'm new to 3 of these libs.
Sorry for the rant. It was really late - I swear this looked like a good jumping off point last night. I do think the readme needs some more info, and I'd like to help put it there - but I need to learn what I'm doing wrong before I can do that. Loving your work so far, by the way!
Original Author: auxf5
Well, I have no idea what's going on, and upickle doesn't have any dependencies except jawn
and doesn't interact with spray at all. If you have any things you think could be added to the readme send a PR, and if you have any concrete questions about upickle open another issue =)
Original Author: lihaoyi
I've got
package models
sealed trait A
case class B(s : String) extends A
case class C(i :Int) extends A
How are implicit Readers and Writers defined? I can't find any info in the readme, and there are at least five different choices in the Implicits package in the source.
Sometimes my calls to readA and write(foo) compile, and then randomly they stop working if I make minor changes, such as some random (unrelated) helper code in package models:
object BUtils { def validateB(b:B) : Option[B] = {...} }
just because that's in package models, the read and write functions break.. upickle is feeling very fragile to me, but I don't know if all of these problems will go away if I can learn which readers/writers to extend for my implicit objects, and how to use those.
ID: 24 Original Author: auxf5