Skip to content

error: Unsupported AST node: ListΒ #2

@yajo

Description

@yajo

I was testing it today. I ran it in the folder of another flake. It died:

$ nix run github:snowfallorg/thaw/v1.0.7
trace: warning: getExe: Package "bun-1.0.13" does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when the assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control its definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar".
 ERROR  Thaw An unexpected error occurred.
12 |     return node;
13 |   }
14 | 
15 |   switch (node.kind) {
16 |     default:
17 |       throw new Error(`Unsupported AST node: ${node.kind}`);
                ^
error: Unsupported AST node: List
      at toStaticValue (/nix/store/d7zrr1q48qk17j8q3d0svigclidmncri-src/util/nix.ts:17:12)
      at toStaticValue (/nix/store/d7zrr1q48qk17j8q3d0svigclidmncri-src/util/nix.ts:52:29)
      at toStaticValue (/nix/store/d7zrr1q48qk17j8q3d0svigclidmncri-src/util/nix.ts:52:29)
      at /nix/store/d7zrr1q48qk17j8q3d0svigclidmncri-src/util/nix.ts:85:16
      at processTicksAndRejections (:61:76)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions