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
In linter.ts#L95, we call nix-instantiate with the --parse argument.
If we omit it, we will also get diagnosis for things like pkgs.foozz doesn't exist.
Currently it only analyzes syntatical errors like misplaced semicolons/parens etc and missing top-level variables.
Other than the fact that omiting --parse is slow, is there any other reason we can't use that? nix-instantiate takes 1.4s to execute on my machine. Whereas, nix-instantiate --parse only takes 0.1s.
If there are no other issues, I think I'll be able to do a PR that runs nix-instantiate --parse first, and then fires off nix-instantiate in the background and update the output once it completes.
The text was updated successfully, but these errors were encountered:
In linter.ts#L95, we call
nix-instantiate
with the--parse
argument.If we omit it, we will also get diagnosis for things like
pkgs.foozz
doesn't exist.Currently it only analyzes syntatical errors like misplaced semicolons/parens etc and missing top-level variables.
Other than the fact that omiting
--parse
is slow, is there any other reason we can't use that?nix-instantiate
takes 1.4s to execute on my machine. Whereas,nix-instantiate --parse
only takes 0.1s.If there are no other issues, I think I'll be able to do a PR that runs
nix-instantiate --parse
first, and then fires offnix-instantiate
in the background and update the output once it completes.The text was updated successfully, but these errors were encountered: