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
Which OS do you use:
Linux wattwil 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux
Steps to reproduce
starting or restarting Haskell LSP fails. the error message (which cannot be copy/pasted) is
launching server using command /home/frank/.ghcup/tmp/ghcup-ghc-9.10.1_cabal-3.10.3.0_hls-2.2.0.0/haskell-language-server-wrapper failed.
hls 2.9.0.0 is installed and set, hls 2.2.0.0 is installed (but not set) in ghcup.
2.2.0.0 is outdated! it should not be requested for the ghc 9.10.0.1 which is set in ghcup.
I have added a minimal cabal hie file (i also tried with a gen-hie produced one, no difference).
it seems that the ghc eersion and the cabal versions are detected. why then the error?
I do not see why Setup.hs should be included in other modules but can add it there; should I?
start language server.
Expected behaviour
Actual behaviour
Include debug information
Execute in the root of your project the command haskell-language-server-wrapper --debug . and paste the logs here (you can find the executable location here):
Debug output:
rank@wattwil:~/Workspace11/daino2$ haskell-language-server-wrapper --debug
Found "/home/frank/Workspace11/daino2/hie.yaml" for "/home/frank/Workspace11/daino2/a"
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 2.9.0.1 x86_64 ghc-9.10.1
Current directory: /home/frank/Workspace11/daino2
Operating system: linux
Arguments: ["--debug"]
Cradle directory: /home/frank/Workspace11/daino2
Cradle type: Cabal
Tool versions found on the $PATH
cabal: 3.12.1.0
stack: Not found
ghc: 9.10.1
Consulting the cradle to get project GHC version...
2024-11-29T09:35:41.408474Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:35:48.741006Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:35:49.164843Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --numeric-version
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
Project GHC version: 9.10.1
haskell-language-server exe candidates: ["haskell-language-server-9.10.1","haskell-language-server"]
Launching haskell-language-server exe at:/home/frank/.ghcup/bin/haskell-language-server-9.10.1
2024-11-29T09:35:49.621638Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:35:50.115172Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:35:50.612615Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- -v0 -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:35:51.037070Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:35:51.524963Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:35:51.964406Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --print-libdir
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:35:53.358000Z | Info | haskell-language-server version: 2.9.0.1 (GHC: 9.10.1) (PATH: /home/frank/.ghcup/hls/2.9.0.1/lib/haskell-language-server-2.9.0.1/bin/haskell-language-server-9.10.1)
2024-11-29T09:35:53.359001Z | Info | Directory: /home/frank/Workspace11/daino2
2024-11-29T09:35:53.359307Z | Info | Logging heap statistics every 60.00s
ghcide setup tester in /home/frank/Workspace11/daino2.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in /home/frank/Workspace11/daino2
Found 7 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
(/home/frank/Workspace11/daino2/hie.yaml)
Step 3/4: Initializing the IDE
2024-11-29T09:35:53.369100Z | Debug | Initializing exports map from hiedb
2024-11-29T09:35:53.370579Z | Debug | Shake session initialized
Step 4/4: Type checking the files
2024-11-29T09:35:53.372335Z | Debug | Done initializing exports map from hiedb. Size: 8
2024-11-29T09:35:53.374126Z | Info | Cradle path: src/Foundational/SettingsPage.hs
2024-11-29T09:35:53.376463Z | Debug | Cradle: Cradle{ cradleRootDir = "/home/frank/Workspace11/daino2", cradleOptsProg = CradleAction: Cabal}
2024-11-29T09:35:53.376597Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-11-29T09:35:53.376700Z | Debug | Requested to load Cabal cradle using single file mode
2024-11-29T09:35:53.386742Z | Debug | cabal --numeric-version
2024-11-29T09:35:53.807870Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:35:54.309691Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:35:54.740037Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --numeric-version
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:35:54.740371Z | Info | Load cabal cradle using single file
2024-11-29T09:35:55.160435Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:35:55.651931Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:35:55.652868Z | Info | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-repl --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b /home/frank/Workspace11/daino2/src/Foundational/SettingsPage.hs
Environment Variables
HIE_BIOS_OUTPUT: /tmp/HIE_BIOS_OUTPUT16644-0
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:35:56.040773Z | Debug | Build profile: -w ghc-9.10.1 -O1
2024-11-29T09:35:56.040907Z | Debug | In order, the following will be built (use -v for more details):
2024-11-29T09:35:56.041168Z | Debug | - daino-0.2.0 (interactive) (lib) (first run)
2024-11-29T09:35:56.157707Z | Debug | Preprocessing library for daino-0.2.0...
2024-11-29T09:35:56.590041Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:35:57.100838Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:35:57.534156Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --print-libdir
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:35:57.943041Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:35:58.439095Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:35:58.871463Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --numeric-version
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:35:58.871666Z | Debug | Session loading result: Right (ComponentOptions {componentOptions = ["-fbuilding-cabal-package","-O0","-outputdir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build","-odir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build","-hidir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build","-hiedir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/extra-compilation-artifacts/hie","-stubdir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build","-i","-isrc","-i/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build","-i/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/autogen","-i/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/global-autogen","-I/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/autogen","-I/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/global-autogen","-I/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build","-optP-include","-optP/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/autogen/cabal_macros.h","-this-unit-id","daino-0.2.0-inplace","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","/home/frank/.cabal/store/ghc-9.10.1-e4d3/package.db","-package-db","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/packagedb/ghc-9.10.1","-package-db","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/package.conf.inplace","-package-id","ReplaceUmlaut-0.1.5.3-inplace","-package-id","base-4.20.0.0-d40f","-package-id","containers-0.7-6303","-package-id","data-default-class-0.1.2.2-94945faee554ac2d9c09cb5cd27bfc4655be3c75ee66498ebbb7675968f31e66","-package-id","filepath-1.5.2.0-55fb","-package-id","path-0.9.6-f2e3fceb62b263f38b43a1d9efe73ee1e926109bb86fa1105dce784fe780f3bc","-package-id","path-io-1.8.2-ae27454b2992eba9f1b39c0b0c97fd43ac950b78746977143ab3d7085636ad67","-package-id","pretty-simple-4.1.2.0-aa5f8bdd0873b2c1dad00f19aaf31e23ec980d121a2d417888e4867abb361191","-package-id","shake-0.19.8-d34ae154122d92f1eabfd2b5f6f83066d0d08d895c91d4107e742e767b953f20","-package-id","text-2.1.1-008f","-package-id","uniform-cmdLineArgs-0.1.5.1-inplace","-package-id","uniform-http-0.1.5.1-inplace","-package-id","uniform-json-0.1.5.2-inplace","-package-id","uniform-latex2pdf-0.1.5.8-inplace","-package-id","uniform-pandoc-0.1.6.7-inplace","-package-id","uniform-shake-0.1.5.2-inplace","-package-id","uniform-strings-0.1.5.1-2b8159c9baba6ce3a39144d76a2e4e921b95b7b032cdd0daa08ba80a3b138827","-package-id","uniform-watch-0.1.5.1-inplace","-package-id","uniform-webserver-0.1.5.1-inplace","-package-id","uniformBase-0.1.5.1-inplace","-XGHC2024","Foundational.DainoMeta","Foundational.Filetypes4sites","Foundational.SettingsPage","Wave.Md2doc","Wave.ReadSettingFile","Paths_daino","-Wall","-fno-warn-unused-binds","-fno-warn-deprecations","-fno-warn-unused-do-bind","-fno-warn-unused-imports","-fno-warn-missing-signatures","-fno-warn-orphans","-fno-warn-type-defaults","-fno-warn-unused-matches","-fno-warn-warnings-deprecations","-fno-warn-missing-methods","-fno-warn-missing-home-modules","-fno-warn-duplicate-exports","-XOverloadedStrings","-hide-all-packages"], componentRoot = "/home/frank/Workspace11/daino2", componentDependencies = ["daino.cabal","cabal.project","cabal.project.local"]},"/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib","9.10.1")
2024-11-29T09:35:58.884568Z | Info | Interface files cache directory: /home/frank/.cache/ghcide/daino-0.2.0-inplace-056ae2b3d2817f2767fed228359be1a0e64ace48
2024-11-29T09:35:58.891229Z | Info | Making new HscEnv. In-place unit ids: [daino-0.2.0-inplace]
2024-11-29T09:35:58.927612Z | Debug | New component cache HscEnvEq: (([],Just HscEnvEq 4),fromList [("/home/frank/Workspace11/daino2/hie.yaml",Just 2024-11-29 09:34:11.17387759 UTC),("cabal.project",Just 2024-08-06 10:37:44.773357671 UTC),("cabal.project.local",Nothing),("daino.cabal",Just 2024-11-29 08:42:19.342105768 UTC)])
2024-11-29T09:35:58.942251Z | Debug | Finished build session
AsyncCancelled
HasCallStack backtrace:
collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:92:13 in ghc-internal:GHC.Internal.Exception
toExceptionWithBacktrace, called at libraries/ghc-internal/src/GHC/Internal/IO.hs:260:11 in ghc-internal:GHC.Internal.IO
throwIO, called at libraries/ghc-internal/src/GHC/Internal/Control/Exception/Base.hs:195:43 in ghc-internal:GHC.Internal.Control.Exception.Base
2024-11-29T09:35:58.944698Z | Debug | Known files updated:
fromList [(TargetModule (ModuleName "Paths_daino"),fromList ["/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/autogen/Paths_daino.hs"]),(TargetModule (ModuleName "Wave.Md2doc"),fromList ["/home/frank/Workspace11/daino2/src/Wave/Md2doc.hs"]),(TargetModule (ModuleName "Foundational.Filetypes4sites"),fromList ["/home/frank/Workspace11/daino2/src/Foundational/Filetypes4sites.hs"]),(TargetFile NormalizedFilePath "/home/frank/Workspace11/daino2/src/Foundational/SettingsPage.hs",fromList ["/home/frank/Workspace11/daino2/src/Foundational/SettingsPage.hs"]),(TargetModule (ModuleName "Foundational.SettingsPage"),fromList ["/home/frank/Workspace11/daino2/src/Foundational/SettingsPage.hs"]),(TargetModule (ModuleName "Wave.ReadSettingFile"),fromList ["/home/frank/Workspace11/daino2/src/Wave/ReadSettingFile.hs"]),(TargetModule (ModuleName "Foundational.DainoMeta"),fromList ["/home/frank/Workspace11/daino2/src/Foundational/DainoMeta.hs"])]
2024-11-29T09:35:58.945015Z | Debug | Restarting build session due to new component
Action Queue: [User TypeCheck]
Keys: [GhcSessionIO; , GetKnownTargets; ]
Aborting previous build session took 0.00s
2024-11-29T09:35:58.946360Z | Info | Cradle path: Setup.hs
2024-11-29T09:35:58.946714Z | Debug | Cradle: Cradle{ cradleRootDir = "/home/frank/Workspace11/daino2", cradleOptsProg = CradleAction: Cabal}
2024-11-29T09:35:58.946826Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-11-29T09:35:58.946962Z | Debug | Requested to load Cabal cradle using single file mode
2024-11-29T09:35:58.960121Z | Debug | cabal --numeric-version
2024-11-29T09:35:59.381767Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:35:59.870427Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:36:00.289227Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --numeric-version
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:36:00.289430Z | Info | Load cabal cradle using single file
2024-11-29T09:36:00.706196Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:36:01.192103Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:36:01.192906Z | Info | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-repl --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b /home/frank/Workspace11/daino2/Setup.hs
Environment Variables
HIE_BIOS_OUTPUT: /tmp/HIE_BIOS_OUTPUT16644-1
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:36:01.219853Z | Debug | Error: [Cabal-7121]
2024-11-29T09:36:01.220201Z | Debug | Failed extracting script block: `{- cabal:` start marker not found
2024-11-29T09:36:01.220271Z | Debug |
2024-11-29T09:36:01.221477Z | Debug | Session loading result: Left [CradleError {cradleErrorDependencies = ["daino.cabal","cabal.project","cabal.project.local"], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Failed to run [\"cabal\",\"v2-repl\",\"/home/frank/Workspace11/daino2/Setup.hs\"] in directory \"/home/frank/Workspace11/daino2\". Consult the logs for full command and error.","Failed command: cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-repl --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b /home/frank/Workspace11/daino2/Setup.hs","","Error: [Cabal-7121]\nFailed extracting script block: `{- cabal:` start marker not found\n\n","","Process Environment:","HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1","HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib"]}]
2024-11-29T09:36:01.221961Z | Info | Cradle path: tests/Lib/Md2doc_test.hs
2024-11-29T09:36:01.222238Z | Debug | Cradle: Cradle{ cradleRootDir = "/home/frank/Workspace11/daino2", cradleOptsProg = CradleAction: Cabal}
2024-11-29T09:36:01.222295Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-11-29T09:36:01.222349Z | Debug | Requested to load Cabal cradle using single file mode
2024-11-29T09:36:01.235129Z | Debug | cabal --numeric-version
2024-11-29T09:36:01.678572Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:36:02.172937Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:36:02.601016Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --numeric-version
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:36:02.601238Z | Info | Load cabal cradle using single file
2024-11-29T09:36:03.010024Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:36:03.493102Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:36:03.493915Z | Info | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-repl --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b /home/frank/Workspace11/daino2/tests/Lib/Md2doc_test.hs
Environment Variables
HIE_BIOS_OUTPUT: /tmp/HIE_BIOS_OUTPUT16644-2
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:36:03.879513Z | Debug | Build profile: -w ghc-9.10.1 -O1
2024-11-29T09:36:03.879663Z | Debug | In order, the following will be built (use -v for more details):
2024-11-29T09:36:03.879771Z | Debug | - daino-0.2.0 (lib) (configuration changed)
2024-11-29T09:36:03.880525Z | Debug | - daino-0.2.0 (interactive) (test:test2md) (dependency rebuilt)
2024-11-29T09:36:03.893276Z | Debug | Configuring library for daino-0.2.0...
2024-11-29T09:36:04.891120Z | Debug | Warning: [misplaced-c-opt] Instead of 'ghc-options: -XOverloadedStrings' use
2024-11-29T09:36:04.891267Z | Debug | 'default-extensions: OverloadedStrings'
2024-11-29T09:36:05.133825Z | Debug | Preprocessing library for daino-0.2.0...
2024-11-29T09:36:05.135646Z | Debug | Building library for daino-0.2.0...
2024-11-29T09:36:06.941465Z | Debug | Preprocessing test suite 'test2md' for daino-0.2.0...
2024-11-29T09:36:07.388036Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:36:07.878945Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:36:08.303894Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --print-libdir
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:36:08.716226Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:36:09.205570Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:36:09.626475Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --numeric-version
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:36:09.626669Z | Debug | Session loading result: Right (ComponentOptions {componentOptions = ["-fbuilding-cabal-package","-O0","-outputdir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/test2md-tmp","-odir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/test2md-tmp","-hidir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/test2md-tmp","-hiedir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/test2md-tmp/extra-compilation-artifacts/hie","-stubdir","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/test2md-tmp","-i","-itests","-i/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/test2md-tmp","-i/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/autogen","-i/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/global-autogen","-I/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/autogen","-I/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/global-autogen","-I/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/test2md-tmp","-optP-include","-optP/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/autogen/cabal_macros.h","-this-unit-id","daino-0.2.0-inplace-test2md","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","/home/frank/.cabal/store/ghc-9.10.1-e4d3/package.db","-package-db","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/packagedb/ghc-9.10.1","-package-db","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/package.conf.inplace","-package-id","ReplaceUmlaut-0.1.5.3-inplace","-package-id","base-4.20.0.0-d40f","-package-id","containers-0.7-6303","-package-id","daino-0.2.0-inplace","-package-id","data-default-class-0.1.2.2-94945faee554ac2d9c09cb5cd27bfc4655be3c75ee66498ebbb7675968f31e66","-package-id","filepath-1.5.2.0-55fb","-package-id","path-0.9.6-f2e3fceb62b263f38b43a1d9efe73ee1e926109bb86fa1105dce784fe780f3bc","-package-id","path-io-1.8.2-ae27454b2992eba9f1b39c0b0c97fd43ac950b78746977143ab3d7085636ad67","-package-id","pretty-simple-4.1.2.0-aa5f8bdd0873b2c1dad00f19aaf31e23ec980d121a2d417888e4867abb361191","-package-id","shake-0.19.8-d34ae154122d92f1eabfd2b5f6f83066d0d08d895c91d4107e742e767b953f20","-package-id","text-2.1.1-008f","-package-id","uniform-cmdLineArgs-0.1.5.1-inplace","-package-id","uniform-http-0.1.5.1-inplace","-package-id","uniform-json-0.1.5.2-inplace","-package-id","uniform-latex2pdf-0.1.5.8-inplace","-package-id","uniform-pandoc-0.1.6.7-inplace","-package-id","uniform-shake-0.1.5.2-inplace","-package-id","uniform-strings-0.1.5.1-2b8159c9baba6ce3a39144d76a2e4e921b95b7b032cdd0daa08ba80a3b138827","-package-id","uniform-watch-0.1.5.1-inplace","-package-id","uniform-webserver-0.1.5.1-inplace","-package-id","uniformBase-0.1.5.1-inplace","-XGHC2024","tests/Lib/Md2doc_test.hs","Paths_daino","-Wall","-fno-warn-unused-binds","-fno-warn-deprecations","-fno-warn-unused-do-bind","-fno-warn-unused-imports","-fno-warn-missing-signatures","-fno-warn-orphans","-fno-warn-type-defaults","-fno-warn-unused-matches","-fno-warn-warnings-deprecations","-fno-warn-missing-methods","-fno-warn-missing-home-modules","-fno-warn-duplicate-exports","-XOverloadedStrings","-rtsopts","-with-rtsopts=-N","-main-is","Lib.Md2doc_test","-hide-all-packages"], componentRoot = "/home/frank/Workspace11/daino2", componentDependencies = ["daino.cabal","cabal.project","cabal.project.local"]},"/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib","9.10.1")
2024-11-29T09:36:09.637060Z | Info | Interface files cache directory: /home/frank/.cache/ghcide/daino-0.2.0-inplace-test2md-c6b01c90e08c89b1eeab30765205a557dd8ace07
2024-11-29T09:36:09.637339Z | Info | Interface files cache directory: /home/frank/.cache/ghcide/daino-0.2.0-inplace-c6b01c90e08c89b1eeab30765205a557dd8ace07
2024-11-29T09:36:09.643686Z | Info | Making new HscEnv. In-place unit ids: [ daino-0.2.0-inplace
, daino-0.2.0-inplace-test2md ]
2024-11-29T09:36:09.740947Z | Debug | New component cache HscEnvEq: (([],Just HscEnvEq 6),fromList [("/home/frank/Workspace11/daino2/hie.yaml",Just 2024-11-29 09:34:11.17387759 UTC),("cabal.project",Just 2024-08-06 10:37:44.773357671 UTC),("cabal.project.local",Nothing),("daino.cabal",Just 2024-11-29 08:42:19.342105768 UTC)])
2024-11-29T09:36:09.746455Z | Debug | New component cache HscEnvEq: (([],Just HscEnvEq 7),fromList [("/home/frank/Workspace11/daino2/hie.yaml",Just 2024-11-29 09:34:11.17387759 UTC),("cabal.project",Just 2024-08-06 10:37:44.773357671 UTC),("cabal.project.local",Nothing),("daino.cabal",Just 2024-11-29 08:42:19.342105768 UTC)])
2024-11-29T09:36:09.750308Z | Debug | Finished build session
AsyncCancelled
HasCallStack backtrace:
collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:92:13 in ghc-internal:GHC.Internal.Exception
toExceptionWithBacktrace, called at libraries/ghc-internal/src/GHC/Internal/IO.hs:260:11 in ghc-internal:GHC.Internal.IO
throwIO, called at libraries/ghc-internal/src/GHC/Internal/Control/Exception/Base.hs:195:43 in ghc-internal:GHC.Internal.Control.Exception.Base
2024-11-29T09:36:09.751770Z | Debug | Known files updated:
fromList [(TargetModule (ModuleName "Paths_daino"),fromList ["/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/autogen/Paths_daino.hs","/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/t/test2md/build/test2md/autogen/Paths_daino.hs"]),(TargetFile NormalizedFilePath "/home/frank/Workspace11/daino2/tests/Lib/Md2doc_test.hs",fromList ["/home/frank/Workspace11/daino2/tests/Lib/Md2doc_test.hs"]),(TargetModule (ModuleName "Wave.Md2doc"),fromList ["/home/frank/Workspace11/daino2/src/Wave/Md2doc.hs"]),(TargetModule (ModuleName "Foundational.Filetypes4sites"),fromList ["/home/frank/Workspace11/daino2/src/Foundational/Filetypes4sites.hs"]),(TargetFile NormalizedFilePath "/home/frank/Workspace11/daino2/src/Foundational/SettingsPage.hs",fromList ["/home/frank/Workspace11/daino2/src/Foundational/SettingsPage.hs"]),(TargetModule (ModuleName "Foundational.SettingsPage"),fromList ["/home/frank/Workspace11/daino2/src/Foundational/SettingsPage.hs"]),(TargetModule (ModuleName "Wave.ReadSettingFile"),fromList ["/home/frank/Workspace11/daino2/src/Wave/ReadSettingFile.hs"]),(TargetModule (ModuleName "Foundational.DainoMeta"),fromList ["/home/frank/Workspace11/daino2/src/Foundational/DainoMeta.hs"])]
2024-11-29T09:36:09.751908Z | Debug | Restarting build session due to new component
Action Queue: [User TypeCheck]
Keys: [GhcSessionIO; , GetKnownTargets; ]
Aborting previous build session took 0.00s
2024-11-29T09:36:09.753278Z | Info | Cradle path: Setup.hs
2024-11-29T09:36:09.753515Z | Debug | Cradle: Cradle{ cradleRootDir = "/home/frank/Workspace11/daino2", cradleOptsProg = CradleAction: Cabal}
2024-11-29T09:36:09.753590Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-11-29T09:36:09.753651Z | Debug | Requested to load Cabal cradle using single file mode
2024-11-29T09:36:09.769150Z | Debug | cabal --numeric-version
2024-11-29T09:36:10.189449Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:36:10.687176Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:36:11.118153Z | Debug | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-exec --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b ghc -v0 -- --numeric-version
Environment Variables
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:36:11.118359Z | Info | Load cabal cradle using single file
2024-11-29T09:36:11.534287Z | Debug | cabal exec -v0 -- ghc --print-libdir
2024-11-29T09:36:12.031888Z | Debug | cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath)
2024-11-29T09:36:12.032713Z | Info | cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-repl --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b /home/frank/Workspace11/daino2/Setup.hs
Environment Variables
HIE_BIOS_OUTPUT: /tmp/HIE_BIOS_OUTPUT16644-3
HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1
HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib
2024-11-29T09:36:12.060098Z | Debug | Error: [Cabal-7121]
2024-11-29T09:36:12.060576Z | Debug | Failed extracting script block: `{- cabal:` start marker not found
2024-11-29T09:36:12.060661Z | Debug |
2024-11-29T09:36:12.062062Z | Debug | Session loading result: Left [CradleError {cradleErrorDependencies = ["daino.cabal","cabal.project","cabal.project.local"], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Failed to run [\"cabal\",\"v2-repl\",\"/home/frank/Workspace11/daino2/Setup.hs\"] in directory \"/home/frank/Workspace11/daino2\". Consult the logs for full command and error.","Failed command: cabal --builddir=/home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e v2-repl --with-compiler /home/frank/.cache/hie-bios/wrapper-b54f81dea4c0e6d1626911c526bc4e36 --with-hc-pkg /home/frank/.cache/hie-bios/ghc-pkg-1276a50642f7c0bbc9b35df98c1f089b /home/frank/Workspace11/daino2/Setup.hs","","Error: [Cabal-7121]\nFailed extracting script block: `{- cabal:` start marker not found\n\n","","Process Environment:","HIE_BIOS_GHC: /home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/bin/ghc-9.10.1","HIE_BIOS_GHC_ARGS: -B/home/frank/.ghcup/ghc/9.10.1/lib/ghc-9.10.1/lib"]}]
2024-11-29T09:36:12.064486Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File: /home/frank/Workspace11/daino2/Setup.hs
Hidden: no
Range: 1:1-2:1
Source: cradle
Severity: DiagnosticSeverity_Error
Message:
Loading the module '/home/frank/Workspace11/daino2/Setup.hs' failed.
It may not be listed in your .cabal file!
Perhaps you need to add `Setup` to other-modules or exposed-modules.
For more information, visit:
https://cabal.readthedocs.io/en/3.4/developing-packages.html#modules-included-in-the-package
2024-11-29T09:36:13.124235Z | Debug | SUCCEEDED LOADING HIE FILE FOR /home/frank/.cache/ghcide/daino-0.2.0-inplace-c6b01c90e08c89b1eeab30765205a557dd8ace07/Paths_daino.hie
2024-11-29T09:36:13.124315Z | Debug | Re-indexing hie file for /home/frank/.cache/hie-bios/dist-daino2-52f58610a13af78cc54f4c7ccefcfa4e/build/x86_64-linux/ghc-9.10.1/daino-0.2.0/build/autogen/Paths_daino.hs
2024-11-29T09:36:13.216711Z | Debug | Finished: User TypeCheck Took: 3.46s
2024-11-29T09:36:13.336659Z | Debug | Finished: GetHie Took: 0.12s
2024-11-29T09:36:13.344826Z | Debug | Finished: GenerateCore Took: 0.00s
Files that failed:
* 2024-11-29T09:36:13.344988Z | Debug | LOOKUP PERSISTENT FOR: GetModSummaryWithoutTimestamps
2024-11-29T09:36:13.365050Z | Debug | LOOKUP PERSISTENT FOR: GhcSessionDeps
/home/frank/Workspace11/daino2/Setup.hs
Paste the contents of extension specific log, you can check instructions about how to find it here
Extension log:
<paste your logs here>
The text was updated successfully, but these errors were encountered:
This is indeed weird. Could you include the logs of the extension? See here for instructions for how to get them: https://github.com/haskell/vscode-haskell#troubleshooting. Maybe this helps us out in understanding what's going wrong.
My only theory is, that there is a .vscode/settings.json file in your project which states something similar to
This could also be specified in ~/.config/Code/User/settings.json or ~/.config/Code - OSS/User/settings.json, depending on whether you use VSCode or VSCodium or any of the de-microsofted VSCode versions.
Your environment
Which OS do you use:
Linux wattwil 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux
Steps to reproduce
starting or restarting Haskell LSP fails. the error message (which cannot be copy/pasted) is
launching server using command /home/frank/.ghcup/tmp/ghcup-ghc-9.10.1_cabal-3.10.3.0_hls-2.2.0.0/haskell-language-server-wrapper failed.
hls 2.9.0.0 is installed and set, hls 2.2.0.0 is installed (but not set) in ghcup.
2.2.0.0 is outdated! it should not be requested for the ghc 9.10.0.1 which is set in ghcup.
I have added a minimal cabal hie file (i also tried with a gen-hie produced one, no difference).
it seems that the ghc eersion and the cabal versions are detected. why then the error?
I do not see why
Setup.hs
should be included inother modules
but can add it there; should I?start language server.
Expected behaviour
Actual behaviour
Include debug information
Execute in the root of your project the command
haskell-language-server-wrapper --debug .
and paste the logs here (you can find the executable location here):Debug output:
Paste the contents of extension specific log, you can check instructions about how to find it here
Extension log:
The text was updated successfully, but these errors were encountered: