You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue with the nixpkgs/lib/systems/{inspect,parse}.nix files, which mutually include themselves, and use nested with expressions, which makes static analysis about which free variables belong to which scope mostly impossible.
yeah, static scope lookups were easy (e.g. inherit (y) x; were translated in JS let x = y.x and such), but I had no idea where exactly to put with handling. I probably need to keep an explicit list of static identifiers while transpiling, to omit them from dynamic lookups, which should hopefully fix most of the issue...
This is an issue with the
nixpkgs/lib/systems/{inspect,parse}.nix
files, which mutually include themselves, and use nestedwith
expressions, which makes static analysis about which free variables belong to which scope mostly impossible.see also https://gist.github.com/zseri/bb8ed4f47123960f4231d6fa928599ac for the current transpilation result.
RFC to maybe fix this: [RFC 0120] Discourage nested
with
expressions NixOS/rfcs#120The text was updated successfully, but these errors were encountered: