Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sjsonnet/src-jvm-native/sjsonnet/SjsonnetMainBase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ object SjsonnetMainBase {
logger = warnLogger,
std = std,
variableResolver = _ => None,
debugStats = debugStats
debugStats = debugStats,
formatCache = FormatCache.SharedDefault
) {
override def createEvaluator(
resolver: CachedResolver,
Expand Down
8 changes: 5 additions & 3 deletions sjsonnet/src/sjsonnet/Evaluator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class Evaluator(
val wd: Path,
val settings: Settings,
logger: Evaluator.Logger = null,
val debugStats: DebugStats = null)
val debugStats: DebugStats = null,
override val formatCache: FormatCache = FormatCache.SharedDefault)
extends EvalScope {
implicit def evalScope: EvalScope = this
def importer: CachedImporter = resolver
Expand Down Expand Up @@ -1256,8 +1257,9 @@ class NewEvaluator(
private val w: Path,
private val s: Settings,
private val wa: Evaluator.Logger = null,
ds: DebugStats = null)
extends Evaluator(r, e, w, s, wa, ds) {
ds: DebugStats = null,
fc: FormatCache = FormatCache.SharedDefault)
extends Evaluator(r, e, w, s, wa, ds, fc) {

override def visitExpr(e: Expr)(implicit scope: ValScope): Val = try {
(e.tag: @switch) match {
Expand Down
Loading