Zulip Chat Archive

Stream: general

Topic: add source folder


Mark Ettinger (Feb 18 2026 at 00:42):

How do I add a new source folder in the main project directory? I created a folder with new .lean files but I'm getting the error "unknown module prefix" when I try to "import NewDirectory.NewMyFile".

Yury G. Kudryashov (Feb 18 2026 at 02:50):

You need to add it as a library to lakefile.toml or lakefile.lean.


Last updated: Feb 28 2026 at 14:05 UTC