Skip to content

Commit f9bb446

Browse files
committed
Temporarily disable console in sbt bridge
1 parent 67397f5 commit f9bb446

File tree

1 file changed

+35
-34
lines changed

1 file changed

+35
-34
lines changed

sbt-bridge/src/xsbt/ConsoleInterface.scala

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ package xsbt
66
import xsbti.Logger
77

88
import dotty.tools.dotc.core.Contexts.Context
9-
import dotty.tools.dotc.repl.REPL
10-
import dotty.tools.dotc.repl.REPL.Config
9+
// TODO: decide what to do with sbt REPL interface
10+
// import dotty.tools.dotc.repl.REPL
11+
// import dotty.tools.dotc.repl.REPL.Config
1112

1213
class ConsoleInterface {
1314
def commandArguments(
@@ -27,43 +28,43 @@ class ConsoleInterface {
2728
bindValues: Array[Any],
2829
log: Logger
2930
): Unit = {
30-
val completeArgs =
31-
args :+
32-
"-bootclasspath" :+ bootClasspathString :+
33-
"-classpath" :+ classpathString
31+
//val completeArgs =
32+
// args :+
33+
// "-bootclasspath" :+ bootClasspathString :+
34+
// "-classpath" :+ classpathString
3435

35-
println("Starting dotty interpreter...")
36-
val repl = ConsoleInterface.customRepl(
37-
initialCommands :: Nil,
38-
cleanupCommands :: Nil,
39-
bindNames zip bindValues,
40-
loader
41-
)
42-
repl.process(completeArgs)
36+
//println("Starting dotty interpreter...")
37+
//val repl = ConsoleInterface.customRepl(
38+
// initialCommands :: Nil,
39+
// cleanupCommands :: Nil,
40+
// bindNames zip bindValues,
41+
// loader
42+
//)
43+
//repl.process(completeArgs)
4344
}
4445
}
4546

4647
object ConsoleInterface {
47-
def customConfig(
48-
initCmds: List[String],
49-
cleanupCmds: List[String],
50-
boundVals: Array[(String, Any)],
51-
loader: ClassLoader
52-
) = new Config {
53-
override val initialCommands: List[String] = initCmds
54-
override val cleanupCommands: List[String] = cleanupCmds
55-
override val boundValues: Array[(String, Any)] = boundVals
56-
override val classLoader: Option[ClassLoader] = Option(loader)
57-
}
48+
//def customConfig(
49+
// initCmds: List[String],
50+
// cleanupCmds: List[String],
51+
// boundVals: Array[(String, Any)],
52+
// loader: ClassLoader
53+
//) = new Config {
54+
// override val initialCommands: List[String] = initCmds
55+
// override val cleanupCommands: List[String] = cleanupCmds
56+
// override val boundValues: Array[(String, Any)] = boundVals
57+
// override val classLoader: Option[ClassLoader] = Option(loader)
58+
//}
5859

59-
def customRepl(cfg: Config): REPL = new REPL {
60-
override lazy val config = cfg
61-
}
60+
//def customRepl(cfg: Config): REPL = new REPL {
61+
// override lazy val config = cfg
62+
//}
6263

63-
def customRepl(
64-
initCmds: List[String],
65-
cleanupCmds: List[String],
66-
boundVals: Array[(String, Any)],
67-
loader: ClassLoader
68-
): REPL = customRepl(customConfig(initCmds, cleanupCmds, boundVals, loader))
64+
//def customRepl(
65+
// initCmds: List[String],
66+
// cleanupCmds: List[String],
67+
// boundVals: Array[(String, Any)],
68+
// loader: ClassLoader
69+
//): REPL = customRepl(customConfig(initCmds, cleanupCmds, boundVals, loader))
6970
}

0 commit comments

Comments
 (0)