Skip to content

Commit 18b69a5

Browse files
authored
Merge pull request #2859 from dotty-staging/sbt-dotty-0.1.4
Release sbt-dotty 0.1.4
2 parents f6c1461 + 52d8117 commit 18b69a5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ object Build {
899899

900900

901901
sbtPlugin := true,
902-
version := "0.1.3",
902+
version := "0.1.4",
903903
ScriptedPlugin.scriptedSettings,
904904
ScriptedPlugin.sbtTestDirectory := baseDirectory.value / "sbt-test",
905905
ScriptedPlugin.scriptedBufferLog := false,

sbt-dotty/src/dotty/tools/sbtplugin/DottyIDEPlugin.scala

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,14 @@ object DottyIDEPlugin extends AutoPlugin {
239239
runProcess(codeCommand.value ++ Seq("."), directory = baseDirectory.value)
240240
} catch {
241241
case ioex: IOException if ioex.getMessage.startsWith("""Cannot run program "code"""") =>
242-
throw new MessageOnlyException(
242+
val log = streams.value.log
243+
log.error(
243244
"""Could not find Visual Studio Code on your system.
244-
|Please download it at (https://code.visualstudio.com/) and add it to your path and then rerun launchIDE
245-
|
246-
|For Linux: https://code.visualstudio.com/docs/setup/linux
247-
|For Windows: https://code.visualstudio.com/docs/setup/windows
248-
|For Mac: https://code.visualstudio.com/docs/setup/mac""".stripMargin)
245+
|Follow the instructions at http://dotty.epfl.ch/docs/usage/ide-support.html
246+
|to install it.""".stripMargin)
247+
throw new FeedbackProvidedException {
248+
override def toString = "Could not find Visual Studio Code on your system."
249+
}
249250
}
250251
}
251252

0 commit comments

Comments
 (0)