Post 1244705 by espectalll@mstdn.io
 (DIR) More posts by espectalll@mstdn.io
 (DIR) Post #1242957 by espectalll@mstdn.io
       2018-11-16T08:27:30Z
       
       0 likes, 0 repeats
       
       I made a pretty decent Makefile for building Markdown documents, I like it :blobcatmelt: 💗
       
 (DIR) Post #1242996 by espectalll@mstdn.io
       2018-11-16T08:29:44Z
       
       0 likes, 0 repeats
       
       I have an issue yet, and it's that I made a `make run` just for IDEs like GNOME Builder where for some reason xdg-open won't open the PDF reader (Evince here), instead opening... w3m??? I dunno I have to figure that out
       
 (DIR) Post #1243043 by espectalll@mstdn.io
       2018-11-16T08:33:16Z
       
       0 likes, 0 repeats
       
       ok now it does nothing... no idea tbh x3
       
 (DIR) Post #1244115 by espectalll@mstdn.io
       2018-11-16T09:39:12Z
       
       0 likes, 0 repeats
       
       OK, seems like a GIO-related bughow do I debug GIO
       
 (DIR) Post #1244455 by espectalll@mstdn.io
       2018-11-16T10:03:02Z
       
       0 likes, 0 repeats
       
       I think I've found a bug somewhere on GNOMEbut where
       
 (DIR) Post #1244524 by Matthieu@mstdn.io
       2018-11-16T10:06:17Z
       
       0 likes, 0 repeats
       
       @espectalll between GNO and ME
       
 (DIR) Post #1244600 by madmalkav@mstdn.io
       2018-11-16T10:12:19Z
       
       0 likes, 0 repeats
       
       @espectalll on the source code, of course 😂
       
 (DIR) Post #1244606 by espectalll@mstdn.io
       2018-11-16T10:12:34Z
       
       0 likes, 0 repeats
       
       @madmalkav :shrug_yui:
       
 (DIR) Post #1244639 by espectalll@mstdn.io
       2018-11-16T10:15:00Z
       
       0 likes, 0 repeats
       
       So I've just installed the debug symbols and uhhhhhhhhhhhhhhit works now??????WHAT
       
 (DIR) Post #1244692 by hirnbrot@mstdn.io
       2018-11-16T10:18:20Z
       
       0 likes, 0 repeats
       
       @espectalll They debugged it, duh!
       
 (DIR) Post #1244695 by espectalll@mstdn.io
       2018-11-16T10:18:36Z
       
       0 likes, 0 repeats
       
       specifically, I'm on Debian Sid, and installed gnome-builder-dbgsym, libgtk-3-bin-dbgsym and libgtk-3-0-dbgsym :notlikemiya:
       
 (DIR) Post #1244699 by espectalll@mstdn.io
       2018-11-16T10:19:06Z
       
       0 likes, 0 repeats
       
       @hirnbrot :thinking_very_hard:
       
 (DIR) Post #1244705 by espectalll@mstdn.io
       2018-11-16T10:19:52Z
       
       0 likes, 0 repeats
       
       oh wellat least I have a fully working and beautiful Makefile now :blobcatsip:
       
 (DIR) Post #1244710 by espectalll@mstdn.io
       2018-11-16T10:20:16Z
       
       0 likes, 0 repeats
       
       I just wish I could somehow make this briefer but oh well
       
 (DIR) Post #1244719 by espectalll@mstdn.io
       2018-11-16T10:20:57Z
       
       0 likes, 0 repeats
       
       nvm it still fails lol
       
 (DIR) Post #1244924 by espectalll@mstdn.io
       2018-11-16T10:29:47Z
       
       0 likes, 0 repeats
       
       checking GNOME Builder's source code just to get what's going on inside :shrug_yui: https://gitlab.gnome.org/GNOME/gnome-builder/blob/d866396eaa2f192a1c42856d0a102ceec454deb0/src/plugins/make/make_plugin.py
       
 (DIR) Post #1244962 by espectalll@mstdn.io
       2018-11-16T10:31:37Z
       
       0 likes, 0 repeats
       
       I hope this is relevant https://gitlab.gnome.org/GNOME/gnome-builder/blob/d866396eaa2f192a1c42856d0a102ceec454deb0/src/plugins/make/make_plugin.py#L170
       
 (DIR) Post #1245057 by espectalll@mstdn.io
       2018-11-16T10:37:36Z
       
       0 likes, 0 repeats
       
       I think I get itI think GNOME Builder's GIO task for Make is killed before "gio run" can open the program it wants to launchlol
       
 (DIR) Post #1245085 by espectalll@mstdn.io
       2018-11-16T10:39:17Z
       
       0 likes, 0 repeats
       
       isn't there any better way to do this?
       
 (DIR) Post #1245257 by hirnbrot@mstdn.io
       2018-11-16T10:50:06Z
       
       0 likes, 0 repeats
       
       @espectalll I don't think there is.For me, anything I start via `xdg-open` _already_ seems to be detached from the terminal, but it seems to be my xdg-open "backend" (the DE-specific script it calls into, for me it's kde-open5) doing it (`dolphin .` blocks, `xdg-open .` doesn't).And that has drawbacks itself! Often you _want_ to wait for an application, e.g. in the case of $EDITOR.
       
 (DIR) Post #1245449 by espectalll@mstdn.io
       2018-11-16T11:01:44Z
       
       0 likes, 0 repeats
       
       opened a Gitlab ticket https://gitlab.gnome.org/GNOME/gnome-builder/issues/710
       
 (DIR) Post #1245520 by espectalll@mstdn.io
       2018-11-16T11:08:14Z
       
       0 likes, 0 repeats
       
       @hirnbrot but running the make from the terminal seems to be doing fine
       
 (DIR) Post #1245562 by hirnbrot@mstdn.io
       2018-11-16T11:12:53Z
       
       0 likes, 0 repeats
       
       @espectalll But that blocks, still, right?Because as I understood it the problem is that gnome-builder times out.But maybe it's not even that? Maybe it's reaping leftover processes once the first child exits or something, and for some reason with gio, it exits before starting the thing (in another process)?
       
 (DIR) Post #1245612 by espectalll@mstdn.io
       2018-11-16T11:16:14Z
       
       0 likes, 0 repeats
       
       @hirnbrot but again, it works
       
 (DIR) Post #1245622 by espectalll@mstdn.io
       2018-11-16T11:16:41Z
       
       0 likes, 0 repeats
       
       @hirnbrot (the child keeps just working on its own after make is closed)
       
 (DIR) Post #1245644 by hirnbrot@mstdn.io
       2018-11-16T11:19:21Z
       
       0 likes, 0 repeats
       
       @espectalll Okay, imagine `gio run` for some reason does:- fork()- in the parent, exit immediately- in the child, do some stuff and eventually exec()Outside of the terminal, builder notices that the parent has exited and goes "Oh, this must be done, no child must be left behind" and kills all its children, so it doesn't leak ressources.Inside of the terminal, normal terminal semantics apply, so that doesn't happen.
       
 (DIR) Post #1245660 by hirnbrot@mstdn.io
       2018-11-16T11:20:08Z
       
       0 likes, 0 repeats
       
       @espectalll Okay, imagine `gio run` for some reason does:- fork()- in the parent, exit immediately- in the child, do some stuff and eventually exec()Outside of the terminal, builder notices that the parent has exited and goes "Oh, this must be done, no child must be left behind" and kills all its children, so it doesn't leak ressources. This happens to kill the child that would exec() before it can.Inside of the terminal, normal terminal semantics apply, so that doesn't happen.
       
 (DIR) Post #1245710 by espectalll@mstdn.io
       2018-11-16T11:23:28Z
       
       0 likes, 0 repeats
       
       @hirnbrot I get that's probably the issue, what I don't get is why it behaves like that?
       
 (DIR) Post #1245723 by espectalll@mstdn.io
       2018-11-16T11:24:21Z
       
       0 likes, 0 repeats
       
       @hirnbrot ...although make is still running when the error is shown sooooooooooooooo :shrug_yui: see the ticket https://gitlab.gnome.org/GNOME/gnome-builder/issues/710
       
 (DIR) Post #1245760 by espectalll@mstdn.io
       2018-11-16T11:25:52Z
       
       0 likes, 0 repeats
       
       @hirnbrot (...it could be that for some reason it's trying to kill the PDF reader on its own, using the logic you've explained?)
       
 (DIR) Post #1245761 by hirnbrot@mstdn.io
       2018-11-16T11:26:06Z
       
       0 likes, 0 repeats
       
       @espectalll So it doesn't leak ressources (leaving a nonsensical running process is basically a memleak)? To simplify the plugin's job?This is basically what systemd does when told to exit a service, and this bug is akin to what happens when the Type= setting doesn't match (see https://jdebp.eu/FGA/unix-daemon-readiness-protocol-problems.html).
       
 (DIR) Post #1245780 by hirnbrot@mstdn.io
       2018-11-16T11:27:42Z
       
       0 likes, 0 repeats
       
       @espectalll I should probably make clear that all of that is pure conjecture. That makes some form of sense to me, and would basically explain what is happening.It's also possible there's something entirely different here - maybe `gio run` needs a terminal, or it needs some env var that builder removes or sets differently?So you're probably better off waiting for an answer to your bug.