mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
incorporate PosIdx changes, symbol changes.
This commit is contained in:
parent
6e19947993
commit
2a5632c70d
8 changed files with 204 additions and 125 deletions
|
@ -126,7 +126,7 @@ ref<EvalState> EvalCommand::getEvalState()
|
|||
new DebugTraceStacker(
|
||||
*evalState,
|
||||
DebugTrace
|
||||
{.pos = (error->info().errPos ? *error->info().errPos : *expr.getPos()),
|
||||
{.pos = (error->info().errPos ? *error->info().errPos : evalState->positions[expr.getPos()]),
|
||||
.expr = expr,
|
||||
.env = env,
|
||||
.hint = error->info().msg,
|
||||
|
@ -139,7 +139,7 @@ ref<EvalState> EvalCommand::getEvalState()
|
|||
|
||||
if (expr.staticenv)
|
||||
{
|
||||
std::unique_ptr<valmap> vm(mapStaticEnvBindings(*expr.staticenv.get(), env));
|
||||
std::unique_ptr<valmap> vm(mapStaticEnvBindings(evalState->symbols, *expr.staticenv.get(), env));
|
||||
runRepl(evalState, expr, *vm);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue