object SbtServer extends Serializable
- Alphabetic
- By Inheritance
- SbtServer
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
connect(cwd: org.langmeta.io.AbsolutePath, services: Services)(implicit scheduler: Scheduler): Task[Either[String, SbtServer]]
Establish connection with sbt server.
Establish connection with sbt server.
Requires sbt 1.1.0 and above.
- cwd
The workspace directory, baseDirectory.in(ThisBuild).
- services
the handler for requests/notifications/responses from the sbt server.
- scheduler
the scheduler on which to run the services handling sbt responses and notifications.
- returns
A client to communicate with sbt server in case of success or a user-friendly error message if something went wrong in case of failure.
- See also
http://www.scala-sbt.org/1.x-beta/docs/sbt-server.html
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forwardingServices(editorClient: JsonRpcClient, config: () ⇒ Configuration): Services
Handler that forwards logMessage and publishNotifications to the sbt server.
Handler that forwards logMessage and publishNotifications to the sbt server.
- editorClient
the LSP editor client to forward the notifications from the sbt server.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
openSocketConnection(cwd: org.langmeta.io.AbsolutePath): Either[Throwable, UnixDomainSocket]
Establishes a unix domain socket connection with sbt server.
-
def
readVersion(cwd: org.langmeta.io.AbsolutePath): Option[String]
Tries to read sbt version from the
project/build.propertiesfile.Tries to read sbt version from the
project/build.propertiesfile.- cwd
sbt project root directory.
- returns
version string value or
Noneif anything goes wrong.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
object
ActiveJson
Returns path to project/target/active.json from the base directory of an sbt build.