!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

296 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.104 Servers

Load older messages


SenderMessageTime
9 Dec 2024
@irenes:matrix.orgIrenesoh22:39:51
@irenes:matrix.orgIrenesI thought I deleted that but I accidentally sent it22:39:56
@irenes:matrix.orgIrenessigh22:39:58
@irenes:matrix.orgIrenesI was going to volunteer to review CLs because that's one of the few things so well-defined that I can reliably find spoons for it despite everything going on in my life22:40:25
@irenes:matrix.orgIrenesI guess I do want to volunteer for that22:40:36
@irenes:matrix.orgIrenesbut like, add me as a reviewer on your CL if you want me to do that, I am not going to parachute in and start reviewing things I haven't been asked to, I think that would have a very bad success rate in terms of being what anyone wants22:41:27
@charles:computer.surgeryCharles

i have a suspicion that a lot of parts of pytest could be reused

fwiw, i find maintaining pytest test suites to be very difficult because of fixtures; they seem to make people make weird choices that become really hard to untangle later when things change that would be less of a problem with normal functions, and also they don't cooperate with lsp servers at all (at least, not the ones i know of)

23:47:46
10 Dec 2024
@9999years:matrix.org9999years you can give them type annotations and then you can at least get autocomplete 00:44:21
@9999years:matrix.org9999yearsbut nothing actually checks them00:44:25
@charles:computer.surgeryCharles IME, go-to-references and go-to-definition don't work, there's no guarantee that the fixture argument type signature match the type signature of the fixture definition, there's nothing to statically check the existence of a fixture, especially with things like autouse and such 00:46:03
@raitobezarius:matrix.orgraitobezarius piegames i think there's a big regression due to the introduction of shadow-internal-symbols 09:49:14
@raitobezarius:matrix.orgraitobezariusall repositories using niv are broken right now09:49:21
@raitobezarius:matrix.orgraitobezarius because they do hasThisAsNixpkgsPath = <nixpkgs> == ./.; 09:49:31
@raitobezarius:matrix.orgraitobezarius which gets interpreted as a shadowing of __findFile 09:49:37
@piegames:flausch.socialpiegamesI'm fairly certain the logic is correct w.r.t. its intent. Which if true, would mean that they are overriding __findFile somewhere?09:50:38
@piegames:flausch.socialpiegames Alternatively it could be that the logic has a fuckup when used scopedImport. ScopedImport is notoriously brittle 09:51:31
@piegames:flausch.socialpiegamesCan you link to the respective Niv code or a reproducer?09:51:43
@puck:puck.moepuck
In reply to @piegames:flausch.social
Alternatively it could be that the logic has a fuckup when used scopedImport. ScopedImport is notoriously brittle
the StaticEnv built by scopedImport isn't marked as root, indeed; and i am going to assume this is in fact the TVL repo, which uses scopedImport to override __findFile
11:35:45
@puck:puck.moepuck * the StaticEnv built by scopedImport isn't marked as root, indeed; and i am going to assume this is in fact the TVL repo, which uses scopedImport to override __findFile, and then uses the niv sources.nix 11:36:41
@piegames:flausch.socialpiegamesI mean not marking it as root was a deliberate decision, but if people actually use this shit we can maybe revert it for now11:38:58
@puck:puck.moepuck the thing that's very funny is, it's explicitly overridden to avoid people using __findFile 11:39:24
@puck:puck.moepuck scopedArgs.__findFile = _: _: throw "Do not import from NIX_PATH in the depot!"; 11:39:47
@piegames:flausch.socialpiegamesLol11:40:33
@piegames:flausch.socialpiegamesThis should be a static lint tbh11:41:08
@raitobezarius:matrix.orgraitobezarius https://git.lix.systems/lix-project/lix/issues/599 for the upstream bug 11:48:20
@piegames:flausch.socialpiegamesI still don't understand why the Niv error happens, or where the override happens11:51:14
@raitobezarius:matrix.orgraitobezariusthe override happens in TVL default.nix11:51:22
@raitobezarius:matrix.orgraitobezarius
    scopedArgs = {
      __findFile = _: _: throw "Do not import from NIX_PATH in the depot!";
11:51:25
@raitobezarius:matrix.orgraitobezariusand then niv sources is imported11:51:30
@raitobezarius:matrix.orgraitobezariusniv is fine without TVL11:51:33

Show newer messages


Back to Room ListRoom Version: 10