haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.61k stars 351 forks source link

Branch "wip/9.10" fails to compile - broken cabal.project #4248

Closed mouse07410 closed 1 month ago

mouse07410 commented 1 month ago

Your environment

Irrelevant - but if you're interested:

Now attempting to build unmerged-yet branch "wip/9.10" via

ghcup compile hls -g wip/9.10 --ghc 9.10.1

Which LSP client (editor/plugin) do you use?

Steps to reproduce

ghcup compile hls -g wip/9.10 --ghc 9.10.1

Expected behaviour

Correctly-built HLS for GHC-9.10.1

Actual behaviour

[ Info  ] Examining git ref wip/9.10
[ ...   ]   HLS version (from cabal file): 2.8.0.0
[ ...   ]   branch: wip/9.10
[ ...   ]   commit hash: 5a4405da458ea7e2d5dd0827a74608a5cd5fe133
[ Info  ] Building HLS 2.8.0.0 for GHC version 9.10.1
[ cabal ] fatal: Could not parse object '7bf599856f055aefa86a6db10c12dcbc10c7130a'.

[ Error ] [GHCup-08841] BuildFailed failed in dir /Users/ur20980/.ghcup/tmp/ghcup-fc68230eda627e16: Process "cabal" with arguments ["v2-install",
[ ...   ]                                                                                                             "-w",
[ ...   ]                                                                                                             "ghc-9.10.1",
[ ...   ]                                                                                                             "--install-method=copy",
[ ...   ]                                                                                                             "--overwrite-policy=always",
[ ...   ]                                                                                                             "--disable-profiling",
[ ...   ]                                                                                                             "--disable-tests",
[ ...   ]                                                                                                             "--installdir=/Users/ur20980/.ghcup/tmp/ghcup-fc68230eda627e16/out/9.10.1",
[ ...   ]                                                                                                             "--project-file=cabal.project",
[ ...   ]                                                                                                             "exe:haskell-language-server",
[ ...   ]       

Debug information

See https://github.com/haskell/ghcup-hs/issues/1068#issuecomment-2126157968

mouse07410 commented 1 month ago

Actually, now it does compile - apparently, in the meanewhile the problem has been fixed. Closing.

P.S. Please merge this rather sooner than later!