You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala>importsys.process._importsys.process._
scala>"foo".lines
<console>:11:error: typemismatch;
found : String("foo")
required: ?{deflines:?}
Note that implicit conversions are not applicable because they are ambiguous:
both method augmentString in objectPredef of type (x: String)scala.collection.immutable.StringOps
and method stringToProcess in traitProcessImplicits of type (command: String)scala.sys.process.ProcessBuilder
are possible conversion functions from String("foo") to ?{deflines:?}
"foo".lines
^
I'm working around it by writing {code}stringToProcess("foo").lines{code}, but I have a sad.