Zulip Chat Archive

Stream: lean4

Topic: Mysterious import failure


Patrick Massot (Sep 26 2022 at 08:53):

I have a new error message today when importing my library in some of my other projects:

import failed, environment already contains 'tactics._closed_6._cstage2'

Does someone know what those _closed_6 and _cstage2 could come from?

Mario Carneiro (Sep 26 2022 at 09:00):

those are auxiliary definitions containing IR for the compiler

Mario Carneiro (Sep 26 2022 at 09:00):

the important part is that you made the same definition in two imports

Mario Carneiro (Sep 26 2022 at 09:00):

you are just getting the error about the compiler decls slightly in advance of the same error saying that 'tactics' is also doubly defined

Patrick Massot (Sep 26 2022 at 09:01):

Thanks. A slightly more explicit error message would be useful.


Last updated: Dec 20 2023 at 11:08 UTC