vscode-haskell
vscode-haskell copied to clipboard
error when building: withBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic number)
i've been getting this error presumably whenever hls attempts to build the project. everything works fine when i just have a single file on its own, but if i create a cabal project then it doesn't work :(
Your environment
Which OS do you use: windows
Steps to reproduce
- create new folder
- run
cabal init - try launching the hls
i installed everything through ghcup. i also used implicit-hie to create the hie.yaml, but that didn't do anything.
Expected behaviour
it should build and run the server
Actual behaviour
instead, it just errors and (i think?) keeps retrying over and over
Include debug information
Debug output
Tool versions found on the $PATH
cabal: 3.10.2.1
stack: Not found
ghc: 9.4.8
Consulting the cradle to get project GHC version...
2024-01-14T02:03:02.191150Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir
2024-01-14T02:03:02.935708Z | 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-14T02:03:10.116964Z | Debug | executing command: cabal --builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-exec --with-compiler C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe ghc -v0 -- --numeric-version
Project GHC version: 9.4.8
haskell-language-server exe candidates: ["haskell-language-server-9.4.8.exe","haskell-language-server.exe"]
Launching haskell-language-server exe at:X:\ghcup\bin\haskell-language-server-9.4.8.exe
2024-01-14T02:03:12.109840Z | Info | haskell-language-server version: 2.5.0.0 (GHC: 9.4.8) (PATH: X:\ghcup\bin\haskell-language-server-9.4.8~2.5.0.0.exe)
2024-01-14T02:03:12.116840Z | Info | Directory: C:\Users\admin\Desktop\newhaskell
2024-01-14T02:03:12.120840Z | Info | Logging heap statistics every 60.00s
ghcide setup tester in C:\Users\admin\Desktop\newhaskell.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in C:\Users\admin\Desktop\newhaskell
Found 3 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
(C:\Users\admin\Desktop\newhaskell\hie.yaml)
Step 3/4: Initializing the IDE
2024-01-14T02:03:12.452842Z | Debug | Initializing exports map from hiedb
2024-01-14T02:03:12.508838Z | Debug | Shake session initialized
S2024-01-14T02:03:12.509841Z | Debug | Done initializing exports map from hiedb. Size: 0
tep 4/4: Type checking the files
2024-01-14T02:03:12.541840Z | Info | Cradle path: test\Main.hs
2024-01-14T02:03:12.542838Z | Debug | Cradle: Cradle {cradleRootDir = "C:\\Users\\admin\\Desktop\\newhaskell", cradleOptsProg = CradleAction: Cabal}
2024-01-14T02:03:12.610839Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-01-14T02:03:12.612838Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir
2024-01-14T02:03:12.958838Z | 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-14T02:03:21.268023Z | Debug | executing command: cabal --builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-repl --with-compiler C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe RueTesting:test:RueTesting-test
2024-01-14T02:03:21.650996Z | Debug | Build profile: -w ghc-9.4.8 -O1
2024-01-14T02:03:21.650996Z | Debug | In order, the following will be built (use -v for more details):
2024-01-14T02:03:21.651996Z | Debug | - RueTesting-0.1.0.0 (lib) (configuration changed)
2024-01-14T02:03:21.653002Z | Debug | - RueTesting-0.1.0.0 (test:RueTesting-test) (first run)
2024-01-14T02:03:21.741490Z | Debug | Configuring library for RueTesting-0.1.0.0..
2024-01-14T02:03:25.512031Z | Debug | Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error
2024-01-14T02:03:25.512031Z | Debug | (Error: cabal-3.10.2.1.exe: 'X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe' exited
2024-01-14T02:03:25.513032Z | Debug | with an error:
2024-01-14T02:03:25.514032Z | Debug | ghc-pkg-9.4.8.exe:
2024-01-14T02:03:25.514032Z | Debug | C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\packagedb\ghc-9.4.8\package.cache:
2024-01-14T02:03:25.515031Z | Debug | withBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic
2024-01-14T02:03:25.516027Z | Debug | number)
2024-01-14T02:03:25.516027Z | Debug | )
2024-01-14T02:03:25.517040Z | Debug |
2024-01-14T02:03:25.554034Z | Debug | Error: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0 (which is
2024-01-14T02:03:25.554034Z | Debug | required by test:RueTesting-test from RueTesting-0.1.0.0). The failure
2024-01-14T02:03:25.556030Z | Debug | occurred during the configure step.
2024-01-14T02:03:25.556030Z | Debug |
2024-01-14T02:03:25.665442Z | Debug | Session loading result: Left [CradleError {cradleErrorDependencies = ["RueTesting.cabal","cabal.project","cabal.project.local"], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Failed to run [\"cabal\",\"v2-repl\",\"RueTesting:test:RueTesting-test\"] in directory \"C:\\Users\\admin\\Desktop\\newhaskell\". Consult the logs for full command and error.","Failed command: cabal --builddir=C:\\Users\\admin\\AppData\\Local\\hie-bios\\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-repl --with-compiler C:\\Users\\admin\\AppData\\Local\\hie-bios\\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-pkg-9.4.8.exe RueTesting:test:RueTesting-test","Build profile: -w ghc-9.4.8 -O1\nIn order, the following will be built (use -v for more details):\n - RueTesting-0.1.0.0 (lib) (configuration changed)\n - RueTesting-0.1.0.0 (test:RueTesting-test) (first run)\nConfiguring library for RueTesting-0.1.0.0..\n","Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error\n(Error: cabal-3.10.2.1.exe: 'X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-pkg-9.4.8.exe' exited\nwith an error:\nghc-pkg-9.4.8.exe:\nC:\\Users\\admin\\AppData\\Local\\hie-bios\\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\\packagedb\\ghc-9.4.8\\package.cache:\nwithBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic\nnumber)\n)\n\nError: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0 (which is\nrequired by test:RueTesting-test from RueTesting-0.1.0.0). The failure\noccurred during the configure step.\n\n","","Process Environment:","HIE_BIOS_GHC: X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-9.4.8.exe","HIE_BIOS_GHC_ARGS: -BX:\\ghcup\\ghc\\9.4.8\\lib"]}]
2024-01-14T02:03:25.676443Z | Info | Cradle path: app\Main.hs
2024-01-14T02:03:25.678443Z | Debug | Cradle: Cradle {cradleRootDir = "C:\\Users\\admin\\Desktop\\newhaskell", cradleOptsProg = CradleAction: Cabal}
2024-01-14T02:03:25.679443Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-01-14T02:03:25.680441Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir
2024-01-14T02:03:25.686441Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File: C:\Users\admin\Desktop\newhaskell\test\Main.hs
Hidden: no
Range: 1:1-2:1
Source: cradle
Severity: DiagnosticSeverity_Error
Message:
Failed to run ["cabal","v2-repl","RueTesting:test:RueTesting-test"] in directory
"C:\Users\admin\Desktop\newhaskell". Consult the logs for full command and error.
Failed command: cabal
--builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00
v2-repl --with-compiler
C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg
X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe RueTesting:test:RueTesting-test
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
- RueTesting-0.1.0.0 (lib) (configuration changed)
- RueTesting-0.1.0.0 (test:RueTesting-test) (first run)
Configuring library for RueTesting-0.1.0.0..
Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error
(Error: cabal-3.10.2.1.exe: 'X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe' exited
with an error:
ghc-pkg-9.4.8.exe:
C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\packagedb\ghc-9.4.8\package.cache:
withBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic
number)
)
Error: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0 (which is
required by test:RueTesting-test from RueTesting-0.1.0.0). The failure
occurred during the configure step.
Process Environment:
HIE_BIOS_GHC: X:\ghcup\ghc\9.4.8\bin\ghc-9.4.8.exe
HIE_BIOS_GHC_ARGS: -BX:\ghcup\ghc\9.4.8\lib
2024-01-14T02:03:26.298775Z | 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-14T02:03:34.058473Z | Debug | executing command: cabal --builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-repl --with-compiler C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe RueTesting:exe:RueTesting
2024-01-14T02:03:34.177121Z | Debug | Build profile: -w ghc-9.4.8 -O1
2024-01-14T02:03:34.177121Z | Debug | In order, the following will be built (use -v for more details):
2024-01-14T02:03:34.179122Z | Debug | - RueTesting-0.1.0.0 (lib) (configuration changed)
2024-01-14T02:03:34.179122Z | Debug | - RueTesting-0.1.0.0 (exe:RueTesting) (cannot read state cache)
2024-01-14T02:03:34.208122Z | Debug | Configuring library for RueTesting-0.1.0.0..
2024-01-14T02:03:35.900516Z | Debug | Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error
2024-01-14T02:03:35.900516Z | Debug | (Error: cabal-3.10.2.1.exe: 'X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe' exited
2024-01-14T02:03:35.901507Z | Debug | with an error:
2024-01-14T02:03:35.901507Z | Debug | ghc-pkg-9.4.8.exe:
2024-01-14T02:03:35.902504Z | Debug | C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\packagedb\ghc-9.4.8\package.cache:
2024-01-14T02:03:35.902504Z | Debug | withBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic
2024-01-14T02:03:35.903506Z | Debug | number)
2024-01-14T02:03:35.904505Z | Debug | )
2024-01-14T02:03:35.905528Z | Debug |
2024-01-14T02:03:35.916534Z | Debug | Error: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0 (which is
2024-01-14T02:03:35.916534Z | Debug | required by exe:RueTesting from RueTesting-0.1.0.0). The failure occurred
2024-01-14T02:03:35.917505Z | Debug | during the configure step.
2024-01-14T02:03:35.918506Z | Debug |
2024-01-14T02:03:35.929505Z | Debug | Session loading result: Left [CradleError {cradleErrorDependencies = ["RueTesting.cabal","cabal.project","cabal.project.local"], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Failed to run [\"cabal\",\"v2-repl\",\"RueTesting:exe:RueTesting\"] in directory \"C:\\Users\\admin\\Desktop\\newhaskell\". Consult the logs for full command and error.","Failed command: cabal --builddir=C:\\Users\\admin\\AppData\\Local\\hie-bios\\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-repl --with-compiler C:\\Users\\admin\\AppData\\Local\\hie-bios\\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-pkg-9.4.8.exe RueTesting:exe:RueTesting","Build profile: -w ghc-9.4.8 -O1\nIn order, the following will be built (use -v for more details):\n - RueTesting-0.1.0.0 (lib) (configuration changed)\n - RueTesting-0.1.0.0 (exe:RueTesting) (cannot read state cache)\nConfiguring library for RueTesting-0.1.0.0..\n","Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error\n(Error: cabal-3.10.2.1.exe: 'X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-pkg-9.4.8.exe' exited\nwith an error:\nghc-pkg-9.4.8.exe:\nC:\\Users\\admin\\AppData\\Local\\hie-bios\\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\\packagedb\\ghc-9.4.8\\package.cache:\nwithBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic\nnumber)\n)\n\nError: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0 (which is\nrequired by exe:RueTesting from RueTesting-0.1.0.0). The failure occurred\nduring the configure step.\n\n","","Process Environment:","HIE_BIOS_GHC: X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-9.4.8.exe","HIE_BIOS_GHC_ARGS: -BX:\\ghcup\\ghc\\9.4.8\\lib"]}]
2024-01-14T02:03:35.931507Z | Info | Cradle path: src\MyLib.hs
2024-01-14T02:03:35.933508Z | Debug | Cradle: Cradle {cradleRootDir = "C:\\Users\\admin\\Desktop\\newhaskell", cradleOptsProg = CradleAction: Cabal}
2024-01-14T02:03:35.933508Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File: C:\Users\admin\Desktop\newhaskell\app\Main.hs
Hidden: no
Range: 1:1-2:1
Source: cradle
Severity: DiagnosticSeverity_Error
Message:
Failed to run ["cabal","v2-repl","RueTesting:exe:RueTesting"] in directory
"C:\Users\admin\Desktop\newhaskell". Consult the logs for full command and error.
Failed command: cabal
--builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00
v2-repl --with-compiler
C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg
X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe RueTesting:exe:RueTesting
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
- RueTesting-0.1.0.0 (lib) (configuration changed)
- RueTesting-0.1.0.0 (exe:RueTesting) (cannot read state cache)
Configuring library for RueTesting-0.1.0.0..
Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error
(Error: cabal-3.10.2.1.exe: 'X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe' exited
with an error:
ghc-pkg-9.4.8.exe:
C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\packagedb\ghc-9.4.8\package.cache:
withBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic
number)
)
Error: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0 (which is
required by exe:RueTesting from RueTesting-0.1.0.0). The failure occurred
during the configure step.
Process Environment:
HIE_BIOS_GHC: X:\ghcup\ghc\9.4.8\bin\ghc-9.4.8.exe
HIE_BIOS_GHC_ARGS: -BX:\ghcup\ghc\9.4.8\lib
2024-01-14T02:03:35.933508Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-01-14T02:03:35.963505Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir
2024-01-14T02:03:36.393401Z | 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-14T02:03:44.361575Z | Debug | executing command: cabal --builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-repl --with-compiler C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe lib:RueTesting
2024-01-14T02:03:44.482601Z | Debug | Build profile: -w ghc-9.4.8 -O1
2024-01-14T02:03:44.482601Z | Debug | In order, the following will be built (use -v for more details):
2024-01-14T02:03:44.483575Z | Debug | - RueTesting-0.1.0.0 (lib) (configuration changed)
2024-01-14T02:03:44.513573Z | Debug | Configuring library for RueTesting-0.1.0.0..
2024-01-14T02:03:46.289387Z | Debug | Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error
2024-01-14T02:03:46.289387Z | Debug | (Error: cabal-3.10.2.1.exe: 'X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe' exited
2024-01-14T02:03:46.291374Z | Debug | with an error:
2024-01-14T02:03:46.292374Z | Debug | ghc-pkg-9.4.8.exe:
2024-01-14T02:03:46.292374Z | Debug | C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\packagedb\ghc-9.4.8\package.cache:
2024-01-14T02:03:46.293373Z | Debug | withBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic
2024-01-14T02:03:46.294377Z | Debug | number)
2024-01-14T02:03:46.294377Z | Debug | )
2024-01-14T02:03:46.295377Z | Debug |
2024-01-14T02:03:46.305404Z | Debug | Error: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0. The failure
2024-01-14T02:03:46.305404Z | Debug | occurred during the configure step.
2024-01-14T02:03:46.306378Z | Debug |
2024-01-14T02:03:46.315376Z | Debug | Session loading result: Left [CradleError {cradleErrorDependencies = ["RueTesting.cabal","cabal.project","cabal.project.local"], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Failed to run [\"cabal\",\"v2-repl\",\"lib:RueTesting\"] in directory \"C:\\Users\\admin\\Desktop\\newhaskell\". Consult the logs for full command and error.","Failed command: cabal --builddir=C:\\Users\\admin\\AppData\\Local\\hie-bios\\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-repl --with-compiler C:\\Users\\admin\\AppData\\Local\\hie-bios\\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-pkg-9.4.8.exe lib:RueTesting","Build profile: -w ghc-9.4.8 -O1\nIn order, the following will be built (use -v for more details):\n - RueTesting-0.1.0.0 (lib) (configuration changed)\nConfiguring library for RueTesting-0.1.0.0..\n","Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error\n(Error: cabal-3.10.2.1.exe: 'X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-pkg-9.4.8.exe' exited\nwith an error:\nghc-pkg-9.4.8.exe:\nC:\\Users\\admin\\AppData\\Local\\hie-bios\\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\\packagedb\\ghc-9.4.8\\package.cache:\nwithBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic\nnumber)\n)\n\nError: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0. The failure\noccurred during the configure step.\n\n","","Process Environment:","HIE_BIOS_GHC: X:\\ghcup\\ghc\\9.4.8\\bin\\ghc-9.4.8.exe","HIE_BIOS_GHC_ARGS: -BX:\\ghcup\\ghc\\9.4.8\\lib"]}]
2024-01-14T02:03:46.317375Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File: C:\Users\admin\Desktop\newhaskell\src\MyLib.hs
Hidden: no
Range: 1:1-2:1
Source: cradle
Severity: DiagnosticSeverity_Error
Message:
Failed to run ["cabal","v2-repl","lib:RueTesting"] in directory
"C:\Users\admin\Desktop\newhaskell". Consult the logs for full command and error.
Failed command: cabal
--builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00
v2-repl --with-compiler
C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg
X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe lib:RueTesting
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
- RueTesting-0.1.0.0 (lib) (configuration changed)
Configuring library for RueTesting-0.1.0.0..
Error: cabal-3.10.2.1.exe: ghc-pkg dump failed: dieVerbatim: user error
(Error: cabal-3.10.2.1.exe: 'X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe' exited
with an error:
ghc-pkg-9.4.8.exe:
C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00\packagedb\ghc-9.4.8\package.cache:
withBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic
number)
)
Error: cabal-3.10.2.1.exe: Failed to build RueTesting-0.1.0.0. The failure
occurred during the configure step.
Process Environment:
HIE_BIOS_GHC: X:\ghcup\ghc\9.4.8\bin\ghc-9.4.8.exe
HIE_BIOS_GHC_ARGS: -BX:\ghcup\ghc\9.4.8\lib
2024-01-14T02:03:46.336374Z | Debug | Finished: User TypeCheck Took: 33.80s
2024-01-14T02:03:46.337377Z | Debug | Finished: GetHie Took: 0.00s
F2024-01-14T02:03:46.338380Z | Debug | Finished: GenerateCore Took: 0.00s
iles that failed:
* C:\Users\admin\Desktop\newhaskell\app\Main.hs
* C:\Users\admin\Desktop\newhaskell\src\MyLib.hs
* C:\Users\admin\Desktop\newhaskell\test\Main.hs
Completed (0 files worked, 3 files failed)
Extension log
2024-01-14 01:44:11.1180000 [client] INFO Finding haskell-language-server
2024-01-14 01:44:11.1200000 [client] INFO Checking for ghcup installation
2024-01-14 01:44:11.8140000 [client] INFO found ghcup at ghcup
2024-01-14 01:44:11.8160000 [client] INFO Executing 'ghcup --no-verbose upgrade' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:15.0330000 [client] INFO Checking for ghcup installation
2024-01-14 01:44:15.2580000 [client] INFO found ghcup at ghcup
2024-01-14 01:44:15.2580000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:15.7170000 [client] INFO Checking for ghcup installation
2024-01-14 01:44:15.9350000 [client] INFO found ghcup at ghcup
2024-01-14 01:44:15.9360000 [client] INFO Executing 'ghcup --no-verbose list -t cabal -c installed -r' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:16.4150000 [client] INFO Checking for ghcup installation
2024-01-14 01:44:16.5740000 [client] INFO found ghcup at ghcup
2024-01-14 01:44:16.5740000 [client] INFO Executing 'ghcup --no-verbose list -t stack -c installed -r' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:16.9410000 [client] INFO Checking for ghcup installation
2024-01-14 01:44:17.1160000 [client] INFO found ghcup at ghcup
2024-01-14 01:44:17.1170000 [client] INFO Executing 'ghcup --no-verbose whereis hls 2.5.0.0' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:17.2400000 [client] INFO Checking for ghcup installation
2024-01-14 01:44:17.3970000 [client] INFO found ghcup at ghcup
2024-01-14 01:44:17.3970000 [client] INFO Executing 'ghcup --no-verbose whereis cabal 3.10.2.1' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:17.4970000 [client] INFO Checking for ghcup installation
2024-01-14 01:44:17.6780000 [client] INFO found ghcup at ghcup
2024-01-14 01:44:17.6790000 [client] INFO Executing 'ghcup --no-verbose whereis stack 2.13.1' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:17.9080000 [client] INFO Executing 'ghc.exe --numeric-version' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:18.8750000 [client] INFO Checking for ghcup installation
2024-01-14 01:44:19.0300000 [client] INFO found ghcup at ghcup
2024-01-14 01:44:19.0310000 [client] INFO Executing 'ghcup --no-verbose run --hls 2.5.0.0 --cabal 3.10.2.1 --stack 2.13.1 --install' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:44:20.0330000 [client] INFO Working out the project GHC version. This might take a while...
2024-01-14 01:44:20.0350000 [client] INFO Executing 'haskell-language-server-wrapper --project-ghc-version' in cwd 'c:\Users\admin\Desktop\newhaskell'
2024-01-14 01:45:01.9480000 [client] INFO The GHC version for the project or file: 9.4.8
2024-01-14 01:45:02.3030000 [client] INFO Platform constants: Windows, A_64
2024-01-14 01:45:02.3030000 [client] INFO Checking for ghcup installation
2024-01-14 01:45:02.4770000 [client] INFO found ghcup at ghcup
2024-01-14 01:45:02.4780000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:45:03.0420000 [client] INFO Checking for ghcup installation
2024-01-14 01:45:03.2080000 [client] INFO found ghcup at ghcup
2024-01-14 01:45:03.2090000 [client] INFO Executing 'ghcup --no-verbose whereis bindir' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:45:03.3050000 [client] INFO Checking for ghcup installation
2024-01-14 01:45:03.4720000 [client] INFO found ghcup at ghcup
2024-01-14 01:45:03.4730000 [client] INFO Executing 'ghcup --no-verbose whereis hls 2.5.0.0' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:45:03.5620000 [client] INFO Checking for ghcup installation
2024-01-14 01:45:03.7230000 [client] INFO found ghcup at ghcup
2024-01-14 01:45:03.7230000 [client] INFO Executing 'ghcup --no-verbose whereis ghc 9.4.8' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:45:03.8070000 [client] INFO Checking for ghcup installation
2024-01-14 01:45:03.9690000 [client] INFO found ghcup at ghcup
2024-01-14 01:45:03.9700000 [client] INFO Executing 'ghcup --no-verbose run --hls 2.5.0.0 --cabal 3.10.2.1 --stack 2.13.1 --ghc 9.4.8 --install' in cwd 'C:\Users\admin\AppData\Local\Programs\Microsoft VS Code'
2024-01-14 01:45:05.8560000 [client] INFO Activating the language server in working dir: c:\Users\admin\Desktop\newhaskell (the workspace folder)
2024-01-14 01:45:05.8570000 [client] INFO run command: X:\ghcup\tmp\ghcup-ghc-9.4.8_cabal-3.10.2.1_hls-2.5.0.0_stack-2.13.1\haskell-language-server-wrapper.exe --lsp
2024-01-14 01:45:05.8570000 [client] INFO debug command: X:\ghcup\tmp\ghcup-ghc-9.4.8_cabal-3.10.2.1_hls-2.5.0.0_stack-2.13.1\haskell-language-server-wrapper.exe --lsp
2024-01-14 01:45:05.8570000 [client] INFO server environment variables:
2024-01-14 01:45:05.8570000 [client] INFO PATH=X:\ghcup\tmp\ghcup-ghc-9.4.8_cabal-3.10.2.1_hls-2.5.0.0_stack-2.13.1;;C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;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:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files\PuTTY\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Users\admin\.cargo\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\admin\AppData\Local\Programs\Python\Python38\;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\AppData\Roaming\npm;C:\Users\admin\.dotnet\tools;C:\Program Files\Java\jdk-14.0.2\bin;C:\Program Files\apache-maven-3.6.3\bin;C:\Python36-32;C:\Python36-32\Lib\site-packages;C:\Python36-32\Scripts;C:\Users\admin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.dotnet\tools;C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;C:\Program Files\Git\cmd;C:\Users\admin\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files (x86)\Calibre2\;C:\Program Files\nodejs\;C:\Program Files\erl-24.1.7\bin;C:\Program Files (x86)\Elixir\bin;C:\WINDOWS\system32\config\systemprofile\.mix\escripts;C:\Program Files\GitHub CLI\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\dotnet\;X:\qt\6.2.2\mingw_64\bin;C:\Users\admin\.windows-build-tools\python27\;C:\Users\admin\.windows-build-tools\python27\;C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\admin\AppData\Local\Programs\Python\Python38\;C:\Users\admin\.cargo\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.dotnet\tools;C:\Program Files\Java\jdk-14.0.2\bin;C:\Program Files\apache-maven-3.6.3\bin;C:\Python36-32;C:\Python36-32\Lib\site-packages;C:\Python36-32\Scripts;C:\Users\admin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.dotnet\tools;C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;C:\Users\admin\Downloads\ffmpeg-2021-06-30-git-de8e6e67e7-essentials_build\ffmpeg-2021-06-30-git-de8e6e67e7-essentials_build\bin;C:\Users\admin\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\admin\.dotnet\tools;C:\Users\admin\go\bin;C:\sqlite;C:\Users\admin\AppData\Roaming\npm;"C:\Program Files\PostgreSQL\14\bin;C:;C:\Users\admin\.dotnet\tools;X:\ghcup\bin";X:\ghcup\bin;
2024-01-14 01:45:05.8660000 [client] INFO Starting language server
Found "c:\Users\admin\Desktop\newhaskell\hie.yaml" for "c:\Users\admin\Desktop\newhaskell\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:\Users\admin\Desktop\newhaskell
Operating system: mingw32
Arguments: ["--lsp"]
Cradle directory: c:\Users\admin\Desktop\newhaskell
Cradle type: Cabal
Tool versions found on the $PATH
cabal: 3.10.2.1
stack: 2.13.1
ghc: 9.4.8
Consulting the cradle to get project GHC version...
2024-01-14T01:45:07.528375Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir
2024-01-14T01:45:08.819376Z | 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-14T01:45:42.919425Z | Debug | executing command: cabal --builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-exec --with-compiler C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe ghc -v0 -- --numeric-version
Project GHC version: 9.4.8
haskell-language-server exe candidates: ["haskell-language-server-9.4.8.exe","haskell-language-server.exe"]
Launching haskell-language-server exe at:X:\ghcup\bin\haskell-language-server-9.4.8.exe
2024-01-14T01:45:44.374205Z | Info | haskell-language-server version: 2.5.0.0 (GHC: 9.4.8) (PATH: X:\ghcup\bin\haskell-language-server-9.4.8~2.5.0.0.exe)
2024-01-14T01:45:44.734220Z | Info | Directory: c:\Users\admin\Desktop\newhaskell
2024-01-14T01:45:44.734220Z | 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
, floskell
, 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-14T01:45:44.761206Z | Info | Logging heap statistics every 60.00s
2024-01-14T01:45:45.039201Z | 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
, floskell
, 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-14T01:45:45.060200Z | Info | Starting server
2024-01-14T01:45:45.859580Z | Info | Started LSP server in 0.82s
2024-01-14T01:45:54.375790Z | Info | Registering IDE configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri (-7636311252800742937) "file:///C:/Users/admin/Desktop/newhaskell"], clientSettings = hashed Nothing}
2024-01-14T01:45:54.417790Z | Info | Cradle path: app\Main.hs
2024-01-14T01:45:54.418791Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-01-14T01:46:15.801156Z | Info | Cradle path: test\Main.hs
2024-01-14T01:46:15.803161Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
[Error - 7:46:16 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:46:16 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
2024-01-14T01:46:44.937497Z | Info | Live bytes: 23.81MB Heap size: 580.91MB
2024-01-14T01:47:44.949091Z | Info | Live bytes: 23.81MB Heap size: 580.91MB
2024-01-14T01:48:44.958573Z | Info | Live bytes: 23.81MB Heap size: 580.91MB
[Error - 7:49:39 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
2024-01-14T01:49:44.969294Z | Info | Live bytes: 23.81MB Heap size: 580.91MB
[Error - 7:49:51 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
2024-01-14T01:50:44.972377Z | Info | Live bytes: 23.81MB Heap size: 580.91MB
[Error - 7:51:21 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:51:23 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:51:23 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:51:29 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:51:29 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
2024-01-14T01:51:44.974489Z | Info | Live bytes: 23.81MB Heap size: 580.91MB
[Error - 7:51:45 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:51:45 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:51:51 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:51:51 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:52:20 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:52:20 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:52:22 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Info - 7:52:25 PM] Stopping the server
[Info - 7:52:25 PM] Starting the server
2024-01-14T01:52:25.208739Z | Info | Reactor thread stopped
2024-01-14T01:52:25.209739Z | Error | Got EOF
Found "c:\Users\admin\Desktop\newhaskell\hie.yaml" for "c:\Users\admin\Desktop\newhaskell\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:\Users\admin\Desktop\newhaskell
Operating system: mingw32
Arguments: ["--lsp"]
Cradle directory: c:\Users\admin\Desktop\newhaskell
Cradle type: Cabal
Tool versions found on the $PATH
cabal: 3.10.2.1
stack: 2.13.1
ghc: 9.4.8
Consulting the cradle to get project GHC version...
2024-01-14T01:52:25.586732Z | Debug | executing command: cabal exec -v0 -- ghc --print-libdir
2024-01-14T01:52:29.358732Z | 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-14T01:52:37.644733Z | Debug | executing command: cabal --builddir=C:\Users\admin\AppData\Local\hie-bios\dist-newhaskell-7aad77034d14b34e468152d636cd5d00 v2-exec --with-compiler C:\Users\admin\AppData\Local\hie-bios\wrapper-340ffcbd9b6dc8c3bed91eb5c533e4e3.exe --with-hc-pkg X:\ghcup\ghc\9.4.8\bin\ghc-pkg-9.4.8.exe ghc -v0 -- --numeric-version
Project GHC version: 9.4.8
haskell-language-server exe candidates: ["haskell-language-server-9.4.8.exe","haskell-language-server.exe"]
Launching haskell-language-server exe at:X:\ghcup\bin\haskell-language-server-9.4.8.exe
2024-01-14T01:52:40.313760Z | Info | haskell-language-server version: 2.5.0.0 (GHC: 9.4.8) (PATH: X:\ghcup\bin\haskell-language-server-9.4.8~2.5.0.0.exe)
2024-01-14T01:52:40.314735Z | Info | Directory: c:\Users\admin\Desktop\newhaskell
2024-01-14T01:52:40.314735Z | 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
, floskell
, 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-14T01:52:40.320731Z | Info | Logging heap statistics every 60.00s
2024-01-14T01:52:40.326731Z | 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
, floskell
, 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-14T01:52:40.327731Z | Info | Starting server
2024-01-14T01:52:40.333732Z | Info | Started LSP server in 0.01s
2024-01-14T01:52:49.224735Z | Info | Registering IDE configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri (-7636311252800742937) "file:///C:/Users/admin/Desktop/newhaskell"], clientSettings = hashed Nothing}
2024-01-14T01:52:49.263735Z | Info | Cradle path: app\Main.hs
2024-01-14T01:52:49.265735Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2024-01-14T01:53:04.660918Z | Info | Cradle path: test\Main.hs
2024-01-14T01:53:04.662922Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
[Error - 7:53:04 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:53:04 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:53:04 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:53:13 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:53:13 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:53:15 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:53:15 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
2024-01-14T01:53:40.332758Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
[Error - 7:53:43 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:53:43 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:53:48 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
2024-01-14T01:54:40.342283Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
[Error - 7:54:42 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
2024-01-14T01:55:40.352309Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T01:56:40.364039Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
[Error - 7:56:54 PM] Request textDocument/foldingRange failed.
Message: codeRange: Rule Failed: GetCodeRange
Code: -32803
[Error - 7:56:54 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:57:01 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
[Error - 7:57:15 PM] Request textDocument/codeLens failed.
Message: eval: Rule Failed: GetEvalComments
Code: -32803
2024-01-14T01:57:40.377714Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T01:58:40.382978Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T01:59:40.397593Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T02:00:40.404020Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T02:01:40.406492Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T02:02:40.421801Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T02:03:40.425734Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T02:04:40.434483Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
2024-01-14T02:05:40.438717Z | Info | Live bytes: 23.66MB Heap size: 579.86MB
update; i deleted the package.cache file because i think it got corrupted or something, which got it work. i'm not too familiar with how hls works, but i think it'd be better if it deleted the cache if it errored.