You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[b@kuusi:~/tmp/symlinkmain]$ cabal repl app/Main.hs
Build profile: -w ghc-9.6.5 -O1
In order, the following will be built (use -v for more details):
- symlinkmain-0.1.0.0 (exe:symlinkmain) (first run)
Preprocessing executable 'symlinkmain' for symlinkmain-0.1.0.0..
GHCi, version 9.6.5: https://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/b/Projects/dotfiles/ghci
[1 of 2] Compiling Main ( app/Main.hs, interpreted )
Ok, one module loaded.
|*Main|
λ
Leaving GHCi.
Note that this works fine if the repl is called with no arguments, e.g. as cabal repl!
Actual behaviour
[b@kuusi:~/tmp/symlinkmain]$ cabal repl app/Main.hs
Error: cabal: Failed extracting script block: `{- cabal:` start marker not
found
The text was updated successfully, but these errors were encountered:
[b@kuusi:~/tmp/symlinkmain]$ cabal repl --verbose app/Main.hs
this build was affected by the following (project) config files:
creating
/home/b/.cabal/script-builds/0b6a959fceab84b0f3ec6d32f707d450612c92c9525feeb03ca5
creating
/home/b/.cabal/script-builds/0b6a959fceab84b0f3ec6d32f707d450612c92c9525feeb03ca5
creating
/home/b/.cabal/script-builds/0b6a959fceab84b0f3ec6d32f707d450612c92c9525feeb03ca5/cache
CallStack (from HasCallStack):
withMetadata, called at src/Distribution/Simple/Utils.hs:368:14 in Cabal-3.10.3.0-1vhmrBuGLi1Io7h0G4FK7T:Distribution.Simple.Utils
Error: cabal: Failed extracting script block: `{- cabal:` start marker not
found
[b@kuusi:~/tmp/symlinkmain]$ cat ~/.cabal/script-builds/0b6a959fceab84b0f3ec6d32f707d450612c92c9525feeb03ca5/scriptlocation
/home/b/tmp/symlinkmain/app/Real.hs
Describe the bug
See haskell/haskell-language-server#4462, which I will copy here in full (changing relevant details)
Your environment
Which OS do you use?
NixOS 24.05.6966.190c31a89e5e (Uakari)
Which version of GHC do you use and how did you install it?
The Glorious Glasgow Haskell Compilation System, version 9.6.5 from OS package
How is your project built (alternative: link to the project)?
cabal build
Steps to reproduce
Expected behaviour
Note that this works fine if the repl is called with no arguments, e.g. as
cabal repl
!Actual behaviour
The text was updated successfully, but these errors were encountered: