haskell / haskell-language-server

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

Spaces in auto-generated cabal command failing #3961

Open Anut-py opened 9 months ago

Anut-py commented 9 months ago

Your environment

Which OS do you use:

Windows

Steps to reproduce

I don't know how to reproduce this, most likely the cause is that I have a space in my Windows username so %APPDATA% has a space in it. The extension was working fine until today, though, so I'm not sure why this never happened before.

Expected behaviour

When I open my project, the extension automatically runs the following command:

cabal --builddir=C:\Users\Anand Swaroop\AppData\Local\hie-bios\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80 v2-exec --with-compiler C:\Users\Anand Swaroop\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg C:\ghcup\ghc\9.6.3\bin\ghc-pkg-9.6.3.exe ghc -v0 -- --numeric-version

This command should finish successfully

Actual behaviour

The command fails because of the space in the path C:\Users\Anand Swaroop.

C:/ghcup/ghc/9.6.3/lib/../mingw/bin/llvm-ar.exe: error: C:\\Users\\Anand\: No such file or directory
Error: cabal-3.10.1.0.exe: Failed to build h-raylib-5.0.0.1 (which is required
by exe:basic-images from h-raylib-5.0.0.1).

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: ``` Found "C:\Anand\Haskell\h-raylib\hie.yaml" for "C:\Anand\Haskell\h-raylib\a" Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper-2.5.0.0.exe) Version 2.5.0.0 x86_64 ghc-9.4.8 Current directory: C:\Anand\Haskell\h-raylib Operating system: mingw32 Arguments: ["--debug"] Cradle directory: C:\Anand\Haskell\h-raylib Cradle type: Cabal Tool versions found on the $PATH cabal: 3.10.1.0 stack: 2.9.3 ghc: 9.6.3 Consulting the cradle to get project GHC version... 2024-01-14T22:52:05.661942Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir 2024-01-14T22:52:06.054573Z | Debug | executing command: cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath) 2024-01-14T22:52:12.572799Z | Debug | executing command: cabal --builddir=C:\Users\Anand Swaroop\AppData\Local\hie-bios\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80 v2-exec --with-compiler C:\Users\Anand Swaroop\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg C:\ghcup\ghc\9.6.3\bin\ghc-pkg-9.6.3.exe ghc -v0 -- --numeric-version Project GHC version: 9.6.3 haskell-language-server exe candidates: ["haskell-language-server-9.6.3.exe","haskell-language-server.exe"] Launching haskell-language-server exe at:C:\ghcup\bin\haskell-language-server-9.6.3.exe 2024-01-14T22:52:12.984975Z | Info | haskell-language-server version: 2.5.0.0 (GHC: 9.6.3) (PATH: C:\ghcup\bin\haskell-language-server-9.6.3~2.5.0.0.exe) 2024-01-14T22:52:12.991976Z | Info | Directory: C:\Anand\Haskell\h-raylib 2024-01-14T22:52:12.994974Z | Info | Logging heap statistics every 60.00s ghcide setup tester in C:\Anand\Haskell\h-raylib. Report bugs at https://github.com/haskell/haskell-language-server/issues Step 1/4: Finding files to test in C:\Anand\Haskell\h-raylib Found 28 files Step 2/4: Looking for hie.yaml files that control setup Found 1 cradle (C:\Anand\Haskell\h-raylib\hie.yaml) Step 3/4: Initializing the IDE 2024-01-14T22:52:13.408238Z | Debug | Initializing exports map from hiedb 2024-01-14T22:52:13.409695Z | Debug | Shake session initialized 2024-01-14T22:52:13.409695Z | Debug | Done initializing exports map from hiedb. Size: 0 Step 4/4: Type checking the files 2024-01-14T22:52:13.417492Z | Info | Cradle path: src\Raylib\Util\Camera.hs 2024-01-14T22:52:13.420704Z | Debug | Cradle: Cradle {cradleRootDir = "C:\\Anand\\Haskell\\h-raylib", cradleOptsProg = CradleAction: Cabal} 2024-01-14T22:52:13.420704Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache) 2024-01-14T22:52:13.421704Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir 2024-01-14T22:52:13.847011Z | Debug | executing command: cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath) 2024-01-14T22:52:20.314155Z | Debug | executing command: cabal --builddir=C:\Users\Anand Swaroop\AppData\Local\hie-bios\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80 v2-repl --with-compiler C:\Users\Anand Swaroop\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg C:\ghcup\ghc\9.6.3\bin\ghc-pkg-9.6.3.exe lib:h-raylib 2024-01-14T22:52:20.558591Z | Debug | Build profile: -w ghc-9.6.3 -O1 2024-01-14T22:52:20.558591Z | Debug | In order, the following will be built (use -v for more details): 2024-01-14T22:52:20.558591Z | Debug | - h-raylib-5.0.0.1 (lib) (first run) 2024-01-14T22:52:20.689353Z | Debug | Preprocessing library for h-raylib-5.0.0.1.. 2024-01-14T22:52:20.864560Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir 2024-01-14T22:52:21.263731Z | Debug | executing command: cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath) 2024-01-14T22:52:27.736447Z | Debug | executing command: cabal --builddir=C:\Users\Anand Swaroop\AppData\Local\hie-bios\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80 v2-exec --with-compiler C:\Users\Anand Swaroop\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg C:\ghcup\ghc\9.6.3\bin\ghc-pkg-9.6.3.exe ghc -v0 -- --print-libdir 2024-01-14T22:52:28.073864Z | Debug | Session loading result: Right (ComponentOptions {componentOptions = ["-fbuilding-cabal-package","-O0","-outputdir","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build","-odir","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build","-hidir","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build","-stubdir","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build","-i","-iC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build","-isrc","-iC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\autogen","-iC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\global-autogen","-IC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\autogen","-IC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\global-autogen","-IC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build","-Ilib","-Iraylib/src","-Iraylib/src/external/glfw/src","-Iraylib/src/external/glfw/include","-IC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\lib","-IC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src","-IC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/external/glfw/src","-IC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/external/glfw/include","-IC:\\ghcup\\msys64\\mingw64\\include","-optP-include","-optPC:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\autogen\\cabal_macros.h","-lopengl32","-lgdi32","-lwinmm","-lshell32","-lgcc_eh","-LC:\\ghcup\\msys64\\mingw64\\lib","-this-unit-id","h-raylib-5.0.0.1-inplace","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","C:\\cabal\\store\\ghc-9.6.3\\package.db","-package-db","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\packagedb\\ghc-9.6.3","-package-db","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\package.conf.inplace","-package-id","base-4.18.1.0","-package-id","containers-0.6.7","-package-id","exceptions-0.10.7","-package-id","lens-5.2.3-3d1ef8861e444ac2150eafde720d971d45efdcaf","-XHaskell2010","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\lib/rl_bindings.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\lib/rl_internal.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\lib/rlgl_bindings.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/raudio.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/rcore.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/rmodels.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/rshapes.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/rtext.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/rtextures.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/utils.o","C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80\\build\\x86_64-windows\\ghc-9.6.3\\h-raylib-5.0.0.1\\build\\raylib/src/rglfw.o","Raylib.Core","Raylib.Core.Audio","Raylib.Core.Camera","Raylib.Core.Models","Raylib.Core.Shapes","Raylib.Core.Text","Raylib.Core.Textures","Raylib.Types","Raylib.Util","Raylib.Util.Camera","Raylib.Util.Colors","Raylib.Util.Lenses","Raylib.Util.Math","Raylib.Util.RLGL","Raylib.ForeignUtil","Raylib.Internal","Raylib.Native","-hide-all-packages"], componentRoot = "C:\\Anand\\Haskell\\h-raylib", componentDependencies = ["h-raylib.cabal","cabal.project","cabal.project.local"]},"C:\\ghcup\\ghc\\9.6.3\\lib") 2024-01-14T22:52:28.169977Z | Info | Interface files cache directory: C:\Users\Anand Swaroop\AppData\Local\ghcide\h-raylib-5.0.0.1-inplace-d189ddbc3d72142cd04211870e8b3d614e499591 2024-01-14T22:52:28.169977Z | Info | Making new HscEnv. In-place unit ids: [h-raylib-5.0.0.1-inplace] 2024-01-14T22:52:28.226442Z | Debug | New component cache HscEnvEq: (([],Just HscEnvEq 4),fromList [("C:\\Anand\\Haskell\\h-raylib\\hie.yaml",Just 2024-01-14 22:27:23.0512301 UTC),("cabal.project",Just 2023-10-14 01:59:31.0671537 UTC),("cabal.project.local",Nothing),("h-raylib.cabal",Just 2024-01-14 22:27:29.3363122 UTC)]) 2024-01-14T22:52:28.373943Z | Debug | Known files updated: fromList [(TargetModule (ModuleName "Raylib.Native"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Native.hs"]),(TargetModule (ModuleName "Raylib.Util.Colors"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Colors.hs"]),(TargetModule (ModuleName "Raylib.Internal"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Internal.hs"]),(TargetModule (ModuleName "Raylib.Util"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util.hs"]),(TargetModule (ModuleName "Raylib.Util.Camera"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Camera.hs"]),(TargetModule (ModuleName "Raylib.Core"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core.hs"]),(TargetModule (ModuleName "Raylib.Util.Lenses"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Lenses.hs"]),(TargetFile NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Camera.hs",fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Camera.hs"]),(TargetModule (ModuleName "Raylib.Core.Models"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Models.hs"]),(TargetModule (ModuleName "Raylib.Core.Shapes"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Shapes.hs"]),(TargetModule (ModuleName "Raylib.Core.Textures"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Textures.hs"]),(TargetModule (ModuleName "Raylib.Core.Audio"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Audio.hs"]),(TargetModule (ModuleName "Raylib.Core.Camera"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Camera.hs"]),(TargetModule (ModuleName "Raylib.Util.RLGL"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\RLGL.hs"]),(TargetModule (ModuleName "Raylib.Types"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Types.hs"]),(TargetModule (ModuleName "Raylib.Util.Math"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Math.hs"]),(TargetModule (ModuleName "Raylib.Core.Text"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Text.hs"]),(TargetModule (ModuleName "Raylib.ForeignUtil"),fromList ["C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\ForeignUtil.hs"])] 2024-01-14T22:52:28.377794Z | Debug | Finished build session AsyncCancelled 2024-01-14T22:52:28.378962Z | Debug | Restarting build session due to new component Action Queue: [User TypeCheck] Keys: [GhcSessionIO; , GetKnownTargets; ] Aborting previous build session took 0.00s 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Audio.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\basic-audio\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Shapes.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Math.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\ForeignUtil.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Native.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Types.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\camera-ray-collision\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Textures.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\RLGL.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Models.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Text.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Lenses.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\basic-shaders\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Camera.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\custom-font-text\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\basic-images\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\basic-window\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Camera.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\basic-rlgl\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\basic-automation-events\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Colors.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\postprocessing-effects\\src\\Main.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Internal.hs" 2024-01-14T22:52:28.387080Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\first-person-camera\\src\\Main.hs" 2024-01-14T22:52:28.388436Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\examples\\basic-models\\src\\Main.hs" 2024-01-14T22:52:28.784230Z | Info | Cradle path: examples\camera-ray-collision\src\Main.hs 2024-01-14T22:52:28.789545Z | Debug | Cradle: Cradle {cradleRootDir = "C:\\Anand\\Haskell\\h-raylib", cradleOptsProg = CradleAction: Cabal} 2024-01-14T22:52:28.790561Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache) 2024-01-14T22:52:28.790561Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir 2024-01-14T22:52:29.123084Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:29.126635Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Audio.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:29.234397Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Text.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:29.234397Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Native.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:29.278699Z | Debug | executing command: cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath) 2024-01-14T22:52:29.289006Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\RLGL.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:29.289006Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Camera.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:29.309537Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util\\Lenses.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:29.591505Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Util.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:36.492085Z | Debug | executing command: cabal --builddir=C:\Users\Anand Swaroop\AppData\Local\hie-bios\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80 v2-repl --with-compiler C:\Users\Anand Swaroop\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg C:\ghcup\ghc\9.6.3\bin\ghc-pkg-9.6.3.exe h-raylib:exe:camera-ray-collision 2024-01-14T22:52:36.735124Z | Debug | Build profile: -w ghc-9.6.3 -O1 2024-01-14T22:52:36.738125Z | Debug | In order, the following will be built (use -v for more details): 2024-01-14T22:52:36.738125Z | Debug | - h-raylib-5.0.0.1 (lib) (first run) 2024-01-14T22:52:36.739142Z | Debug | - h-raylib-5.0.0.1 (exe:camera-ray-collision) (first run) 2024-01-14T22:52:36.877751Z | Debug | Preprocessing library for h-raylib-5.0.0.1.. 2024-01-14T22:52:36.933042Z | Debug | Building library for h-raylib-5.0.0.1.. 2024-01-14T22:52:38.759168Z | Debug | C:/ghcup/ghc/9.6.3/lib/../mingw/bin/llvm-ar.exe: error: C:\\Users\\Anand\: No such file or directory 2024-01-14T22:52:38.788976Z | Debug | Error: cabal-3.10.1.0.exe: Failed to build h-raylib-5.0.0.1 (which is required 2024-01-14T22:52:38.802678Z | Debug | by exe:camera-ray-collision from h-raylib-5.0.0.1). 2024-01-14T22:52:38.803692Z | Debug | 2024-01-14T22:52:39.055223Z | Debug | Session loading result: Left [CradleError {cradleErrorDependencies = ["h-raylib.cabal","cabal.project","cabal.project.local"], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Failed to run [\"cabal\",\"v2-repl\",\"h-raylib:exe:camera-ray-collision\"] in directory \"C:\\Anand\\Haskell\\h-raylib\". Consult the logs for full command and error.","Failed command: cabal --builddir=C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80 v2-repl --with-compiler C:\\Users\\Anand Swaroop\\AppData\\Local\\hie-bios\\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg C:\\ghcup\\ghc\\9.6.3\\bin\\ghc-pkg-9.6.3.exe h-raylib:exe:camera-ray-collision","Build profile: -w ghc-9.6.3 -O1\nIn order, the following will be built (use -v for more details):\n - h-raylib-5.0.0.1 (lib) (first run)\n - h-raylib-5.0.0.1 (exe:camera-ray-collision) (first run)\nPreprocessing library for h-raylib-5.0.0.1..\nBuilding library for h-raylib-5.0.0.1..\n","C:/ghcup/ghc/9.6.3/lib/../mingw/bin/llvm-ar.exe: error: C:\\\\Users\\\\Anand\\: No such file or directory\nError: cabal-3.10.1.0.exe: Failed to build h-raylib-5.0.0.1 (which is required\nby exe:camera-ray-collision from h-raylib-5.0.0.1).\n\n","","Process Environment:","HIE_BIOS_GHC: C:\\ghcup\\ghc\\9.6.3\\bin\\ghc-9.6.3.exe","HIE_BIOS_GHC_ARGS: -BC:\\ghcup\\ghc\\9.6.3\\lib"]}] 2024-01-14T22:52:39.681476Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File: C:\Anand\Haskell\h-raylib\examples\camera-ray-collision\src\Main.hs Hidden: no Range: 1:1-2:1 Source: cradle Severity: DiagnosticSeverity_Error Message: Failed to run ["cabal","v2-repl","h-raylib:exe:camera-ray-collision"] in directory "C:\Anand\Haskell\h-raylib". Consult the logs for full command and error. Failed command: cabal --builddir=C:\Users\Anand Swaroop\AppData\Local\hie-bios\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80 v2-repl --with-compiler C:\Users\Anand Swaroop\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg C:\ghcup\ghc\9.6.3\bin\ghc-pkg-9.6.3.exe h-raylib:exe:camera-ray-collision Build profile: -w ghc-9.6.3 -O1 In order, the following will be built (use -v for more details): - h-raylib-5.0.0.1 (lib) (first run) - h-raylib-5.0.0.1 (exe:camera-ray-collision) (first run) Preprocessing library for h-raylib-5.0.0.1.. Building library for h-raylib-5.0.0.1.. C:/ghcup/ghc/9.6.3/lib/../mingw/bin/llvm-ar.exe: error: C:\\Users\\Anand\: No such file or directory Error: cabal-3.10.1.0.exe: Failed to build h-raylib-5.0.0.1 (which is required by exe:camera-ray-collision from h-raylib-5.0.0.1). Process Environment: HIE_BIOS_GHC: C:\ghcup\ghc\9.6.3\bin\ghc-9.6.3.exe HIE_BIOS_GHC_ARGS: -BC:\ghcup\ghc\9.6.3\lib 2024-01-14T22:52:40.024003Z | Info | Cradle path: examples\custom-font-text\src\Main.hs 2024-01-14T22:52:40.028128Z | Debug | Cradle: Cradle {cradleRootDir = "C:\\Anand\\Haskell\\h-raylib", cradleOptsProg = CradleAction: Cabal} 2024-01-14T22:52:40.031168Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache) 2024-01-14T22:52:40.035897Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir 2024-01-14T22:52:40.493271Z | Debug | executing command: cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath) 2024-01-14T22:52:40.772540Z | Debug | hlint: Using extensions for NormalizedFilePath "C:\\Anand\\Haskell\\h-raylib\\src\\Raylib\\Core\\Shapes.hs": [ MonomorphismRestriction , DeepSubsumption , RelaxedPolyRec , ForeignFunctionInterface , ImplicitPrelude , DoAndIfThenElse , EmptyDataDecls , PatternGuards , DatatypeContexts , TraditionalRecordSyntax , StarIsType , CUSKs , FieldSelectors ] 2024-01-14T22:52:41.906172Z | Info | hlint: updateFileDiagnostics published different from new diagnostics - file diagnostics: Fi ```

Paste the contents of extension specific log, you can check instructions about how to find it here

Extension log: ``` 2024-01-14 22:46:21.7440000 [client] INFO Finding haskell-language-server 2024-01-14 22:46:21.7470000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:21.9660000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:21.9670000 [client] INFO Executing 'ghcup --no-verbose upgrade' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:22.3840000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:22.6350000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:22.6370000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:22.9690000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:23.2110000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:23.2130000 [client] INFO Executing 'ghcup --no-verbose list -t cabal -c installed -r' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:23.7810000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:24.0520000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:24.0530000 [client] INFO Executing 'ghcup --no-verbose list -t stack -c installed -r' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:24.7590000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:24.9690000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:24.9700000 [client] INFO Executing 'ghcup --no-verbose whereis hls 2.5.0.0' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:25.1430000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:25.3430000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:25.3440000 [client] INFO Executing 'ghcup --no-verbose whereis cabal 3.10.1.0' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:25.5380000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:25.7410000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:25.7440000 [client] INFO Executing 'ghcup --no-verbose whereis stack 2.9.3' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:26.1190000 [client] INFO Executing 'ghc.exe --numeric-version' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:26.3440000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:26.5410000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:26.5430000 [client] INFO Executing 'ghcup --no-verbose run --hls 2.5.0.0 --cabal 3.10.1.0 --stack 2.9.3 --install' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:27.6760000 [client] INFO Working out the project GHC version. This might take a while... 2024-01-14 22:46:27.6780000 [client] INFO Executing 'haskell-language-server-wrapper --project-ghc-version' in cwd 'c:\Anand\Haskell\h-raylib' 2024-01-14 22:46:47.4820000 [client] INFO The GHC version for the project or file: 9.6.3 2024-01-14 22:46:47.6370000 [client] INFO Platform constants: Windows, A_64 2024-01-14 22:46:47.6380000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:47.8280000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:47.8290000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:48.1400000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:48.3300000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:48.3320000 [client] INFO Executing 'ghcup --no-verbose whereis bindir' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:48.4560000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:48.6380000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:48.6400000 [client] INFO Executing 'ghcup --no-verbose whereis hls 2.5.0.0' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:48.7470000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:48.9290000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:48.9300000 [client] INFO Executing 'ghcup --no-verbose whereis ghc 9.6.3' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:49.0370000 [client] INFO Checking for ghcup installation 2024-01-14 22:46:49.2210000 [client] INFO found ghcup at ghcup 2024-01-14 22:46:49.2230000 [client] INFO Executing 'ghcup --no-verbose run --hls 2.5.0.0 --cabal 3.10.1.0 --stack 2.9.3 --ghc 9.6.3 --install' in cwd 'C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code' 2024-01-14 22:46:50.7620000 [client] INFO Activating the language server in working dir: c:\Anand\Haskell\h-raylib (the workspace folder) 2024-01-14 22:46:50.7630000 [client] INFO run command: C:\ghcup\tmp\ghcup-ghc-9.6.3_cabal-3.10.1.0_hls-2.5.0.0_stack-2.9.3\haskell-language-server-wrapper.exe --lsp 2024-01-14 22:46:50.7630000 [client] INFO debug command: C:\ghcup\tmp\ghcup-ghc-9.6.3_cabal-3.10.1.0_hls-2.5.0.0_stack-2.9.3\haskell-language-server-wrapper.exe --lsp 2024-01-14 22:46:50.7630000 [client] INFO server environment variables: 2024-01-14 22:46:50.7630000 [client] INFO PATH=C:\ghcup\tmp\ghcup-ghc-9.6.3_cabal-3.10.1.0_hls-2.5.0.0_stack-2.9.3;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\cabal\bin;C:\Program Files\LLVM\bin;C:\Program Files\7-Zip;C:\mingw64\bin;C:\mingw64\x86_64-w64-mingw32\bin;C:\HaxeToolkit\haxe;C:\HaxeToolkit\neko;C:\Program Files\CMake\bin;C:\Program Files\Docker\Docker\resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Neovim\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2023.1.0\;C:\Program Files\ArrayFire\v3\lib;C:\tools\Manim\Scripts;C:\Program Files\PowerShell\7\;C:\emsdk;C:\emsdk\node\14.18.2_64bit\bin;C:\emsdk\upstream\emscripten;C:\Users\Anand Swaroop\AppData\Local\Microsoft\WindowsApps;C:\Users\Anand Swaroop\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Anand Swaroop\AppData\Roaming\npm;C:\ghcup\bin;C:\Users\Anand Swaroop\.dotnet\tools;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Users\Anand Swaroop\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;C:\Users\Anand Swaroop\AppData\Local\Microsoft\WindowsApps;C:\emsdk\java\8.152_64bit\bin;C:\Users\Anand Swaroop\.dotnet\tools 2024-01-14 22:46:50.7670000 [client] INFO Starting language server Found "c:\Anand\Haskell\h-raylib\hie.yaml" for "c:\Anand\Haskell\h-raylib\a" Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper-2.5.0.0.exe) Version 2.5.0.0 x86_64 ghc-9.4.8 Current directory: c:\Anand\Haskell\h-raylib Operating system: mingw32 Arguments: ["--lsp"] Cradle directory: c:\Anand\Haskell\h-raylib Cradle type: Cabal Tool versions found on the $PATH cabal: 3.10.1.0 stack: 2.9.3 ghc: 9.6.3 Consulting the cradle to get project GHC version... 2024-01-14T22:46:51.514572Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir 2024-01-14T22:46:52.593465Z | Debug | executing command: cabal exec -v0 -- ghc -package-env=- -ignore-dot-ghci -e Control.Monad.join (Control.Monad.fmap System.IO.putStr System.Environment.getExecutablePath) 2024-01-14T22:46:58.981945Z | Debug | executing command: cabal --builddir=C:\Users\Anand Swaroop\AppData\Local\hie-bios\dist-h-raylib-4e23a63ae2152cb903ce8d6b4d40ac80 v2-exec --with-compiler C:\Users\Anand Swaroop\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg C:\ghcup\ghc\9.6.3\bin\ghc-pkg-9.6.3.exe ghc -v0 -- --numeric-version Project GHC version: 9.6.3 haskell-language-server exe candidates: ["haskell-language-server-9.6.3.exe","haskell-language-server.exe"] Launching haskell-language-server exe at:C:\ghcup\bin\haskell-language-server-9.6.3.exe 2024-01-14T22:47:00.022206Z | Info | haskell-language-server version: 2.5.0.0 (GHC: 9.6.3) (PATH: C:\ghcup\bin\haskell-language-server-9.6.3~2.5.0.0.exe) 2024-01-14T22:47:00.023284Z | Info | Directory: c:\Anand\Haskell\h-raylib 2024-01-14T22:47:00.024633Z | Info | Starting (haskell-language-server) LSP server... GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsLogLevel = Info, argsLogFile = Nothing, argsLogStderr = True, argsLogClient = False, argsThreads = 0, argsProjectGhcVersion = False} PluginIds: [ pragmas-suggest , pragmas-completion , retrie , ghcide-completions , alternateNumberFormat , ghcide-code-actions-bindings , explicit-fields , ghcide-hover-and-symbols , ghcide-code-actions-type-signatures , fourmolu , ghcide-extend-import-action , ghcide-code-actions-fill-holes , importLens , LSPRecorderCallback , cabal , qualifyImportedNames , moduleName , splice , stylish-haskell , changeTypeSignature , hlint , class , ormolu , callHierarchy , stan , ghcide-type-lenses , codeRange , cabal-fmt , eval , rename , ghcide-code-actions-imports-exports , gadt , overloaded-record-dot , ghcide-core , explicit-fixity , pragmas-disable ] 2024-01-14T22:47:00.030783Z | Info | Logging heap statistics every 60.00s 2024-01-14T22:47:00.047409Z | Info | Starting LSP server... If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option! PluginIds: [ pragmas-suggest , pragmas-completion , retrie , ghcide-completions , alternateNumberFormat , ghcide-code-actions-bindings , explicit-fields , ghcide-hover-and-symbols , ghcide-code-actions-type-signatures , fourmolu , ghcide-extend-import-action , ghcide-code-actions-fill-holes , importLens , LSPRecorderCallback , cabal , qualifyImportedNames , moduleName , splice , stylish-haskell , changeTypeSignature , hlint , class , ormolu , callHierarchy , stan , ghcide-type-lenses , codeRange , cabal-fmt , eval , rename , ghcide-code-actions-imports-exports , gadt , overloaded-record-dot , ghcide-core , explicit-fixity , pragmas-disable ] 2024-01-14T22:47:00.048406Z | Info | Starting server 2024-01-14T22:47:00.058281Z | Info | Started LSP server in 0.01s 2024-01-14T22:47:07.265080Z | Info | Registering IDE configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri 1304118608023926449 "file:///C:/Anand/Haskell/h-raylib"], clientSettings = hashed Nothing} 2024-01-14T22:47:07.349099Z | Info | Cradle path: examples\basic-images\src\Main.hs 2024-01-14T22:47:07.352117Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache) [Error - 5:47:28 PM] Request textDocument/codeLens failed. Message: eval: Rule Failed: GetEvalComments Code: -32803 [Error - 5:47:28 PM] Request textDocument/foldingRange failed. Message: codeRange: Rule Failed: GetCodeRange Code: -32803 2024-01-14T22:48:00.036909Z | Info | Live bytes: 0.00MB Heap size: 0.00MB [Error - 5:48:14 PM] Request textDocument/codeLens failed. Message: eval: Rule Failed: GetEvalComments Code: -32803 2024-01-14T22:49:00.042746Z | Info | Live bytes: 0.00MB Heap size: 0.00MB 2024-01-14T22:50:00.050963Z | Info | Live bytes: 0.00MB Heap size: 0.00MB [Error - 5:50:41 PM] Request textDocument/codeLens failed. Message: eval: Rule Failed: GetEvalComments Code: -32803 2024-01-14T22:51:00.053025Z | Info | Live bytes: 0.00MB Heap size: 0.00MB [Error - 5:51:43 PM] Request textDocument/codeLens failed. Message: eval: Rule Failed: GetEvalComments Code: -32803 2024-01-14T22:52:00.059309Z | Info | Live bytes: 0.00MB Heap size: 0.00MB 2024-01-14T22:53:00.064894Z | Info | Live bytes: 0.00MB Heap size: 0.00MB 2024-01-14T22:54:00.080133Z | Info | Live bytes: 0.00MB Heap size: 0.00MB [Error - 5:54:16 PM] Request textDocument/foldingRange failed. Message: codeRange: Rule Failed: GetCodeRange Code: -32803 [Error - 5:54:16 PM] Request textDocument/codeLens failed. Message: eval: Rule Failed: GetEvalComments Code: -32803 ```
fendor commented 8 months ago

Hi, thank you for your bug report! This is an issue with HLS, moving it to the main repo.

fendor commented 8 months ago

Hm, I am wondering whether this issue is specific to a cabal version and whether we can reproduce it on linux as well.

fendor commented 8 months ago

In a test project cabal repl "--builddir=dist newstyle" "--with-ghc=ghc bin/ghc" all succeeded on linux with cabal-3.10.1.0. I will check whether it is windows specific.

Why am I not first checking for issues in hie-bios: I think we are using process, which I would expect to escape the parameters correctly.

Anut-py commented 8 months ago

In a test project cabal repl "--builddir=dist newstyle" "--with-ghc=ghc bin/ghc" all succeeded on linux with cabal-3.10.1.0.

I'd expect that to work because you added quotes around the parameters with spaces. The command that hls is running doesn't have quotes in it, that's the problem.

By the way, I'm using ghc 9.6.3, cabal 3.10.2.1, and hls 2.5.0.0.

fendor commented 8 months ago

I'd expect that to work because you added quotes around the parameters with spaces. The command that hls is running doesn't have quotes in it, that's the problem.

The logs do not give the full picture of what command is being run. If the build dir or the ghc path cannot be resolved, cabal should fail much earlier in my expectation.

fendor commented 8 months ago

It may be even a GHC bug: https://gitlab.haskell.org/ghc/ghc/-/issues/24265

Stack seems to have users that experience a similar issue: https://github.com/commercialhaskell/stack/issues/6380