Zulip Chat Archive

Stream: general

Topic: Building lean3 on macos 10.14


Scott Morrison (Aug 20 2021 at 02:58):

Has anyone successfully built lean3 on macos recently? I get an error:

/Users/scott/projects/lean/lean/src/frontends/lean/widget.cpp:436:24: error: use of overloaded operator '+=' is ambiguous (with
      operand types 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') and 'json' (aka 'basic_json<>'))
                    cn += value;
                    ~~ ^  ~~~~~

in widget.cpp.

I think I'm following the vanilla build instructions...

Scott Morrison (Aug 20 2021 at 02:58):

I have a work-around that lets it compile, but then widgets are broken in VSCode.

Scott Morrison (Aug 20 2021 at 02:59):

I am using 10.14 still.

Gabriel Ebner (Aug 20 2021 at 07:44):

Does this work?

cn += value.get<std::string>();

Scott Morrison (Aug 20 2021 at 08:16):

Looks good.

https://github.com/leanprover-community/lean/pull/606


Last updated: Dec 20 2023 at 11:08 UTC