mirror of https://github.com/sbt/sbt.git
avoid IntelliJ marking valid code as erroneous
relative imports and "println _" cause error highlighting in IntelliJ
This commit is contained in:
parent
e250cf51ca
commit
cfecf1f6b9
|
|
@ -27,7 +27,7 @@ import sbt.internal.{
|
|||
import sbt.internal.util.{ AttributeKey, AttributeMap, complete, ConsoleOut, GlobalLogging, LineRange, MainAppender, SimpleReader, Types }
|
||||
import sbt.util.{ Level, Logger }
|
||||
|
||||
import complete.{ DefaultParsers, Parser }
|
||||
import sbt.internal.util.complete.{ DefaultParsers, Parser }
|
||||
import sbt.internal.inc.{ CompilerCache, ScalaInstance }
|
||||
import sbt.compiler.EvalImports
|
||||
import Types.{ const, idFun }
|
||||
|
|
@ -356,7 +356,7 @@ object BuiltinCommands {
|
|||
val extracted = Project extract s
|
||||
import extracted.{ showKey, structure }
|
||||
val keysParser = token(flag("--last" <~ Space)) ~ Act.aggregatedKeyParser(extracted)
|
||||
val show = Aggregation.ShowConfig(settingValues = true, taskValues = false, print = println _, success = false)
|
||||
val show = Aggregation.ShowConfig(settingValues = true, taskValues = false, print = println(_), success = false)
|
||||
for {
|
||||
lastOnly_keys <- keysParser
|
||||
kvs = Act.keyValues(structure)(lastOnly_keys._2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue