You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it seems that it would take me 2-3 more days to fully implement it, which I do not have atm. This issue would require a very careful refactoring of incremental compilation.
@bugarela, do you think it would make sense to add an error message in REPL that import... from... is not supported? That should be relatively easy to do.
We have quint -r foo.qnt::qnt and .load in REPL. So supporting import... from... is not critical, though it would definitely make REPL more delightful :)
konnov
changed the title
import in REPL does not workimport... from... in REPL does not work
Sep 25, 2023
Alternatively, we could disable incremental compilation for import ... from ..., that is, whenever that sort of declaration is evaluated by the REPL, we re-evaluate the whole thing (non-incrementally). I'm not sure, but that should be relatively easy to do.
It looks like we have dismantled support for imports from files in REPL, when we made it incremental.
Consider a simple spec:
Suppose that the following command works for
foo.qnt
:The following command, which should be equivalent, does not work:
The text was updated successfully, but these errors were encountered: