Zulip Chat Archive

Stream: lean4

Topic: macOS installation


josedeodo (Sep 29 2023 at 03:35):

I suppose that I have installed lean4,but when I type source ~/.bash_profile in the terminal, it shows that no such file or directory.so how can I deal with it?

Notification Bot (Sep 29 2023 at 03:38):

josedeodo has marked this topic as resolved.

Alexander Kurz (Sep 29 2023 at 03:43):

Hi, I am new to lean. I followed the instructions at https://leanprover-community.github.io/install/macos_details.html for lean4 in vscode. I created a file test.lean which contains one line #eval 1+1 . The instructions say "A green line should appear underneath #eval 1+1, and hovering the mouse over it you should see 2 displayed." but there is no green line. Instead the #eval is underlined with a blue curly line. Any ideas what I could try?

josedeodo (Sep 29 2023 at 03:47):

Alexander Kurz 发言道

Hi, I am new to lean. I followed the instructions at https://leanprover-community.github.io/install/macos_details.html for lean4 in vscode. I created a file test.lean which contains one line #eval 1+1 . The instructions say "A green line should appear underneath #eval 1+1, and hovering the mouse over it you should see 2 displayed." but there is no green line. Instead the #eval is underlined with a blue curly line. Any ideas what I could try?

Nice to meet you.I just type in the terminal "/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/leanprover-community/mathlib4/master/scripts/install_macos.sh)" && source ~/.profile".and it woks ,but I do not know how to do next.Maybe you could try this way?

Alexander Kurz (Sep 29 2023 at 04:33):

josedeodo said:

Alexander Kurz 发言道

Hi, I am new to lean. I followed the instructions at https://leanprover-community.github.io/install/macos_details.html for lean4 in vscode. I created a file test.lean which contains one line #eval 1+1 . The instructions say "A green line should appear underneath #eval 1+1, and hovering the mouse over it you should see 2 displayed." but there is no green line. Instead the #eval is underlined with a blue curly line. Any ideas what I could try?

Nice to meet you.I just type in the terminal "/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/leanprover-community/mathlib4/master/scripts/install_macos.sh)" && source ~/.profile".and it woks ,but I do not know how to do next.Maybe you could try this way?

Thanks. But I am not sure what your advice is. Do you suggest that I install lean again using the curl command?

josedeodo (Sep 29 2023 at 04:34):

Alexander Kurz 发言道

josedeodo said:

Alexander Kurz 发言道

Hi, I am new to lean. I followed the instructions at https://leanprover-community.github.io/install/macos_details.html for lean4 in vscode. I created a file test.lean which contains one line #eval 1+1 . The instructions say "A green line should appear underneath #eval 1+1, and hovering the mouse over it you should see 2 displayed." but there is no green line. Instead the #eval is underlined with a blue curly line. Any ideas what I could try?

Nice to meet you.I just type in the terminal "/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/leanprover-community/mathlib4/master/scripts/install_macos.sh)" && source ~/.profile".and it woks ,but I do not know how to do next.Maybe you could try this way?

Thanks. But I am not sure what your advice is. Do you suggest that I install lean again using the curl command?

yes.try it?

Notification Bot (Sep 29 2023 at 04:35):

josedeodo has marked this topic as unresolved.

josedeodo (Sep 29 2023 at 04:37):

josedeodo 发言道

Alexander Kurz 发言道

josedeodo said:

Alexander Kurz 发言道

Hi, I am new to lean. I followed the instructions at https://leanprover-community.github.io/install/macos_details.html for lean4 in vscode. I created a file test.lean which contains one line #eval 1+1 . The instructions say "A green line should appear underneath #eval 1+1, and hovering the mouse over it you should see 2 displayed." but there is no green line. Instead the #eval is underlined with a blue curly line. Any ideas what I could try?

Nice to meet you.I just type in the terminal "/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/leanprover-community/mathlib4/master/scripts/install_macos.sh)" && source ~/.profile".and it woks ,but I do not know how to do next.Maybe you could try this way?

Thanks. But I am not sure what your advice is. Do you suggest that I install lean again using the curl command?

yes.try it?

but I have not address my own problem.my English is so poor///

Chris Wong (Sep 29 2023 at 04:52):

Alexander Kurz said:

... The instructions say "A green line should appear underneath #eval 1+1, and hovering the mouse over it you should see 2 displayed." but there is no green line. Instead the #eval is underlined with a blue curly line. Any ideas what I could try?

What does the tooltip say when you hover over it?
It could be that the blue curly line is the right behavior now, and the instructions are just out of date.

Notification Bot (Sep 29 2023 at 04:52):

ming has marked this topic as resolved.

Notification Bot (Sep 29 2023 at 04:52):

ming has marked this topic as unresolved.

Yaël Dillies (Sep 29 2023 at 05:59):

Green and blue are supposed to be the same, yeah.

Alexander Kurz (Sep 29 2023 at 06:07):

Chris Wong said:

Alexander Kurz said:

... The instructions say "A green line should appear underneath #eval 1+1, and hovering the mouse over it you should see 2 displayed." but there is no green line. Instead the #eval is underlined with a blue curly line. Any ideas what I could try?

What does the tooltip say when you hover over it?
It could be that the blue curly line is the right behavior now, and the instructions are just out of date.

Thanks for the question. When I hover I do see the correct answer 2. The "PROBLEMS" pane in vscode flags a problem albeit without anything specific about what the problem could be.

Alexander Kurz (Sep 29 2023 at 06:08):

Yaël Dillies said:

Green and blue are supposed to be the same, yeah.

What I see is also not a line ... it is this twiggle shape that is used by IDEs to indicate an error of some kind.

Yaël Dillies (Sep 29 2023 at 06:27):

That's completely expected. A squiggly line is a line.

Kevin Buzzard (Sep 29 2023 at 06:33):

Can anyone who is still having problems in this thread post a screenshot? I've never seen a green squiggly line in my life. Blue sounds fine.

Yaël Dillies (Sep 29 2023 at 06:36):

It's all green or blue or turquoise. I suspect whoever wrote that documentation simply had slightly different color boundaries in mind.

Ruben Van de Velde (Sep 29 2023 at 07:27):

Should look like one of these:
dark
light

josedeodo (Sep 29 2023 at 13:11):

josedeodo 发言道

I suppose that I have installed lean4,but when I type source ~/.bash_profile in the terminal, it shows that no such file or directory.so how can I deal with it?

截屏2023-09-29-21.08.42.png
so what's going on in this terminal? I feel this speed is rather slow...

Alex J. Best (Sep 29 2023 at 14:08):

I can't think of anything lean specific that would slow this down, maybe your connection is just slow at the moment

Alex J. Best (Sep 29 2023 at 14:09):

This can be an issue as lean versions are released regularly, so you may want to only download the one you actually need for whatever project you are running

josedeodo (Oct 13 2023 at 13:47):

“Failed to connect to raw.githubusercontent.com port 443 after 8 ms: Couldn't connect to server”,is there any problems with my internet? I thought I should have climb up THE WALL.


Last updated: Dec 20 2023 at 11:08 UTC