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

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
pragdave
How do I tell Hologram not to escape HTML when substituting into templates? {Textile.render(@product.long_description)} escapes the HTM...
New
rlipscombe
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
rlipscombe
When I use Mix.install with a git dependency, using git@github.com:... how do I change the SSH identity used? I’ve got two Github accoun...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews