diff --git a/backend/src/main/scala/bloop/reporter/DefaultReporterFormat.scala b/backend/src/main/scala/bloop/reporter/DefaultReporterFormat.scala index 8030a40785..16f1fdc30c 100644 --- a/backend/src/main/scala/bloop/reporter/DefaultReporterFormat.scala +++ b/backend/src/main/scala/bloop/reporter/DefaultReporterFormat.scala @@ -25,8 +25,10 @@ object DefaultReporterFormat extends (ConfigurableReporter => ReporterFormat) { class DefaultReporterFormat(reporter: ConfigurableReporter) extends ReporterFormat(reporter) { protected def formatSourcePath(problem: Problem): Option[String] = - problem.position.pfile.map { f => - colored(reporter.config.sourcePathColor, f) + problem.position.pfile.map { filePath => + val line = toOption(problem.position.line).map(":" + _).getOrElse("") + val column = toOption(problem.position.pointer).map(o => s":${o + 1}").getOrElse("") + colored(reporter.config.sourcePathColor, filePath) + s"$line$column" } protected def formatSource(problem: Problem): Option[String] =