Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LsSeq's pretty-printing doesn't follow height-truncation rules #209

Closed
lihaoyi opened this issue Sep 6, 2015 · 1 comment
Closed

LsSeq's pretty-printing doesn't follow height-truncation rules #209

lihaoyi opened this issue Sep 6, 2015 · 1 comment

Comments

@lihaoyi
Copy link
Member

lihaoyi commented Sep 6, 2015

This is probably because we're pushing the truncation logic deep into each pprinter, rather than just having it performed by the final printing of the resultantIterator[String], allowing individual pprinters to misbehave

haoyi-cache@ Seq.fill(100)(100)
res5: Seq[Int] = List(
  100,
  100,
  100,
  100,
  100,
  100,
  100,
  100,
  100,
  100,
  100,
...
haoyi-cache@ ls!
res6: LsSeq =
'aopalliance
'asm
"com.chuusai"
"com.github.scopt"
"com.google"
"com.google.guava"
"com.google.inject"
"com.jcraft"
"com.jsuereth"
"com.lihaoyi"
"com.scalatags"
"com.thoughtworks.paranamer"
"com.typesafe"
"com.typesafe.akka"
"commons-codec"
"commons-io"
"commons-logging"
"io.spray"
"javax.annotation"
"javax.enterprise"
"javax.inject"
'jline
"net.databinder"
"org.apache"
"org.apache.ant"
"org.apache.commons"
"org.apache.httpcomponents"
"org.apache.ivy"
"org.apache.maven"
"org.apache.sshd"
"org.bouncycastle"
"org.codehaus"
"org.codehaus.plexus"
"org.eclipse.aether"
"org.eclipse.sisu"
"org.fusesource.jansi"
"org.jboss"
"org.jboss.interceptor"
"org.jboss.weld"
"org.json4s"
"org.reactivestreams"
"org.scala-lang"
"org.scala-lang.modules"
"org.scala-sbt"
"org.scala-sbt.ivy"
"org.scala-tools.sbinary"
"org.scalacheck"
"org.scalactic"
"org.scalamacros"
"org.scalatest"
"org.slf4j"
"org.sonatype.forge"
"org.sonatype.oss"
"org.sonatype.plexus"
"org.sonatype.sisu"
"org.sonatype.sisu.inject"
"org.sonatype.spice"
"org.spire-math"
"org.tukaani"
"org.vafer"
"org.webjars"
"resolved-com.lihaoyi-ammonite-shell_2.10-caller-working.properties"
"resolved-com.lihaoyi-ammonite-shell_2.10-caller-working.xml"
"resolved-com.lihaoyi-ammonite-shell_2.11-caller-working.properties"
"resolved-com.lihaoyi-ammonite-shell_2.11-caller-working.xml"
"scala_2.10"

haoyi-cache@
@lihaoyi
Copy link
Member Author

lihaoyi commented Dec 1, 2015

Fixed by cc21a26

@lihaoyi lihaoyi closed this as completed Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant