Skip to content

error: attribute 'rawProject' missing #1590

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

Closed
deemp opened this issue Aug 14, 2022 · 3 comments
Closed

error: attribute 'rawProject' missing #1590

deemp opened this issue Aug 14, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@deemp
Copy link
Contributor

deemp commented Aug 14, 2022

trying on this project

$ nix develop
warning: Git tree '/home/eyjafjallajokull/Desktop/try-flake-hn' is dirty
warning: Using saved setting for 'allow-import-from-derivation = true' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=' from ~/.local/share/nix/trusted-settings.json.
trace: WARNING: `cleanSourceWith` called on /nix/store/7l7l5ya8y00xr27ycfk4llrhk6q8afbg-source without a `name`. Consider adding `name = "7l7l5ya8y00xr27ycfk4llrhk6q8afbg-source";`
trace: No index state specified for cabal-install, using the latest index state that we know about (2022-08-14T00:00:00Z)!
trace: No index state specified for haskell-language-server, using the latest index state that we know about (2022-08-14T00:00:00Z)!
trace: ERROR: cabal configure failed with:
Warning: The package list for 'hackage.haskell.org-at-2022-08-14T000000Z' is
19218 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: haskell-language-server-1.7.0.0 (user goal)
[__1] trying: haskell-language-server:+haddockcomments
[__2] trying: hls-haddock-comments-plugin-1.0.1.0 (dependency of
haskell-language-server +haddockcomments)
[__3] next goal: ghc-exactprint (dependency of hls-haddock-comments-plugin)
[__3] rejecting: ghc-exactprint-1.5.0 (conflict: hls-haddock-comments-plugin
=> ghc-exactprint<1)
[__3] skipping: ghc-exactprint-1.4.1, ghc-exactprint-1.4.0.1,
ghc-exactprint-1.4.0, ghc-exactprint-1.3.0 (has the same characteristics that
caused the previous version to fail: excluded by constraint '<1' from
'hls-haddock-comments-plugin')
[__3] trying: ghc-exactprint-0.6.4
[__4] trying: ghcide-1.7.0.0 (dependency of haskell-language-server)
[__5] next goal: retrie (dependency of ghcide)
[__5] rejecting: retrie-1.2.0.1 (conflict: ghc-exactprint==0.6.4, retrie =>
ghc-exactprint>=1.4.0 && <1.6)
[__5] skipping: retrie-1.2.0.0 (has the same characteristics that caused the
previous version to fail: excludes 'ghc-exactprint' version 0.6.4)
[__5] trying: retrie-1.1.0.0
[__6] next goal: base (dependency of haskell-language-server)
[__6] rejecting: base-4.16.3.0/installed-4.16.3.0 (conflict: ghc-exactprint =>
base>=4.8 && <4.16)
[__6] skipping: base-4.17.0.0, base-4.16.3.0, base-4.16.2.0, base-4.16.1.0,
base-4.16.0.0 (has the same characteristics that caused the previous version
to fail: excluded by constraint '>=4.8 && <4.16' from 'ghc-exactprint')
[__6] rejecting: base-4.15.1.0, base-4.15.0.0, base-4.14.3.0, base-4.14.2.0,
base-4.14.1.0, base-4.14.0.0, base-4.13.0.0, base-4.12.0.0, base-4.11.1.0,
base-4.11.0.0, base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0,
base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1,
base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0,
base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2,
base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2,
base-3.0.3.1 (constraint from non-upgradeable package requires installed
instance)
[__6] fail (backjumping, conflict set: base, ghc-exactprint,
haskell-language-server)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: ghcide, ghc-exactprint, base,
haskell-language-server, hls-haddock-comments-plugin, retrie,
haskell-language-server:haddockcomments
Try running with --minimize-conflict-set to improve the error message.



error: attribute 'rawProject' missing

       at /nix/store/ssqydrvfzalm0j4p2ip93dni5z13j9zq-source/overlays/haskell.nix:667:23:

          666|                     getComponent = componentName:
          667|                       final.rawProject.config.evalPackages.runCommand "cabal-configure-error" {
             |                       ^
          668|                         passthru = {
(use '--show-trace' to show detailed location information)
@hamishmack
Copy link
Collaborator

This should be fixed by #1592

@yvan-sraka yvan-sraka added the bug Something isn't working label Sep 20, 2022
peterbecich added a commit to peterbecich/haskell.nix-ghcjs-issue that referenced this issue Nov 7, 2022
@peterbecich
Copy link
Contributor

I think this still occurs:

https://github.com/peterbecich/haskell.nix-ghcjs-issue/blob/fa6a9231ad133ddaa668e96679465282af3d4737/nix/hix.nix

with compiler-nix-name = "ghc924";

$ nix develop
...
error: attribute 'rawProject' missing

       at /nix/store/mrdp8ykh0l1lkrylh92rs658060d1jj4-source/overlays/haskell.nix:667:23:

          666|                     getComponent = componentName:
          667|                       final.rawProject.config.evalPackages.runCommand "cabal-configure-error" {
             |                       ^

With compiler-nix-name = "ghc902"; the issue does not occur, and nix develop succeeds

peterbecich added a commit to peterbecich/halogen-chess that referenced this issue Nov 8, 2022
peterbecich added a commit to peterbecich/haskell.nix-ghcjs-issue that referenced this issue Nov 8, 2022
@peterbecich
Copy link
Contributor

@br4ch1st0chr0n3 , for me this error disappeared with nix flake update.

Now nix develop works. Here is HLS:

peterbecich@neptune:~/haskell/haskell.nix-ghcjs-issue$ which haskell-language-server 
/nix/store/50l8pg2qmi4g3mlp9xbjhxgd1i6hkgp0-haskell-language-server-exe-haskell-language-server-1.8.0.0/bin/haskell-language-server

https://github.com/peterbecich/haskell.nix-ghcjs-issue/tree/test-haskell-language-server-shell

@hamishmack @yvan-sraka , can this be closed?

peterbecich added a commit to peterbecich/halogen-chess that referenced this issue Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants