Zulip Chat Archive

Stream: new members

Topic: how to import


Paul Chisholm (May 12 2021 at 07:27):

I have two Lean modules, call then A and B, and B imports A with 'import A'. When I do this a blue wavy line appears underneath the word 'import' and the message 'configuring Test 0.1' is written to the problems area. I have also tried 'import .A' and 'import ./A' with the same result.

I am using Lean 4 nightly for 12th May and VSC Lean 4 extension v0.0.26 on MacOS.

Yakov Pechersky (May 12 2021 at 12:07):

You have to do import PackageName.A, where PackageName is the name of the folder which is also the package name in the configuration file. I think.

Kevin Buzzard (May 12 2021 at 12:29):

you'll do better off in the #lean4 stream


Last updated: Dec 20 2023 at 11:08 UTC