Giter Club home page Giter Club logo

Comments (12)

digama0 avatar digama0 commented on September 23, 2024

It sounds like it is confusing the notation '' used for function image with an empty character literal. Does import data.set.basic work?

from mathlib.

adhalanay avatar adhalanay commented on September 23, 2024

Yes, it does work.

from mathlib.

johoelzl avatar johoelzl commented on September 23, 2024

Do you compile the most recent mathlib using leanpkg build?
It works for me without problem. Do you have any changes in mathlib?

from mathlib.

adhalanay avatar adhalanay commented on September 23, 2024

Yes. I did exactly that:
leanpkg add https://github.com/leanprover/mathlib
then
leanpkg build. I did no changes to mathlib.

from mathlib.

kbuzzard avatar kbuzzard commented on September 23, 2024

If you just create a file test.lean with "import analysis.real" and then type lean test.lean are there any problems? I am using lean linux nightly (my output of lean --version is Lean (version 3.3.1, commit 07bb7d809b6b, Release)) and mathlib HEAD and if I run this in a directory with an appropriate leanpkg.path then it works fine for me.

from mathlib.

kbuzzard avatar kbuzzard commented on September 23, 2024

Another idea -- why not try removing all .olean files in your mathlib (and then making them again with the current version of leanpkg if you want)? In the past .olean files compiled with previous versions of Lean have caused pretty random problems which were hard to debug.

from mathlib.

adhalanay avatar adhalanay commented on September 23, 2024

If you just create a file test.lean with "import analysis.real" and then type lean test.lean are there any problems? I am using lean linux nightly (my output of lean --version is Lean (version 3.3.1, commit 07bb7d809b6b, Release)) and mathlib HEAD and if I run this in a directory with an appropriate leanpkg.path then it works fine for me.

Indeed, running lean (exactly the same version here) from the command line works fine (i.e. no errors)

from mathlib.

kbuzzard avatar kbuzzard commented on September 23, 2024

Do you mean "I can import analysis.real with no errors if I do it from the command line"? If so, then the issue is with your IDE set-up I guess. But if you mean "I can run lean --version no problem" then what happens if you try to import analysis.real from the command line?

from mathlib.

adhalanay avatar adhalanay commented on September 23, 2024

I meant the first thing: "I can import analysis.real with no errors if I do it from the command line". So it seams to be a problem in Visual Studio config.

from mathlib.

kbuzzard avatar kbuzzard commented on September 23, 2024

So in VS Code, File->Preferences->Settings will open user settings and you can see the value attached to "lean.executablePath" to check to see if you are using the right lean. Another gotcha is that if you open a folder with File -> Open Folder and if this folder has a leanpkg.path in then I think this overwrites any LEAN_PATH system variable which you might have set, and in this case you might be using the wrong mathlib. Try opening the root dir of your project with File -> Open Folder and see if this fixes it. These things are very fiddly to set up :-/

from mathlib.

adhalanay avatar adhalanay commented on September 23, 2024

Actually, the problem laid in the fact that running leanpkg build in the top directory of the project did not compiled mathlib. One needs to go to _target/deps/mathlib and run it from there. So I think the issue can be closed now.

from mathlib.

kevinsullivan avatar kevinsullivan commented on September 23, 2024

Use lean --make instead of leanpkg build

from mathlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.