Zulip Chat Archive
Stream: new members
Topic: problem when create new lean project
Esteban Estupinan (May 31 2023 at 16:30):
Hi all please your help. I m trying to create a new project in Lean, the leanproject new command works, but when I m trying to import for example topology it appears and error "not found in the search path". The project have leanpkg.path and leanpkg.toml files but but it still doesn't work. The project that I want to create is in the location C:\Users\Esteban\Documents\theartofproofLean, Elan folder is in the location C:\Users\Esteban\.elan. What would be the solution for this problem? Or where is the error why the new project is not executed? I attach screenshots. Kind regards
imagen.png
imagen.png
imagen.png
Richard Hill (May 31 2023 at 16:40):
I think this might be because "topology" is a folder in mathlib, not a file. You could try "import topology.basic" (for example) instead.
Esteban Estupinan (May 31 2023 at 16:48):
ok but the error is the same
imagen.png
Julian Berman (May 31 2023 at 17:04):
What are you intending to import, is it indeed the topology.basic
file from mathlib? What's in your leanpkg.toml
file? And if you run leanproject build
what happens?
Esteban Estupinan (May 31 2023 at 17:10):
amm the error is the same
imagen.png
Esteban Estupinan (May 31 2023 at 17:11):
Julian Berman (May 31 2023 at 17:44):
That actually looks like it didn't error, that looks like it succeeded.
If you restart VSCode does that happen to help?
Esteban Estupinan (May 31 2023 at 17:50):
i try it but is the same i believe maybe is a path but i dont know where is the error
Julian Berman (May 31 2023 at 17:59):
Oh wait, that screenshot I think is saying you opened the theartofproofLean
folder as your project, but that's not your project, you have to open tablero
Esteban Estupinan (May 31 2023 at 19:04):
Yes open in tablero the errors are done, thank you Julian for your help
Julian Berman (May 31 2023 at 19:12):
Great, glad to hear it.
Last updated: Dec 20 2023 at 11:08 UTC