Comments (4)
Thank you for your cooperation.
Indeed, the HLS version 2.4.0 was outdated. After updating GHC to 9.4.8 and HLS to 2.9.00, the problem is not reproduced in my environment.
my-lib.tar.gz
The problem seems to be probabilistic so it's not easy, but I think we can close this issue until the problem occurs again.
from haskell-language-server.
Thanks for checking!
Ok, then let's close this and feel free to reopen or open a new issue if you run into any problems :)
from haskell-language-server.
Hi, thank you for bug report and the detailed instructions!
HLS's support for build-type: Custom
is generally speaking not great. So, I am not surprised there are a couple of sharp edges.
I can not reproduce exactly the same error, though, on the first run, I am getting:
Failed to run ["cabal","v2-repl","/home/hugin/Downloads/my-lib/test/Spec.hs"] in directory
"/home/hugin/Downloads/my-lib". Consult the logs for full command and error.
Failed command: cabal
--builddir=/home/hugin/.cache/hie-bios/dist-my-lib-52c1f96b1804b573257fc6cf0e1e0dc2 v2-repl
--with-compiler /home/hugin/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg
/home/hugin/.cache/hie-bios/ghc-pkg-99f55999495b863a61d4f15d989eaab4
/home/hugin/Downloads/my-lib/test/Spec.hs
Build profile: -w ghc-9.6.5 -O1
In order, the following will be built (use -v for more details):
- cabal-doctest-1.0.10 (lib) (requires build)
- ghc-paths-0.1.0.12 (lib:ghc-paths) (requires build)
- doctest-0.22.4 (lib) (requires download & build)
- my-lib-0.1.1.0 (interactive) (first run)
Downloading doctest-0.22.4
Starting ghc-paths-0.1.0.12 (all, legacy fallback: build-type is Custom)
Starting cabal-doctest-1.0.10 (lib)
Downloaded doctest-0.22.4
Building cabal-doctest-1.0.10 (lib)
Installing cabal-doctest-1.0.10 (lib)
Completed cabal-doctest-1.0.10 (lib)
Building ghc-paths-0.1.0.12 (all, legacy fallback: build-type is Custom)
Installing ghc-paths-0.1.0.12 (all, legacy fallback: build-type is Custom)
Completed ghc-paths-0.1.0.12 (all, legacy fallback: build-type is Custom)
Starting doctest-0.22.4 (lib)
Building doctest-0.22.4 (lib)
Installing doctest-0.22.4 (lib)
Completed doctest-0.22.4 (lib)
[1 of 2] Compiling Main (
/home/hugin/.cache/hie-bios/dist-my-lib-52c1f96b1804b573257fc6cf0e1e0dc2/build/x86_64-linux/ghc-9.6.5/my-lib-0.1.1.0/setup/setup.hs,
/home/hugin/.cache/hie-bios/dist-my-lib-52c1f96b1804b573257fc6cf0e1e0dc2/build/x86_64-linux/ghc-9.6.5/my-lib-0.1.1.0/setup/Main.o
) [Distribution.Extra.Doctest package changed]
[2 of 2] Linking
/home/hugin/.cache/hie-bios/dist-my-lib-52c1f96b1804b573257fc6cf0e1e0dc2/build/x86_64-linux/ghc-9.6.5/my-lib-0.1.1.0/setup/setup
[Objects changed]
Configuring my-lib-0.1.1.0...
[1 of 2] Compiling Main (
/home/hugin/.cache/hie-bios/dist-my-lib-52c1f96b1804b573257fc6cf0e1e0dc2/build/x86_64-linux/ghc-9.6.5/my-lib-0.1.1.0/setup/setup.hs,
/home/hugin/.cache/hie-bios/dist-my-lib-52c1f96b1804b573257fc6cf0e1e0dc2/build/x86_64-linux/ghc-9.6.5/my-lib-0.1.1.0/setup/Main.o
) [Distribution.Extra.Doctest package changed]
[2 of 2] Linking
/home/hugin/.cache/hie-bios/dist-my-lib-52c1f96b1804b573257fc6cf0e1e0dc2/build/x86_64-linux/ghc-9.6.5/my-lib-0.1.1.0/setup/setup
[Objects changed]
Saved package config file is outdated:
• the Cabal version changed from Cabal-3.12.1.0 to Cabal-3.10.3.0
Re-run the 'configure' command.
Error: [Cabal-7125]
repl failed for my-lib-0.1.1.0.
And after I ran cabal build all --enable-testing
once, it started working altogether, and I can't get it to fail again 🤔. However, it is really slow to load the project.
Full disclosure, I am not running the nix flake
as I didn't really need it.
from haskell-language-server.
Perhaps fixed on a more recent HLS version? Could you try to reproduce on a more recent GHC version that has proper multi home unit support and more recent HLS version?
from haskell-language-server.
Related Issues (20)
- HLS gets stuck if session setup fails for any reason HOT 1
- definition.Imported symbol (reexported) fails without `$TEMPDIR/hls-test-root`
- Adding `{-# OPTIONS_GHC -Wno-all #-}` at the top of the file makes HLS cease to report errors, not only warnings. HOT 1
- Multiple Components option is not documented in the online manual
- Custom notifications for starting and finishing rules
- Don't use completions for cabal file codeactions
- Renaming a record data constructor also renames record fields HOT 1
- Is ghcide-bench supposed to be built and installed by default? HOT 8
- How can I pass custom build options JUST to HLS? HOT 3
- Goto definition of local library seems not working until I load the library once. HOT 5
- Invalid snippet syntax causes failures in neovim text editor HOT 1
- Reaching path length limit in Windows HOT 2
- HLS hangs on "Processing..." and does not finish even after hours of waiting HOT 4
- Move CircleCI to GitHub Actions HOT 1
- Inline function with guard only pick first guard case HOT 4
- GLIBC: __tunable_is_initialized, version GLIBC_PRIVATE HOT 12
- Period in comment has autocomplete options. HOT 3
- Action to export pattern (:+) produces malformed export list
- Initial load of multiple home units is slow with lazy component loading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-language-server.