dvic

dvic

Is there a known issue with :observer with Elixir 1.15 that I’m unaware of? I’ve added :observer to :extra_applications but it gives this error:

iex(1)> :observer.start
** (UndefinedFunctionError) function :wx_object.start/3 is undefined (module :wx_object is not available)
    :wx_object.start(:observer_wx, [], [])
    (observer 2.15.1) observer_wx.erl:70: :observer_wx.start/0
    iex:1: (file)

If I start just iex (as opposed to iex -S mix), it works just fine. Is there something else I must add to the mix config?

Showing Posts 1 to 10

LostKobrakai

LostKobrakai

:observer is a module in the :runtime_tools application. You’d need to add the latter.

kotolex_23

kotolex_23

works for me

extra_applications: [:logger, :wx, :observer, :runtime_tools]
dvic

dvic OP

Thanks! I had :runtime_tools but missed :wx, it works!

axelson

axelson

Scenic Core Team

If you don’t want to modify your application you could also run this in IEx:

Mix.ensure_application!(:wx)
Mix.ensure_application!(:runtime_tools)
Mix.ensure_application!(:observer)
:observer.start()
23
Post #4
josevalim

josevalim

Creator of Elixir

I can confirm that, from Erlang/OTP 27, only:

Mix.ensure_application!(:observer)
:observer.start()

is required.

24
Post #5
harrisi

harrisi

This does seem to work, but it’s still necessary to include both :wx and :observer in :extra_applications. Is this intended?

josevalim

josevalim

Creator of Elixir

I did some tests locally and that did not seem to be required, only Mix.ensure_application!(:observer); :observer.start() from Erlang/OTP 27.

harrisi

harrisi

Sorry, I wasn’t very clear. What I mean is that the following works:

$ mix new foo && cd foo
$ iex -S mix
iex> Mix.ensure_application!(:observer); :observer.start()

But this doesn’t:

$ mix new foo && cd foo
$ vim mix.exs # or whatever
# add :observer to :extra_applications list in application/0
$ iex -S mix
iex> :observer.start()

I thought both should work, and the docs for Mix.ensure_application!/1 sort of imply they’re typically functionally equivalent.

josevalim

josevalim

Creator of Elixir

You need to add :wx to extra applications because it is an optional dependency of :observer. The ensure_application! also considers optional dependencies.

ppicom

ppicom

Hi there! :wave:

I might misunderstood what you said there, but despite running Erlang/OTP 27 and Elixir 1.17 it still seems that :observer is not enough:

iex -S mix
iex(1)> Mix.ensure_application!(:observer)
:ok
iex(2)> :observer.start()
** (UndefinedFunctionError) function :wx_object.start/3 is undefined (module :wx_object is not available)
    :wx_object.start(:observer_wx, [], [])
    (observer 2.16) observer_wx.erl:71: :observer_wx.start/0
    iex:2: (file)

From what I understand from this:

Is that Mix.ensure_application!(:observer) should be failing due to :wx not being there. Is that correct?

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews