I have an issue similar to :observer.start
crashes Erlang VM
Below is my error message.
iex(3)> :observer.start
{:error,
{{:load_driver,
'dlopen(/Users/x/.asdf/installs/erlang/22.0.7/lib/wx-1.8.8/priv/wxe_driver.so, 2): Library not loaded: /usr/local/opt/wxmac/lib/libwx_osx_cocoau_stc-3.0.dylib\n Referenced from: /Users/x/.asdf/installs/erlang/22.0.7/lib/wx-1.8.8/priv/wxe_driver.so\n Reason: image not found'},
[
{:wxe_server, :start, 1,
[file: 'wxe_server.erl', line: 65]},
{:wx, :new, 1, [file: 'wx.erl', line: 115]},
{:observer_wx, :init, 1,
[file: 'observer_wx.erl', line: 107]},
{:wx_object, :init_it, 6,
[file: 'wx_object.erl', line: 372]},
{:proc_lib, :init_p_do_apply, 3,
[file: 'proc_lib.erl', line: 249]}
]}}
The error message shows I am using erlang 22.
But, my .tool-versions
shows;
My erlang 23.2.7
elixir 1.11.4-otp-23
And, I have installed several elixir/erlang versions using asdf;
❯ asdf list elixir
1.11.3-otp-23
1.11.4-otp-23
1.9.1-otp-22
❯ asdf list erlang
22.0.7
23.2.7
Clearly there is a mismatching between .tool-versions
and the erlang version in the error message. How to match it?
If I try to match them, then there arises the same issue as :observer.start() broken after updating wxWidgets, but can’t solve the issue using the suggested solution in the topic.
Any suggestion shall be appreciated. Thank you egze for the comment before.
Thanks!