Skip to content

Commit

Permalink
Merge pull request #4175 from cunei/wip-fix4148
Browse files Browse the repository at this point in the history
Fix for #4148 (SessionSettingsSpec intermittently fails)
  • Loading branch information
dwijnand committed May 29, 2018
2 parents 7e8e18b + f2a7e1f commit 17f5bc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/src/main/scala/sbt/internal/parser/SbtParser.scala
Expand Up @@ -148,7 +148,9 @@ private[sbt] object SbtParser {
reporter.reset()
val wrapperFile = new BatchSourceFile(reporterId, code)
val unit = new CompilationUnit(wrapperFile)
val parser = new syntaxAnalyzer.UnitParser(unit)
val parser = SbtParser.synchronized { // see https://github.com/sbt/sbt/issues/4148
new syntaxAnalyzer.UnitParser(unit)
}
val parsedTrees = SbtParser.synchronized { // see https://github.com/scala/bug/issues/10605
parser.templateStats()
}
Expand Down

0 comments on commit 17f5bc1

Please sign in to comment.