New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/haskell: Added quickjump option to the haskell mkDerivation #75942
Conversation
@cdepillabout Any hints on where to look regarding the issue of the missing |
@mgttlinger Ah, I'm pretty sure that the Also, I thought about this a little more, and it might be asking too much to have you run this against all unbroken packages. Why don't you take this off "draft" and we'll see what @peti has to say about merging it. |
I set a decent machine as CI runner who will compile all packages over the weekend (hopefully) so that should be fine. How should I ignore that lsp-test thing? It prevents your script from evaluating? |
Oh, I see. If you wanted to figure out what the problem is, you could grep for where lsp-test_0_8_2_0 is used somewhere in The What probably happened is that the automatic updates to What you can do is to find where lsp-test_0_8_2_0 is incorrectly being used and update it to use lsp-test_0_9_0_0. This will hopefully work. If you find that this fixes everything, we'd really appreciate if you send a PR to the These types of problems happen every once in a while, and we are really grateful with any help we can get fixing things. |
Ok I fixed that in #76087 but now I am unable to build all packages given that something which is not marked broken apparently depends on something broken. |
I think I understand what is going on, but unfortunately I don't have any good ideas on ways to fix this for you. For any given package, you might be able to discard it from your list of packages to test if one of it's transitive dependencies is marked broken. This might require a substantial change to the script I wrote though. |
6484351
to
1f79abf
Compare
@peti Do you want to make a call on whether or not to merge this in? I'm slightly in favor of merging it in as-is, and fixing up any breakage later. |
1f7024e
to
7d2cc64
Compare
When visiting local documentation via hoogle, currently for most packages the quickjump index is missing so you only get a sad error when pressing "s" to search in the current documentation. Closes #75942.
Merged in 14f29c4. |
The Hydra evaluation https://hydra.nixos.org/eval/1562201 will show what effect this change has on the package set. |
The change breaks builds with |
I see. Any pointers howto accomplish such a version check? I'll try to fix this tomorrow if I manage to figure out how to do that. |
aa46cdd
to
fdd64fb
Compare
This update was generated by hackage2nix v2.15.0-11-g2fb6f7e from Hackage revision commercialhaskell/all-cabal-hashes@5ccecb7.
@peti Thanks for creating an evaluation on Hydra for this. It was easy to see what ended up breaking. @mgttlinger If you look in the Here's one you could use as an example:
(You'll of course be checking for |
This update was generated by hackage2nix v2.15.0-11-g2fb6f7e from Hackage revision commercialhaskell/all-cabal-hashes@bb9a7bf.
This update was generated by hackage2nix v2.15.0-9-g650d530 from Hackage revision commercialhaskell/all-cabal-hashes@dc5b0e7.
This update was generated by hackage2nix v2.15.0-9-g650d530 from Hackage revision commercialhaskell/all-cabal-hashes@b2a082b.
@peti @cdepillabout Anything else I should do here or is this good now? |
@mgttlinger Could you instead add the condition on the That will make it easier for people to override (in case they are doing something tricky like using a recent version of haddock with an older compiler). It is also similar to how a lot of the other arguments work. Once you make this change, I will test it out. |
@cdepillabout Done |
@mgttlinger Thanks! Using this PR, I built the docs for $ nix-build -A haskellPackages.conduit.doc
/nix/store/p6jlyqnxshc85z1d6a8vgkil3aw3my2a-conduit-1.3.1.2-doc
$ find /nix/store/p6jlyqnxshc85z1d6a8vgkil3aw3my2a-conduit-1.3.1.2-doc/ -name doc-index.json
/nix/store/p6jlyqnxshc85z1d6a8vgkil3aw3my2a-conduit-1.3.1.2-doc/share/doc/conduit-1.3.1.2/html/doc-index.json I then tried building $ nix-build -A haskell.packages.ghc844.dlist.doc
/nix/store/djihj1a0aimi79ahnlwny02rww6vf3d6-dlist-0.8.0.7-doc
$ find /nix/store/djihj1a0aimi79ahnlwny02rww6vf3d6-dlist-0.8.0.7-doc -iname doc-index.json
$ # no results @peti I think this should be good to merge in, but you might want to just cherry-pick the three relevant commits:
|
When visiting local documentation via hoogle, currently for most packages the quickjump index is missing so you only get a sad error when pressing "s" to search in the current documentation. The quickjump option is only supported by the haddock utility that's shipped with ghc 8.6.x or later. Closes #75942.
Should I fix the conflicts with the main branch or is that unneeded given that it seems the relevant changes have already been included in the above force pushed commits? |
No need to fix anything. Thanks! |
When visiting local documentation via hoogle, currently for most packages the quickjump index is missing so you only get a sad error when pressing "s" to search in the current documentation. The quickjump option is only supported by the haddock utility that's shipped with ghc 8.6.x or later. Closes #75942.
When visiting local documentation via hoogle, currently for most packages the quickjump index is missing so you only get a sad error when pressing "s" to search in the current documentation. The quickjump option is only supported by the haddock utility that's shipped with ghc 8.6.x or later. Closes #75942.
Undestroyed version of #75939
Motivation for this change
When visiting local documentation via hoogle, currently for most packages the quickjump index is missing so you only get a sad error when pressing "s" to search in the current documentation.
Things done
Tested building my system including
pandoc
,xmonad
,xmonad-contrib
(and all their deps) from the new tree and checked that now quickjump works.Marking as WIP until the whole tree has been built as requested in the comments.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)