replpp.util

package replpp.util

Members list

Type members

Classlikes

object Cache

A simple cache for cacheKey -> Path, where Path is a single file

A simple cache for cacheKey -> Path, where Path is a single file

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Cache.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class SimpleDriver(lineNumberReportingAdjustment: Int) extends Driver

Compiles input files to a temporary directory

Compiles input files to a temporary directory

TODO: use a VirtualDirectory for the output - I didn't manage to find a good way to pass those to the Context of the DottyReplDriver yet... val virtualDirectory = new VirtualDirectory("(virtual)") val cp = ClassPathFactory.newClassPath(virtualDirectory)

TODO: cache results i.e. store hash of all inputs? that functionality must exist somewhere already, e.g. zinc incremental compiler, or even in dotty itself?

Attributes

Supertypes
class Driver
class Object
trait Matchable
class Any

Value members

Concrete methods

def colorise(value: String, color: EscapeAttr)(using colors: Colors): String
def deleteRecursively(path: Path): Unit
def linesFromFile(path: Path): Seq[String]
def pathAsString(path: Path): String
def readFileFromZip(zipFile: Path, fileName: String): Try[Array[Byte]]
def sequenceTry[A](tries: Seq[Try[A]]): Try[Seq[A]]
def terminalWidth: Try[Int]

Lookup the current terminal width - useful e.g. if you want to render something using the maximum space available. Uses jline-jna, which therefor needs to be in the repl's classpath, which is why it's listed in

Lookup the current terminal width - useful e.g. if you want to render something using the maximum space available. Uses jline-jna, which therefor needs to be in the repl's classpath, which is why it's listed in

replpp.Config.ForClasspath.DefaultInheritClasspathIncludes

Attributes