| 28 Jul 2025 |
raitobezarius (DECT: 7248) | extern Logger* logger (I'm talking about this one) | 21:16:09 |
jade_ | weird that our code isnt fucked | 21:16:15 |
raitobezarius (DECT: 7248) | you can do the very simple experience by checking out the mTLS CL | 21:16:19 |
raitobezarius (DECT: 7248) | remove flat_namespace | 21:16:20 |
raitobezarius (DECT: 7248) | add the plugin | 21:16:22 |
raitobezarius (DECT: 7248) | and sprinkle printInfo("hello world") | 21:16:29 |
raitobezarius (DECT: 7248) | and observe nothing happens | 21:16:32 |
jade_ | nothing happens is a very weird outcome | 21:16:43 |
jade_ | i would hope it to crash instead | 21:16:57 |
raitobezarius (DECT: 7248) | maybe something something min macos version idk | 21:17:07 |
raitobezarius (DECT: 7248) | but also | 21:17:15 |
raitobezarius (DECT: 7248) | maybe if ((level) <= nix::verbosity) | 21:17:19 |
raitobezarius (DECT: 7248) | idk | 21:17:20 |
raitobezarius (DECT: 7248) | maybe it exec and just lives its best life | 21:17:26 |
jade_ | yeah printInfo might not do anything?? but if you fix it by messing with the link args then surely it's not that.
i would have to look at it with instruction level step through with a debugger tbh | 21:17:52 |
jade_ | but im currently banging rocks together (writing terraform at work to get gerrit for OSS stuff) | 21:18:12 |
raitobezarius (DECT: 7248) | nix::verbosity is just extern Verbosity verbosity tho | 21:18:14 |
raitobezarius (DECT: 7248) | it's fine | 21:18:28 |
raitobezarius (DECT: 7248) | https://git.lix.systems/lix-project/lix/issues/941 | 22:01:45 |
emily | is nix_plugin_entry not that? | 22:14:26 |
emily | (I am looking at the plugin code for the first time) | 22:14:30 |
raitobezarius (DECT: 7248) | yes | 22:14:36 |
raitobezarius (DECT: 7248) | but logger doesn't work at that point | 22:14:46 |
raitobezarius (DECT: 7248) | and I don't see what facilities do we have to initialize the logger | 22:14:52 |
raitobezarius (DECT: 7248) | and if we plan to reuse the Lix's logger | 22:14:58 |
raitobezarius (DECT: 7248) | then it's clearly not accessible | 22:15:03 |
emily | could you show me the command used to link the plugin btw? | 22:15:52 |
emily | I half suspect Meson. Meson has some weird ideas about macOS | 22:16:18 |
emily | in particular | 22:16:27 |
emily |
This is useful for building modules that will be dlopen()ed and hence may contain undefined symbols that will be provided by the library that is loading it.
| 22:16:32 |