Skip to content

Commit

Permalink
Use inputs from args if processing using directives throws error
Browse files Browse the repository at this point in the history
  • Loading branch information
lwronski committed Jul 12, 2022
1 parent 6d700c4 commit 1690c34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/cli/src/main/scala/scala/cli/commands/Bsp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object Bsp extends ScalaCommand[BspOptions] {
val logger = sharedOptions.logging.logger
val persistentLogger = new PersistentDiagnosticLogger(logger)

val allInputs = value {
val allInputs =
CrossSources.forInputs(
initialInputs,
Sources.defaultPreprocessors(
Expand All @@ -50,8 +50,7 @@ object Bsp extends ScalaCommand[BspOptions] {
buildOptions0.internal.javaClassNameVersionOpt
),
persistentLogger
).map(_._2)
}
).map(_._2).getOrElse(initialInputs)

Build.updateInputs(allInputs, buildOptions(sharedOptions))
}
Expand Down

0 comments on commit 1690c34

Please sign in to comment.