Effect CommunityEC
Effect Community2y ago
26 replies
Kristian Notari

Issue with vscode formatting for Alejandra package in flake.nix file

Maybe a stupid question, but I can see there's an Alejandra package being used as formatter in the flake.nix file within the effect repo. When I nix develop and start messing around with the repo, having the alejandra extension on vscode, is there a way to have vscode formatting the flake? It keeps saying:

While executing Alejandra with settings: {"alejandra":{"program":"alejandra"}}, Error: spawn alejandra ENOENT

Which I guess comes from the fact i don't have alejandra installed globally. Is it needed to have it globally installed on my machine with nix? Or is there a way to make it use the one deriving from the flake?
Was this page helpful?