| 28 Jul 2025 |
raitobezarius | i get the proper handle to _nix_plugin_entry | 21:15:02 |
jade_ | then you shouldn't need the static initializer right? | 21:15:02 |
raitobezarius | what init sequence do we offer for plugin? | 21:15:19 |
raitobezarius | how do I init the logger? | 21:15:23 |
jade_ | you shouldn't need to? you use the one from nix::logger | 21:15:39 |
jade_ | and let the rest of the nix deal wtih it | 21:15:46 |
raitobezarius | ok, it's busted | 21:15:48 |
raitobezarius | using Nix's logger doesn't work | 21:15:58 |
jade_ | O_o | 21:16:01 |
raitobezarius | extern Logger* logger (I'm talking about this one) | 21:16:09 |
jade_ | weird that our code isnt fucked | 21:16:15 |
raitobezarius | you can do the very simple experience by checking out the mTLS CL | 21:16:19 |
raitobezarius | remove flat_namespace | 21:16:20 |
raitobezarius | add the plugin | 21:16:22 |
raitobezarius | and sprinkle printInfo("hello world") | 21:16:29 |
raitobezarius | 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 | maybe something something min macos version idk | 21:17:07 |
raitobezarius | but also | 21:17:15 |
raitobezarius | maybe if ((level) <= nix::verbosity) | 21:17:19 |
raitobezarius | idk | 21:17:20 |
raitobezarius | 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 | nix::verbosity is just extern Verbosity verbosity tho | 21:18:14 |
raitobezarius | it's fine | 21:18:28 |
raitobezarius | 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 |