Packages

c

scala.tools.nsc

StandardCompileServer

class StandardCompileServer extends SocketServer

The server part of the fsc offline compiler. It awaits compilation commands and executes them. It caches a compiler instance so that it can respond more quickly.

Source
CompileServer.scala
Version

1.0

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StandardCompileServer
  2. SocketServer
  3. CompileOutputCommon
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StandardCompileServer(fixPort: Int = 0)

Value Members

  1. val BufferSize: Int
    Definition Classes
    SocketServer
  2. val MaxCharge: Double
  3. lazy val compileSocket: CompileSocket
  4. def doSession(clientSocket: Socket): Unit
    Definition Classes
    SocketServer
  5. def echo(msg: String): Unit
    Definition Classes
    CompileOutputCommon
  6. def fatal(msg: String): Nothing
    Definition Classes
    CompileOutputCommon
  7. var in: BufferedReader
    Definition Classes
    SocketServer
  8. def info(msg: String): Unit
    Definition Classes
    CompileOutputCommon
  9. def isMemoryFullEnough(): Boolean
  10. def newGlobal(settings: Settings, reporter: Reporter): Global

    Create a new compiler instance

  11. var out: PrintWriter
    Definition Classes
    SocketServer
  12. lazy val port: Int
    Definition Classes
    SocketServer
  13. def printMemoryStats(): Unit
  14. var reporter: ConsoleReporter
  15. def run(): Unit
    Definition Classes
    SocketServer
  16. lazy val serverSocket: ServerSocket
    Definition Classes
    SocketServer
  17. def session(): Unit
    Definition Classes
    StandardCompileServerSocketServer
  18. var shutdown: Boolean
    Definition Classes
    StandardCompileServerSocketServer
  19. def timeout(): Unit
    Definition Classes
    StandardCompileServerSocketServer
  20. def unequalSettings(s1: Settings, s2: Settings): Set[Settings.Setting]

    Problematically, Settings are only considered equal if every setting is exactly equal.

    Problematically, Settings are only considered equal if every setting is exactly equal. In fsc this immediately breaks down because the randomly chosen temporary outdirs differ between client and server. Among other things. Long term we could use a meaningful equality; short term I'm just ignoring options which I can see causing a new compiler instance every time and which do not interestingly influence compilation products.

  21. var verbose: Boolean
  22. def warn(msg: String): Unit
    Definition Classes
    CompileOutputCommon