Agda re-checks a file with an up-to-date interface file #7199
Labels
performance
Slow type checking, interaction, compilation or execution of Agda programs
regression in 2.6.2
Regression that first appeared in Agda 2.6.2
type: bug
Issues and pull requests about actual bugs
Milestone
Consider the following workflow:
B.agda
, which importsA.agda
, in (say) Emacs.A.agda
and type-check it by invoking Agda using a shell command.B.agda
in Emacs.In this case you might hope that
A.agda
should not be type-checked again (if the same options are in effect). However, I have observed that, in at least some cases, Agda does type-check the file again instead of loading the interface file.This is a regression, Agda 2.6.1.2 does not have this bug, but Agda 2.6.2 does. Bisection points towards @rwe's commit 7119290 ("imports/refact: Combine more conditions in getStoredInterface").
Here is a script that can be used to demonstrate the bug:
The text was updated successfully, but these errors were encountered: