Closed bryango closed 8 months ago
https://github.com/mlvzk/manix/issues/31#issuecomment-1820027197
@akarui-hikarii I have attempted to add this into src/comments_docsource.rs But it causes a lot of issues, do you have any insight?
This seems to have to do with the rnix::Root::parse function. It seems that rnix assumes all code is correct and valid.
This seems to have to do with the rnix::Root::parse function. It seems that rnix assumes all code is correct and valid.
I see... But does that mean that there is a hidden syntax error in nixpkgs? Weird... Probably a bug in rnix?
https://github.com/mlvzk/manix/issues/31#issuecomment-1820027197
@akarui-hikarii I have attempted to add this into src/comments_docsource.rs But it causes a lot of issues, do you have any insight?
Taking a look today :)
Seems to be an issue with one package in nixpkgs.
This fix is to just allow the parser to continue and log the error
Fixed in #3
Oh my, that's fast! Thank you!
Seems to be an issue with one package in nixpkgs.
NixOS/nixpkgs@
806f3ff
/pkgs/development/compilers/flutter/update/get-pubspec-lock.nix#L12
I think they should have quoted the string... I will try a nixpkgs PR to fix this.
Coming from: https://github.com/NixOS/nixpkgs/pull/280617 Tested nixpkgs revision: https://github.com/NixOS/nixpkgs/commit/7519d9d92b95c1c4face57969956dc78f787fb39
It looks like something in nixpkgs breaks the parser... (or more precisely, the parser cannot handle some expression in nixpkgs).
Full back-trace is here.
```console $ RUST_BACKTRACE=full ~/result/bin/manix mergeAttrs Building Nixpkgs comments cache... thread '