Closed demarey closed 1 year ago
From what I've seen there are references to the Spec application (PharoLauncherApplication) aside from the Spec run/start methods. For example in PhLDownloadManager>>displayProgress:during:
. But there are others, like PhLError>>uiAlert
and PhLImage>>showWarning:
, etc.
Can we decouple things like job management (jobList senders) outside PharoLauncherApplication? So it will avoid creating a Spec application just for displaying progress, or alerting notifications.
Hi Hernan,
Indeed, we need a PharoLauncherApplication
that is an SpApplication
for user interaction like newConfim
, pushProgress:with:
, showError:
.
We should find a way to do not open presenters when in headless mode.
We should discuss with @estebanlm if he already had this use case.
I would say is arguably a program problem, not a spec problem. you need to refactor your program to act accordingly to the ui you have. Spec is for graphic applications and while I dream to have a TUI backend (I even started to do a prototype with Pavel ;), this is not something that will happen anytime soon.
my understanding of your problem is that you are using self application newInform... etc. to give some feedback, isn't? then, I would refactor the app to have a stub non-GUI application object that can handle those messages and answer what is appropriated. mmm... Let me know if what I am writing is clear, I am just assuming here :P
fixed by 64288ff9305883fa961e2376fc85f3bf1c42ace3, b2abc11bf6aba4f240b2142b16cb90f9ddbb15c9 and 1408328984a0d19f26a9354641264f77c50b7f37 but also 2d47ed8e4119ff7eaf58a8cec670107d853f0f8d
Currently, when running Pharo Launcher by command-line,
a log appears on the console:
It looks like
PhLImageDescriptionUpdater
is active while in CLI mode. Also, debugging this (by modifying the pharo-launcher script to not run clap but allowing eval arguments) shows that there are instances of PhLImagesPresenter still alive.