haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 212 forks source link

error working with vscode:libHSghc-prim-0.5.3.so not found #1686

Closed peigongdsd closed 4 years ago

peigongdsd commented 4 years ago

It happens that the lib libHSghc-prim-0.5.3.so cannot be found.In fact, the lib is in /lib/ghc-8.8.3/ghc-prim-0.5.3/libHSghc-prim-0.5.3-ghc8.8.3.so, and simply creating links or running ldconfig does not work. After reporting the not-found error, the hie module continue to panic.Here's the log.

Details ``` 2021-03-08 11:48:53.297981152 [ThreadId 4] - Run entered for HIE(hie) Version 1.1 x86_64 ghc-8.6.5 2020-03-08 11:48:53.298256729 [ThreadId 4] - Operating as a LSP server on stdio 2020-03-08 11:48:53.298319294 [ThreadId 4] - Current directory:/home/krusl/code 2020-03-08 11:48:53.298374516 [ThreadId 4] - Operating system:linux 2020-03-08 11:48:53.298426308 [ThreadId 4] - args:["--lsp","-l","/home/krusl/hie.log"] 2020-03-08 11:48:53.301103974 [ThreadId 4] - Could not find a Project for file: /home/krusl/code/File.hs 2020-03-08 11:48:53.301310399 [ThreadId 4] - Module "/home/krusl/code/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:48:53.301479434 [ThreadId 4] - Executing GHC on path with args: --numeric-version 2020-03-08 11:48:53.416381377 [ThreadId 9] - Executing GHC on path with args: --print-libdir 2020-03-08 11:48:53.522792911 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:48:53.524003714 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:48:53.524269812 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:48:53.524401389 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:48:53.676739003 [ThreadId 20] - Ghc error on cradle initialisation: "can't load .so/.DLL for: libHSghc-prim-0.5.3.so (libHSghc-prim-0.5.3.so: cannot open shared object file: No such file or directory)" 2020-03-08 11:48:53.676853788 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"can't load .so/.DLL for: libHSghc-prim-0.5.3.so (libHSghc-prim-0.5.3.so: cannot open shared object file: No such file or directory)\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:48:53.677062834 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:48:53.678161906 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:48:53.67827825 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:48:53.678357633 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:48:53.748362009 [ThreadId 24] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:48:53.749071515 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:43.257469592 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:43.258395037 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:43.258528382 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.258591105 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.292585204 [ThreadId 27] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:43.29269536 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:43.344959765 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:43.346210903 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:43.346322587 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.34638277 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.42377292 [ThreadId 29] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:43.424019362 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:43.446624217 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:43.447408407 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:43.489717385 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.489924086 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.54255099 [ThreadId 33] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:43.542681084 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:43.547748324 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:43.548503137 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:43.548581922 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.548669004 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.628646164 [ThreadId 35] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:43.62907203 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:43.892886416 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:43.894072685 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:43.894178038 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.894243489 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.99055602 [ThreadId 38] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:43.990680519 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:43.990842642 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:43.991698464 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:43.991756909 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:43.991810557 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:44.055611522 [ThreadId 41] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:44.055720372 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:45.415090491 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:45.416680644 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:45.4168033 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:45.416906092 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:45.460658439 [ThreadId 44] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:45.460819652 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:45.4897096 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:45.490785636 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:45.490910158 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:45.49097379 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:45.562420146 [ThreadId 46] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:45.562570864 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:45.562781959 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:45.563945763 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:45.564022732 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:45.564076304 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:45.652245633 [ThreadId 49] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:45.652381712 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:45.913926743 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:45.918156707 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:45.918446744 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:45.918747994 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.023454301 [ThreadId 53] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:46.023715311 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:46.023910518 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:46.02478132 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:46.024835408 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.024876047 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.049744225 [ThreadId 56] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:46.050009227 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:46.074606439 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:46.105884854 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:46.105971292 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.106016828 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.13851125 [ThreadId 59] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:46.138656132 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:46.426327676 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:46.428890856 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:46.429070016 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.429182791 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.504012409 [ThreadId 61] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:46.50413312 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:46.504484491 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:46.506959032 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:46.507196802 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.507299087 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.581899828 [ThreadId 64] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:46.582437625 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:46.803154113 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:46.804729489 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:46.804862432 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.805004187 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:46.888292587 [ThreadId 68] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:46.88883687 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:47.005146435 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:47.005937507 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:47.006006778 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.006057899 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.061951389 [ThreadId 71] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:47.063011971 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:47.122567662 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:47.123419314 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:47.123491408 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.123583347 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.183540486 [ThreadId 74] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:47.186495061 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:47.225531102 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:47.226292825 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:47.226354116 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.226409316 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.288235591 [ThreadId 77] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:47.289182546 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:47.576993887 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:47.578826378 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:47.578929903 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.578987455 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.641102033 [ThreadId 80] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:47.641797421 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 11:59:47.642006233 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 11:59:47.642559576 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 11:59:47.642623108 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.642896084 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 11:59:47.718226585 [ThreadId 83] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 11:59:47.718394933 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:03:04.015942099 [ThreadId 4] - Run entered for HIE(hie) Version 1.1 x86_64 ghc-8.6.5 2020-03-08 12:03:04.016248323 [ThreadId 4] - Operating as a LSP server on stdio 2020-03-08 12:03:04.016318088 [ThreadId 4] - Current directory:/home/krusl/code 2020-03-08 12:03:04.01637771 [ThreadId 4] - Operating system:linux 2020-03-08 12:03:04.016437248 [ThreadId 4] - args:["--lsp","-l","/home/krusl/hie.log"] 2020-03-08 12:03:04.022609909 [ThreadId 4] - Could not find a Project for file: /home/krusl/code/File.hs 2020-03-08 12:03:04.022703999 [ThreadId 4] - Module "/home/krusl/code/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:03:04.022871502 [ThreadId 4] - Executing GHC on path with args: --numeric-version 2020-03-08 12:03:04.0951576 [ThreadId 9] - Executing GHC on path with args: --print-libdir 2020-03-08 12:03:04.187266668 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:03:04.191736379 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:03:04.191848983 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:03:04.191915797 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:03:04.321567384 [ThreadId 20] - Ghc error on cradle initialisation: "unable to load package `ghc-prim-0.5.3'" 2020-03-08 12:03:04.321695423 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"unable to load package `ghc-prim-0.5.3'\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:03:04.321957627 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:03:04.322812975 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:03:04.322907984 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:03:04.32297472 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:03:04.390289209 [ThreadId 24] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 12:03:04.390422949 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:07:07.582008176 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:07:07.583000355 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:07:07.583087014 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:07:07.583142579 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:07:07.623580193 [ThreadId 27] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 12:07:07.623710438 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:07:07.933477496 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:07:07.936107926 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:07:07.936231316 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:07:07.936299665 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:07:07.988306381 [ThreadId 29] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 12:07:07.988427776 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:07:07.989150939 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:07:07.989764462 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:07:07.98982145 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:07:07.989859741 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:07:08.072684879 [ThreadId 32] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 12:07:08.072798994 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:21:48.37274723 [ThreadId 4] - Run entered for HIE(hie) Version 1.1 x86_64 ghc-8.6.5 2020-03-08 12:21:48.373053526 [ThreadId 4] - Operating as a LSP server on stdio 2020-03-08 12:21:48.373121287 [ThreadId 4] - Current directory:/home/krusl/code 2020-03-08 12:21:48.373213467 [ThreadId 4] - Operating system:linux 2020-03-08 12:21:48.373281271 [ThreadId 4] - args:["--lsp","-l","/home/krusl/hie.log"] 2020-03-08 12:21:48.376782784 [ThreadId 4] - Could not find a Project for file: /home/krusl/code/File.hs 2020-03-08 12:21:48.377185582 [ThreadId 4] - Module "/home/krusl/code/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:21:48.377399453 [ThreadId 4] - Executing GHC on path with args: --numeric-version 2020-03-08 12:21:48.501990586 [ThreadId 9] - Executing GHC on path with args: --print-libdir 2020-03-08 12:21:48.641980364 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:21:48.643742867 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:21:48.643958457 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:21:48.644073568 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:21:48.841033279 [ThreadId 19] - Ghc error on cradle initialisation: "unable to load package `ghc-prim-0.5.3'" 2020-03-08 12:21:48.841185402 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"unable to load package `ghc-prim-0.5.3'\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:21:48.841512725 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:21:48.843097087 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:21:48.843220417 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:21:48.8432944 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:21:48.971171673 [ThreadId 23] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 12:21:48.975069564 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:25:15.788732483 [ThreadId 4] - Run entered for HIE(hie) Version 1.1 x86_64 ghc-8.6.5 2020-03-08 12:25:15.788983083 [ThreadId 4] - Operating as a LSP server on stdio 2020-03-08 12:25:15.789044771 [ThreadId 4] - Current directory:/home/krusl/code 2020-03-08 12:25:15.789100121 [ThreadId 4] - Operating system:linux 2020-03-08 12:25:15.789151784 [ThreadId 4] - args:["--lsp","-l","/home/krusl/hie.log"] 2020-03-08 12:25:15.791098265 [ThreadId 4] - Could not find a Project for file: /home/krusl/code/File.hs 2020-03-08 12:25:15.79116932 [ThreadId 4] - Module "/home/krusl/code/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:25:15.791291567 [ThreadId 4] - Executing GHC on path with args: --numeric-version 2020-03-08 12:25:15.902778499 [ThreadId 9] - Executing GHC on path with args: --print-libdir 2020-03-08 12:25:16.101994981 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:25:16.103667958 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:25:16.103795602 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:25:16.110266827 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:25:16.298250103 [ThreadId 19] - Ghc error on cradle initialisation: "unable to load package `ghc-prim-0.5.3'" 2020-03-08 12:25:16.298419161 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"unable to load package `ghc-prim-0.5.3'\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:25:16.300503509 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:25:16.304563876 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:25:16.305194408 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:25:16.305900123 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:25:16.407925192 [ThreadId 23] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 12:25:16.408046431 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:28:28.710772642 [ThreadId 4] - Run entered for HIE(hie) Version 1.1 x86_64 ghc-8.6.5 2020-03-08 12:28:28.71137723 [ThreadId 4] - Operating as a LSP server on stdio 2020-03-08 12:28:28.71147805 [ThreadId 4] - Current directory:/home/krusl/code 2020-03-08 12:28:28.711558707 [ThreadId 4] - Operating system:linux 2020-03-08 12:28:28.7116507 [ThreadId 4] - args:["--lsp","-l","/home/krusl/hie.log"] 2020-03-08 12:28:28.72261775 [ThreadId 4] - Could not find a Project for file: /home/krusl/code/File.hs 2020-03-08 12:28:28.723734157 [ThreadId 4] - Module "/home/krusl/code/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:28:28.723944341 [ThreadId 4] - Executing GHC on path with args: --numeric-version 2020-03-08 12:28:28.864840062 [ThreadId 9] - Executing GHC on path with args: --print-libdir 2020-03-08 12:28:29.076135703 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:28:29.077490041 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:28:29.077588592 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:28:29.077649418 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:28:29.325264354 [ThreadId 20] - Ghc error on cradle initialisation: "unable to load package `ghc-prim-0.5.3'" 2020-03-08 12:28:29.325905221 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"unable to load package `ghc-prim-0.5.3'\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:28:29.326132321 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:28:29.329664531 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:28:29.330109133 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:28:29.330345864 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:28:29.429628892 [ThreadId 24] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 12:28:29.430357967 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:42:33.592398762 [ThreadId 4] - Run entered for HIE(hie) Version 1.1 x86_64 ghc-8.6.5 2020-03-08 12:42:33.592731562 [ThreadId 4] - Operating as a LSP server on stdio 2020-03-08 12:42:33.59280371 [ThreadId 4] - Current directory:/home/krusl/code 2020-03-08 12:42:33.592865109 [ThreadId 4] - Operating system:linux 2020-03-08 12:42:33.592935415 [ThreadId 4] - args:["--lsp","-d","-l","/home/krusl/hie.log"] 2020-03-08 12:42:33.593264783 [ThreadId 4] - haskell-lsp:Starting up server ... 2020-03-08 12:42:33.594463537 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":48724,"clientInfo":{"name":"vscode","version":"1.42.1"},"rootPath":"/home/krusl/code","rootUri":"file:///home/krusl/code","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["comment","comment","keyword","number","regexp","operator","namespace","type","struct","class","interface","enum","typeParameter","function","member","marco","variable","parameter","property","label"],"tokenModifiers":["declaration","documentation","static","abstract","deprected","async"]}},"window":{"workDoneProgress":true}},"trace":"off","workspaceFolders":[{"uri":"file:///home/krusl/code","name":"code"}]}} 2020-03-08 12:42:33.598449077 [ThreadId 4] - haskell-lsp:initializeRequestHandler: setting current dir to project root:/home/krusl/code 2020-03-08 12:42:33.60022475 [ThreadId 4] - Dummy Cradle file result: /home/krusl/code/File.hs 2020-03-08 12:42:33.683277023 [ThreadId 4] - Cabal-Helper found these projects: [] 2020-03-08 12:42:33.683725889 [ThreadId 4] - These projects have the build tools installed: [] 2020-03-08 12:42:33.683810666 [ThreadId 4] - Could not find a Project for file: /home/krusl/code/File.hs 2020-03-08 12:42:33.683874842 [ThreadId 4] - Module "/home/krusl/code/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:42:33.684059963 [ThreadId 4] - Executing GHC on path with args: --numeric-version 2020-03-08 12:42:33.770142336 [ThreadId 4] - GHC Output: "Just "8.8.3"" 2020-03-08 12:42:33.771120971 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":2,"message":"Mismatching GHC versions: GHC session is 8.8.3, HIE is 8.6.5\nYou may want to use hie-wrapper. Check the README for more information"},"method":"window/showMessage"} 2020-03-08 12:42:33.771291092 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":2,"message":"Mismatching GHC versions: GHC session is 8.8.3, HIE is 8.6.5\nYou may want to use hie-wrapper. Check the README for more information"},"method":"window/logMessage"} 2020-03-08 12:42:33.771639333 [ThreadId 9] - Executing GHC on path with args: --print-libdir 2020-03-08 12:42:33.773636224 [ThreadId 10] - ****** reactor: top of loop 2020-03-08 12:42:33.773914534 [ThreadId 5] - <--2--{"result":{"capabilities":{"typeDefinitionProvider":true,"foldingRangeProvider":false,"textDocumentSync":{"openClose":true,"change":2,"willSave":false,"willSaveWaitUntil":false,"save":{"includeText":false}},"workspace":{},"implementationProvider":true,"documentRangeFormattingProvider":true,"documentHighlightProvider":true,"executeCommandProvider":{"commands":["48880:applyrefact:applyOne","48880:applyrefact:applyAll","48880:generic:type","48880:ghcmod:check","48880:ghcmod:type","48880:ghcmod:casesplit","48880:hsimport:import","48880:package:add","48880:pragmas:addPragma"]},"renameProvider":false,"colorProvider":false,"definitionProvider":true,"hoverProvider":true,"codeActionProvider":true,"completionProvider":{"triggerCharacters":["."],"resolveProvider":true},"documentSymbolProvider":true,"documentFormattingProvider":true,"referencesProvider":true}},"jsonrpc":"2.0","id":0} 2020-03-08 12:42:33.788798626 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"initialized","params":{}} 2020-03-08 12:42:33.789002163 [ThreadId 10] - ****** reactor: got message number:0 2020-03-08 12:42:33.789059958 [ThreadId 10] - ****** reactor: processing Initialized Notification 2020-03-08 12:42:33.789118934 [ThreadId 10] - ****** reactor: top of loop 2020-03-08 12:42:33.789258078 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":4,"message":"Using hie version: Version 1.1 x86_64 ghc-8.6.5"},"method":"window/logMessage"} 2020-03-08 12:42:33.790369656 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"languageServerHaskell":{"hlintOn":true,"maxNumberOfProblems":100,"diagnosticsOnChange":true,"liquidOn":false,"completionSnippetsOn":true,"formatOnImportOn":true,"formattingProvider":"brittany","hieExecutablePath":"/usr/bin/hie","useCustomHieWrapper":false,"useCustomHieWrapperPath":"","noLspParam":false,"showTypeForSelection":{"onHover":true,"command":{"location":"dropdown"}},"trace":{"server":"messages"},"logFile":"/home/krusl/hie.log","enableHIE":true}}}} 2020-03-08 12:42:33.790592012 [ThreadId 10] - ****** reactor: got message number:1 2020-03-08 12:42:33.790663383 [ThreadId 10] - reactor:didChangeConfiguration notification:NotificationMessage {_jsonrpc = "2.0", _method = WorkspaceDidChangeConfiguration, _params = DidChangeConfigurationParams {_settings = Object (fromList [("languageServerHaskell",Object (fromList [("useCustomHieWrapper",Bool False),("useCustomHieWrapperPath",String ""),("logFile",String "/home/krusl/hie.log"),("hlintOn",Bool True),("formatOnImportOn",Bool True),("noLspParam",Bool False),("hieExecutablePath",String "/usr/bin/hie"),("enableHIE",Bool True),("liquidOn",Bool False),("showTypeForSelection",Object (fromList [("onHover",Bool True),("command",Object (fromList [("location",String "dropdown")]))])),("diagnosticsOnChange",Bool True),("completionSnippetsOn",Bool True),("maxNumberOfProblems",Number 100.0),("formattingProvider",String "brittany"),("trace",Object (fromList [("server",String "messages")]))]))])}} 2020-03-08 12:42:33.790998885 [ThreadId 10] - reactor:didChangeConfiguration diagsOn:True 2020-03-08 12:42:33.791058911 [ThreadId 10] - ****** reactor: top of loop 2020-03-08 12:42:33.792173145 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///home/krusl/code/test0.hs","languageId":"haskell","version":1,"text":"main ="}}} 2020-03-08 12:42:33.79389052 [ThreadId 10] - ****** reactor: got message number:2 2020-03-08 12:42:33.794404731 [ThreadId 10] - ****** reactor: processing NotDidOpenTextDocument 2020-03-08 12:42:33.794714486 [ThreadId 10] - requestDiagnostics: no diagFunc for:DiagnosticOnOpen 2020-03-08 12:42:33.794908242 [ThreadId 10] - ****** reactor: top of loop 2020-03-08 12:42:33.893686534 [ThreadId 9] - GHC Output: "Just "/usr/lib/ghc-8.8.3"" 2020-03-08 12:42:33.894076413 [ThreadId 16] - ideDispatcher: top of loop 2020-03-08 12:42:33.917061361 [ThreadId 15] - ghcDispatcher: top of loop 2020-03-08 12:42:33.917217482 [ThreadId 15] - ghcDispatcher:got request 0 with id: Nothing 2020-03-08 12:42:33.917371096 [ThreadId 15] - ghcDispatcher: top of loop 2020-03-08 12:42:33.917425466 [ThreadId 15] - ghcDispatcher:got request 2 with id: Nothing 2020-03-08 12:42:33.917479747 [ThreadId 15] - ghcDispatcher:Processing request as version matches 2020-03-08 12:42:33.918695298 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":2,"message":"No hoogle db found. Check the README for instructions to generate one"},"method":"window/showMessage"} 2020-03-08 12:42:33.91988809 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:42:33.920417015 [ThreadId 15] - Cabal-Helper found these projects: [] 2020-03-08 12:42:33.920852093 [ThreadId 15] - These projects have the build tools installed: [] 2020-03-08 12:42:33.920931299 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:42:33.920989502 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:42:33.921061158 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:42:34.032307735 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"token":0},"method":"window/workDoneProgress/create","id":0} 2020-03-08 12:42:34.032553965 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":0,"result":null} 2020-03-08 12:42:34.032657137 [ThreadId 4] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"id\":0,\"result\":null}" 2020-03-08 12:42:34.035377329 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"begin","cancellable":false,"title":"Initializing GHC session","percentage":0},"token":0},"method":"$/progress"} 2020-03-08 12:42:34.052278719 [ThreadId 10] - ****** reactor: got message number:3 2020-03-08 12:42:34.052414748 [ThreadId 10] - reactor:got RspFromClient:ResponseMessage {_jsonrpc = "2.0", _id = IdRspInt 0, _result = Just Null, _error = Nothing} 2020-03-08 12:42:34.052478603 [ThreadId 10] - ****** reactor: top of loop 2020-03-08 12:42:34.150465615 [ThreadId 20] - Ghc error on cradle initialisation: "unable to load package `ghc-prim-0.5.3'" 2020-03-08 12:42:34.150834802 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"unable to load package `ghc-prim-0.5.3'\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:42:34.15092162 [ThreadId 15] - ghcDispatcher: top of loop 2020-03-08 12:42:34.151013946 [ThreadId 15] - ghcDispatcher:got request 2 with id: Nothing 2020-03-08 12:42:34.151068742 [ThreadId 15] - ghcDispatcher:Processing request as version matches 2020-03-08 12:42:34.151219513 [ThreadId 15] - New cradle: /home/krusl/code/test0.hs 2020-03-08 12:42:34.152467692 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"end"},"token":0},"method":"$/progress"} 2020-03-08 12:42:34.152779403 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":1,"message":"\"unable to load package `ghc-prim-0.5.3'\""},"method":"window/showMessage"} 2020-03-08 12:42:34.153304723 [ThreadId 15] - Cabal-Helper found these projects: [] 2020-03-08 12:42:34.153805773 [ThreadId 15] - These projects have the build tools installed: [] 2020-03-08 12:42:34.153900108 [ThreadId 15] - Could not find a Project for file: /home/krusl/code/test0.hs 2020-03-08 12:42:34.15398915 [ThreadId 15] - Module "/home/krusl/code/test0.hs" is loaded by Cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:42:34.154073762 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/home/krusl/code", cradleOptsProg = CradleAction: Direct} 2020-03-08 12:42:34.172959736 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"token":1},"method":"window/workDoneProgress/create","id":1} 2020-03-08 12:42:34.173212358 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"begin","cancellable":false,"title":"Initializing GHC session","percentage":0},"token":1},"method":"$/progress"} 2020-03-08 12:42:34.192933481 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":1,"result":null} 2020-03-08 12:42:34.193359989 [ThreadId 4] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":null}" 2020-03-08 12:42:34.270655816 [ThreadId 10] - ****** reactor: got message number:4 2020-03-08 12:42:34.271354652 [ThreadId 10] - reactor:got RspFromClient:ResponseMessage {_jsonrpc = "2.0", _id = IdRspInt 1, _result = Just Null, _error = Nothing} 2020-03-08 12:42:34.27178017 [ThreadId 10] - ****** reactor: top of loop 2020-03-08 12:42:34.27951528 [ThreadId 24] - Ghc error on cradle initialisation: "panic! (the 'impossible' happened)\n (GHC version 8.6.5 for x86_64-unknown-linux):\n\tDynamic linker not initialised\n\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\n" 2020-03-08 12:42:34.279710523 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\"", ideInfo = Null} with mid: Nothing 2020-03-08 12:42:34.279856824 [ThreadId 15] - ghcDispatcher: top of loop 2020-03-08 12:42:34.28117424 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"end"},"token":1},"method":"$/progress"} 2020-03-08 12:42:34.282424286 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":1,"message":"\"panic! (the 'impossible' happened)\\n (GHC version 8.6.5 for x86_64-unknown-linux):\\n\\tDynamic linker not initialised\\n\\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\\n\""},"method":"window/showMessage"} ```
OctarineSourcerer commented 4 years ago

I've also encountered the same thing, and am so unable to use the extension at all. This occurs with GHC 8.8.3 and HIE 8.8.2 for me.

fendor commented 4 years ago

Mismatching ghc and hie versions just do not work. Please install one hie version for each ghc version. When you see the warning:

Mismatching GHC versions: GHC session is 8.8.3, HIE is 8.6.5 You may want to use hie-wrapper. Check the README for more information

You should use the same GHC version for the project as you have compiled HIE with.

If you did that and you dont understand why this message is shown, and you are using stack, then make sure that you open HIE in the same directory your stack.yaml is located.

OctarineSourcerer commented 4 years ago

After having compiled HIE with 8.8.3 (via using the lts-15.5 resolver), and the mismatching GHC versions warning then disappearing, I still see the libHSghc-prim-0.5.3.so error.

I'll try compiling HIE with 8.8.2 and using GHC 8.8.2 in the session later.

fendor commented 4 years ago

What operating system are you using?

OctarineSourcerer commented 4 years ago

What operating system are you using?

Arch Linux. I edited the PKGBUILD of the AUR package to use the following stack.yaml file for building HIE with GHC 8.8.3 - note the changed resolver and allow-newer: true:

stack-8.8.3.yaml ```YAML resolver: lts-15.5 packages: - . - hie-plugin-api extra-deps: # - ./submodules/HaRe - apply-refact-0.7.0.0 - brittany-0.12.1.1 - bytestring-trie-0.2.5.0 # - cabal-helper-1.0.0.0 - github: jneira/cabal-helper commit: ffb1f57a5ffc6b7ac3c46a9974c4420a6d2bb9b2 - clock-0.7.2 - constrained-dynamic-0.1.0.0 - floskell-0.10.2 - ghc-lib-parser-8.8.2.20200205 - ghc-lib-parser-ex-8.8.5.3 # To avoid build error with ghc-8.8.2 # See https://github.com/haskell/haddock/issues/1123 - git: https://github.com/haskell/haddock.git commit: be8b02c4e3cffe7d45b3dad0a0f071d35a274d65 subdirs: - haddock-api # - haddock-api-2.23.0 - haddock-library-1.8.0 - haskell-lsp-0.20.0.0 - haskell-lsp-types-0.20.0.0 - lsp-test-0.10.1.0 - hie-bios-0.4.0 - hlint-2.2.11 - hoogle-5.0.17.15 - hsimport-0.11.0@rev1 - ilist-0.3.1.0 - monad-dijkstra-0.1.1.2 - ormolu-0.0.3.1 - semigroups-0.18.5 - temporary-1.2.1.1 flags: haskell-ide-engine: pedantic: true hie-plugin-api: pedantic: true allow-newer: true nix: packages: [ icu libcxx zlib ] concurrent-tests: false ```
OctarineSourcerer commented 4 years ago

Test of HIE compiled with GHC 8.8.2, using GHC 8.8.2 in the project

Without editing the PKGBUILD of the AUR pkg, which is as follows:

PKGBUILD ```PKGBUILD # Maintainer: Philippe Hürlimann pkgname=haskell-ide-engine pkgver=1.2 pkgrel=1 pkgdesc="The engine for haskell ide-integration. Not an IDE" arch=('x86_64') url="https://github.com/haskell/haskell-ide-engine" license=('custom:BSD3') makedepends=('stack') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/haskell/${pkgname}/archive/${pkgver}.tar.gz") sha384sums=('6c4a117f79c010747e622f1da8f70c7dd535fe4499c9eba718c2d299c9be035026bad824471a5a45a53a190d26fa67a3') # Supported are '8.4.2' '8.4.3' '8.4.4' '8.6.4' '8.6.5' '8.8.1' '8.8.2' # activated by default are the ones also used in a stackage snapshot. Removing # versions you do not use will greatly reduce the compilation time of this # package _enabled_ghc_versions=('8.8.2') build() { cd "${srcdir}/${pkgname}-${pkgver}" for ver in "${_enabled_ghc_versions[@]}"; do stack --stack-yaml=stack-${ver}.yaml build done } package() { cd "${srcdir}/${pkgname}-${pkgver}" install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" for ver in "${_enabled_ghc_versions[@]}"; do stack --stack-yaml=stack-${ver}.yaml --local-bin-path "${pkgdir}/usr/bin/" install \ && mv "${pkgdir}/usr/bin/hie" "${pkgdir}/usr/bin/hie-${ver}" done } ```

and therefore having a HIE compiled for GHC 8.8.2, as it uses the following stack.yaml, which is the original I created my 8.8.3 one from:

stack-8.8.2.yaml ```YAML resolver: lts-15.2 packages: - . - hie-plugin-api extra-deps: # - ./submodules/HaRe - apply-refact-0.7.0.0 - brittany-0.12.1.1 - bytestring-trie-0.2.5.0 # - cabal-helper-1.0.0.0 - github: jneira/cabal-helper commit: ffb1f57a5ffc6b7ac3c46a9974c4420a6d2bb9b2 - clock-0.7.2 - constrained-dynamic-0.1.0.0 - floskell-0.10.2 - ghc-lib-parser-8.8.2.20200205 - ghc-lib-parser-ex-8.8.5.3 # To avoid build error with ghc-8.8.2 # See https://github.com/haskell/haddock/issues/1123 - git: https://github.com/haskell/haddock.git commit: be8b02c4e3cffe7d45b3dad0a0f071d35a274d65 subdirs: - haddock-api # - haddock-api-2.23.0 - haddock-library-1.8.0 - haskell-lsp-0.20.0.0 - haskell-lsp-types-0.20.0.0 - lsp-test-0.10.1.0 - hie-bios-0.4.0 - hlint-2.2.11 - hoogle-5.0.17.15 - hsimport-0.11.0@rev1 - ilist-0.3.1.0 - monad-dijkstra-0.1.1.2 - ormolu-0.0.3.1 - semigroups-0.18.5 - temporary-1.2.1.1 flags: haskell-ide-engine: pedantic: true hie-plugin-api: pedantic: true # allow-newer: true nix: packages: [ icu libcxx zlib ] concurrent-tests: false ```

I placed a stack.yaml in the same directory as my doubleMe.hs. The stack.yaml file contains only resolver: ghc-8.8.2. doubleMe.hs is as follows:

doubleMe.hs ```Haskell doubleMe x = x + x blah :: Int blah = 1 + sad blah1 :: Int blah1 = 1 + "sad" ```

Those are the only two files in that directory. With languageServerHaskell.hieExecutablePath": "hie-8.8.2" then set (as hie-8.8.2 is its exec name after install), the following different error appears; here are the logs:

Error log ``` 2020-03-30 14:50:29.778652063 [ThreadId 4] - Run entered for HIE(hie-8.8.2) Version 1.2, Git revision 9a9e766bb4aca089d3d861ffa75a6381ac4caf11 (dirty) (18 commits) x86_64 ghc-8.8.2 2020-03-30 14:50:29.778845165 [ThreadId 4] - Operating as a LSP server on stdio 2020-03-30 14:50:29.778899352 [ThreadId 4] - Current directory:/home/dan/Projects/HaskellTest 2020-03-30 14:50:29.778951179 [ThreadId 4] - Operating system:linux 2020-03-30 14:50:29.778989826 [ThreadId 4] - args:["--lsp","-d","--vomit"] 2020-03-30 14:50:29.779038551 [ThreadId 4] - Enabling verbose mode for hie-bios. This option currently doesn't do anything. 2020-03-30 14:50:29.779145705 [ThreadId 4] - haskell-lsp:Starting up server ... 2020-03-30 14:50:29.780556663 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":72275,"clientInfo":{"name":"vscode","version":"1.43.2"},"rootPath":"/home/dan/Projects/HaskellTest","rootUri":"file:///home/dan/Projects/HaskellTest","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["comment","comment","keyword","number","regexp","operator","namespace","type","struct","class","interface","enum","typeParameter","function","member","marco","variable","parameter","property","label"],"tokenModifiers":["declaration","documentation","static","abstract","deprected","async"]}},"window":{"workDoneProgress":true}},"trace":"off","workspaceFolders":[{"uri":"file:///home/dan/Projects/HaskellTest","name":"HaskellTest"}]}} 2020-03-30 14:50:29.781634054 [ThreadId 4] - haskell-lsp:initializeRequestHandler: setting current dir to project root:/home/dan/Projects/HaskellTest 2020-03-30 14:50:29.802836537 [ThreadId 4] - Dummy Cradle file result: /home/dan/Projects/HaskellTest/File.hs 2020-03-30 14:50:29.803221001 [ThreadId 4] - Cabal-Helper found these projects: ["ProjLocStackYaml {plStackYaml = \"/home/dan/Projects/HaskellTest/stack.yaml\"}"] 2020-03-30 14:50:29.803317908 [ThreadId 4] - These projects have the build tools installed: ["ProjLocStackYaml {plStackYaml = \"/home/dan/Projects/HaskellTest/stack.yaml\"}"] 2020-03-30 14:50:29.803348593 [ThreadId 4] - Cabal-Helper decided to use: ProjLocStackYaml {plStackYaml = "/home/dan/Projects/HaskellTest/stack.yaml"} 2020-03-30 14:50:29.803373168 [ThreadId 4] - Cabal-Helper dirs: ["/home/dan/Projects/HaskellTest","/home/dan/Projects/HaskellTest/File.hs"] Stack looks for packages in the directories configured in the 'packages' and 'extra-deps' fields defined in your stack.yaml The current entry points to /home/dan/Projects/HaskellTest/, but no .cabal or package.yaml file could be found there. [Error - 14:50:29] Server initialization failed. Message: request error. RequestMessage {_jsonrpc = "2.0", _id = IdInt 0, _method = Initialize, _params = InitializeParams {_processId = Just 72275, _rootPath = Just "/home/dan/Projects/HaskellTest", _rootUri = Just (Uri {getUri = "file:///home/dan/Projects/HaskellTest"}), _initializationOptions = Nothing, _capabilities = ClientCapabilities {_workspace = Just (WorkspaceClientCapabilities {_applyEdit = Just True, _workspaceEdit = Just (WorkspaceEditClientCapabilities {_documentChanges = Just True}), _didChangeConfiguration = Just (DidChangeConfigurationClientCapabilities {_dynamicRegistration = Just True}), _didChangeWatchedFiles = Just (DidChangeWatchedFilesClientCapabilities {_dynamicRegistration = Just True}), _symbol = Just (SymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (SymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])})}), _executeCommand = Just (ExecuteClientCapabilities {_dynamicRegistration = Just True}), _workspaceFolders = Just True, _configuration = Just True}), _textDocument = Just (TextDocumentClientCapabilities {_synchronization = Just (SynchronizationTextDocumentClientCapabilities {_dynamicRegistration = Just True, _willSave = Just True, _willSaveWaitUntil = Just True, _didSave = Just True}), _completion = Just (CompletionClientCapabilities {_dynamicRegistration = Just True, _completionItem = Just (CompletionItemClientCapabilities {_snippetSupport = Just True, _commitCharactersSupport = Just True, _documentationFormat = Just (List [MkMarkdown,MkPlainText]), _deprecatedSupport = Just True, _preselectSupport = Just True}), _completionItemKind = Just (CompletionItemKindClientCapabilities {_valueSet = Just (List [CiText,CiMethod,CiFunction,CiConstructor,CiField,CiVariable,CiClass,CiInterface,CiModule,CiProperty,CiUnit,CiValue,CiEnum,CiKeyword,CiSnippet,CiColor,CiFile,CiReference,CiFolder,CiEnumMember,CiConstant,CiStruct,CiEvent,CiOperator,CiTypeParameter])}), _contextSupport = Just True}), _hover = Just (HoverClientCapabilities {_dynamicRegistration = Just True, _contentFormat = Just (List [MkMarkdown,MkPlainText])}), _signatureHelp = Just (SignatureHelpClientCapabilities {_dynamicRegistration = Just True, _signatureInformation = Just (SignatureInformationClientCapabilities {documentationFormat = Nothing})}), _references = Just (ReferencesClientCapabilities {_dynamicRegistration = Just True}), _documentHighlight = Just (DocumentHighlightClientCapabilities {_dynamicRegistration = Just True}), _documentSymbol = Just (DocumentSymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (DocumentSymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])}), _hierarchicalDocumentSymbolSupport = Just True}), _formatting = Just (FormattingClientCapabilities {_dynamicRegistration = Just True}), _rangeFormatting = Just (RangeFormattingClientCapabilities {_dynamicRegistration = Just True}), _onTypeFormatting = Just (OnTypeFormattingClientCapabilities {_dynamicRegistration = Just True}), _definition = Just (DefinitionClientCapabilities {_dynamicRegistration = Just True}), _typeDefinition = Just (TypeDefinitionClientCapabilities {_dynamicRegistration = Just True}), _implementation = Just (ImplementationClientCapabilities {_dynamicRegistration = Just True}), _codeAction = Just (CodeActionClientCapabilities {_dynamicRegistration = Just True, _codeActionLiteralSupport = Just (CodeActionLiteralSupport {_codeActionKind = CodeActionKindClientCapabilities {_valueSet = List [CodeActionUnknown "",CodeActionQuickFix,CodeActionRefactor,CodeActionRefactorExtract,CodeActionRefactorInline,CodeActionRefactorRewrite,CodeActionSource,CodeActionSourceOrganizeImports]}})}), _codeLens = Just (CodeLensClientCapabilities {_dynamicRegistration = Just True}), _documentLink = Just (DocumentLinkClientCapabilities {_dynamicRegistration = Just True}), _colorProvider = Just (ColorProviderClientCapabilities {_dynamicRegistration = Just True}), _rename = Just (RenameClientCapabilities {_dynamicRegistration = Just True, _prepareSupport = Just True}), _publishDiagnostics = Just (PublishDiagnosticsClientCapabilities {_relatedInformation = Just True}), _foldingRange = Just (FoldingRangeClientCapabilities {_dynamicRegistration = Just True, _rangeLimit = Just 5000, _lineFoldingOnly = Just True})}), _window = Just (WindowClientCapabilities {_workDoneProgress = Just True}), _experimental = Nothing}, _trace = Just TraceOff, _workspaceFolders = Just (List [WorkspaceFolder {_uri = "file:///home/dan/Projects/HaskellTest", _name = "HaskellTest"}])}} readCreateProcess: stack "path" "--stack-yaml=/home/dan/Projects/HaskellTest/stack.yaml" (exit 1): failed Code: -32603 [Error - 14:50:29] Starting client failed Message: request error. RequestMessage {_jsonrpc = "2.0", _id = IdInt 0, _method = Initialize, _params = InitializeParams {_processId = Just 72275, _rootPath = Just "/home/dan/Projects/HaskellTest", _rootUri = Just (Uri {getUri = "file:///home/dan/Projects/HaskellTest"}), _initializationOptions = Nothing, _capabilities = ClientCapabilities {_workspace = Just (WorkspaceClientCapabilities {_applyEdit = Just True, _workspaceEdit = Just (WorkspaceEditClientCapabilities {_documentChanges = Just True}), _didChangeConfiguration = Just (DidChangeConfigurationClientCapabilities {_dynamicRegistration = Just True}), _didChangeWatchedFiles = Just (DidChangeWatchedFilesClientCapabilities {_dynamicRegistration = Just True}), _symbol = Just (SymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (SymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])})}), _executeCommand = Just (ExecuteClientCapabilities {_dynamicRegistration = Just True}), _workspaceFolders = Just True, _configuration = Just True}), _textDocument = Just (TextDocumentClientCapabilities {_synchronization = Just (SynchronizationTextDocumentClientCapabilities {_dynamicRegistration = Just True, _willSave = Just True, _willSaveWaitUntil = Just True, _didSave = Just True}), _completion = Just (CompletionClientCapabilities {_dynamicRegistration = Just True, _completionItem = Just (CompletionItemClientCapabilities {_snippetSupport = Just True, _commitCharactersSupport = Just True, _documentationFormat = Just (List [MkMarkdown,MkPlainText]), _deprecatedSupport = Just True, _preselectSupport = Just True}), _completionItemKind = Just (CompletionItemKindClientCapabilities {_valueSet = Just (List [CiText,CiMethod,CiFunction,CiConstructor,CiField,CiVariable,CiClass,CiInterface,CiModule,CiProperty,CiUnit,CiValue,CiEnum,CiKeyword,CiSnippet,CiColor,CiFile,CiReference,CiFolder,CiEnumMember,CiConstant,CiStruct,CiEvent,CiOperator,CiTypeParameter])}), _contextSupport = Just True}), _hover = Just (HoverClientCapabilities {_dynamicRegistration = Just True, _contentFormat = Just (List [MkMarkdown,MkPlainText])}), _signatureHelp = Just (SignatureHelpClientCapabilities {_dynamicRegistration = Just True, _signatureInformation = Just (SignatureInformationClientCapabilities {documentationFormat = Nothing})}), _references = Just (ReferencesClientCapabilities {_dynamicRegistration = Just True}), _documentHighlight = Just (DocumentHighlightClientCapabilities {_dynamicRegistration = Just True}), _documentSymbol = Just (DocumentSymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (DocumentSymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])}), _hierarchicalDocumentSymbolSupport = Just True}), _formatting = Just (FormattingClientCapabilities {_dynamicRegistration = Just True}), _rangeFormatting = Just (RangeFormattingClientCapabilities {_dynamicRegistration = Just True}), _onTypeFormatting = Just (OnTypeFormattingClientCapabilities {_dynamicRegistration = Just True}), _definition = Just (DefinitionClientCapabilities {_dynamicRegistration = Just True}), _typeDefinition = Just (TypeDefinitionClientCapabilities {_dynamicRegistration = Just True}), _implementation = Just (ImplementationClientCapabilities {_dynamicRegistration = Just True}), _codeAction = Just (CodeActionClientCapabilities {_dynamicRegistration = Just True, _codeActionLiteralSupport = Just (CodeActionLiteralSupport {_codeActionKind = CodeActionKindClientCapabilities {_valueSet = List [CodeActionUnknown "",CodeActionQuickFix,CodeActionRefactor,CodeActionRefactorExtract,CodeActionRefactorInline,CodeActionRefactorRewrite,CodeActionSource,CodeActionSourceOrganizeImports]}})}), _codeLens = Just (CodeLensClientCapabilities {_dynamicRegistration = Just True}), _documentLink = Just (DocumentLinkClientCapabilities {_dynamicRegistration = Just True}), _colorProvider = Just (ColorProviderClientCapabilities {_dynamicRegistration = Just True}), _rename = Just (RenameClientCapabilities {_dynamicRegistration = Just True, _prepareSupport = Just True}), _publishDiagnostics = Just (PublishDiagnosticsClientCapabilities {_relatedInformation = Just True}), _foldingRange = Just (FoldingRangeClientCapabilities {_dynamicRegistration = Just True, _rangeLimit = Just 5000, _lineFoldingOnly = Just True})}), _window = Just (WindowClientCapabilities {_workDoneProgress = Just True}), _experimental = Nothing}, _trace = Just TraceOff, _workspaceFolders = Just (List [WorkspaceFolder {_uri = "file:///home/dan/Projects/HaskellTest", _name = "HaskellTest"}])}} readCreateProcess: stack "path" "--stack-yaml=/home/dan/Projects/HaskellTest/stack.yaml" (exit 1): failed Code: -32603 2020-03-30 14:50:29.836118492 [ThreadId 5] - <--2--{"error":{"code":-32603,"message":"request error. RequestMessage {_jsonrpc = \"2.0\", _id = IdInt 0, _method = Initialize, _params = InitializeParams {_processId = Just 72275, _rootPath = Just \"/home/dan/Projects/HaskellTest\", _rootUri = Just (Uri {getUri = \"file:///home/dan/Projects/HaskellTest\"}), _initializationOptions = Nothing, _capabilities = ClientCapabilities {_workspace = Just (WorkspaceClientCapabilities {_applyEdit = Just True, _workspaceEdit = Just (WorkspaceEditClientCapabilities {_documentChanges = Just True}), _didChangeConfiguration = Just (DidChangeConfigurationClientCapabilities {_dynamicRegistration = Just True}), _didChangeWatchedFiles = Just (DidChangeWatchedFilesClientCapabilities {_dynamicRegistration = Just True}), _symbol = Just (SymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (SymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])})}), _executeCommand = Just (ExecuteClientCapabilities {_dynamicRegistration = Just True}), _workspaceFolders = Just True, _configuration = Just True}), _textDocument = Just (TextDocumentClientCapabilities {_synchronization = Just (SynchronizationTextDocumentClientCapabilities {_dynamicRegistration = Just True, _willSave = Just True, _willSaveWaitUntil = Just True, _didSave = Just True}), _completion = Just (CompletionClientCapabilities {_dynamicRegistration = Just True, _completionItem = Just (CompletionItemClientCapabilities {_snippetSupport = Just True, _commitCharactersSupport = Just True, _documentationFormat = Just (List [MkMarkdown,MkPlainText]), _deprecatedSupport = Just True, _preselectSupport = Just True}), _completionItemKind = Just (CompletionItemKindClientCapabilities {_valueSet = Just (List [CiText,CiMethod,CiFunction,CiConstructor,CiField,CiVariable,CiClass,CiInterface,CiModule,CiProperty,CiUnit,CiValue,CiEnum,CiKeyword,CiSnippet,CiColor,CiFile,CiReference,CiFolder,CiEnumMember,CiConstant,CiStruct,CiEvent,CiOperator,CiTypeParameter])}), _contextSupport = Just True}), _hover = Just (HoverClientCapabilities {_dynamicRegistration = Just True, _contentFormat = Just (List [MkMarkdown,MkPlainText])}), _signatureHelp = Just (SignatureHelpClientCapabilities {_dynamicRegistration = Just True, _signatureInformation = Just (SignatureInformationClientCapabilities {documentationFormat = Nothing})}), _references = Just (ReferencesClientCapabilities {_dynamicRegistration = Just True}), _documentHighlight = Just (DocumentHighlightClientCapabilities {_dynamicRegistration = Just True}), _documentSymbol = Just (DocumentSymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (DocumentSymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])}), _hierarchicalDocumentSymbolSupport = Just True}), _formatting = Just (FormattingClientCapabilities {_dynamicRegistration = Just True}), _rangeFormatting = Just (RangeFormattingClientCapabilities {_dynamicRegistration = Just True}), _onTypeFormatting = Just (OnTypeFormattingClientCapabilities {_dynamicRegistration = Just True}), _definition = Just (DefinitionClientCapabilities {_dynamicRegistration = Just True}), _typeDefinition = Just (TypeDefinitionClientCapabilities {_dynamicRegistration = Just True}), _implementation = Just (ImplementationClientCapabilities {_dynamicRegistration = Just True}), _codeAction = Just (CodeActionClientCapabilities {_dynamicRegistration = Just True, _codeActionLiteralSupport = Just (CodeActionLiteralSupport {_codeActionKind = CodeActionKindClientCapabilities {_valueSet = List [CodeActionUnknown \"\",CodeActionQuickFix,CodeActionRefactor,CodeActionRefactorExtract,CodeActionRefactorInline,CodeActionRefactorRewrite,CodeActionSource,CodeActionSourceOrganizeImports]}})}), _codeLens = Just (CodeLensClientCapabilities {_dynamicRegistration = Just True}), _documentLink = Just (DocumentLinkClientCapabilities {_dynamicRegistration = Just True}), _colorProvider = Just (ColorProviderClientCapabilities {_dynamicRegistration = Just True}), _rename = Just (RenameClientCapabilities {_dynamicRegistration = Just True, _prepareSupport = Just True}), _publishDiagnostics = Just (PublishDiagnosticsClientCapabilities {_relatedInformation = Just True}), _foldingRange = Just (FoldingRangeClientCapabilities {_dynamicRegistration = Just True, _rangeLimit = Just 5000, _lineFoldingOnly = Just True})}), _window = Just (WindowClientCapabilities {_workDoneProgress = Just True}), _experimental = Nothing}, _trace = Just TraceOff, _workspaceFolders = Just (List [WorkspaceFolder {_uri = \"file:///home/dan/Projects/HaskellTest\", _name = \"HaskellTest\"}])}} readCreateProcess: stack \"path\" \"--stack-yaml=/home/dan/Projects/HaskellTest/stack.yaml\" (exit 1): failed"},"jsonrpc":"2.0","id":0} 2020-03-30 14:50:29.836753342 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":1,"message":"request error. RequestMessage {_jsonrpc = \"2.0\", _id = IdInt 0, _method = Initialize, _params = InitializeParams {_processId = Just 72275, _rootPath = Just \"/home/dan/Projects/HaskellTest\", _rootUri = Just (Uri {getUri = \"file:///home/dan/Projects/HaskellTest\"}), _initializationOptions = Nothing, _capabilities = ClientCapabilities {_workspace = Just (WorkspaceClientCapabilities {_applyEdit = Just True, _workspaceEdit = Just (WorkspaceEditClientCapabilities {_documentChanges = Just True}), _didChangeConfiguration = Just (DidChangeConfigurationClientCapabilities {_dynamicRegistration = Just True}), _didChangeWatchedFiles = Just (DidChangeWatchedFilesClientCapabilities {_dynamicRegistration = Just True}), _symbol = Just (SymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (SymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])})}), _executeCommand = Just (ExecuteClientCapabilities {_dynamicRegistration = Just True}), _workspaceFolders = Just True, _configuration = Just True}), _textDocument = Just (TextDocumentClientCapabilities {_synchronization = Just (SynchronizationTextDocumentClientCapabilities {_dynamicRegistration = Just True, _willSave = Just True, _willSaveWaitUntil = Just True, _didSave = Just True}), _completion = Just (CompletionClientCapabilities {_dynamicRegistration = Just True, _completionItem = Just (CompletionItemClientCapabilities {_snippetSupport = Just True, _commitCharactersSupport = Just True, _documentationFormat = Just (List [MkMarkdown,MkPlainText]), _deprecatedSupport = Just True, _preselectSupport = Just True}), _completionItemKind = Just (CompletionItemKindClientCapabilities {_valueSet = Just (List [CiText,CiMethod,CiFunction,CiConstructor,CiField,CiVariable,CiClass,CiInterface,CiModule,CiProperty,CiUnit,CiValue,CiEnum,CiKeyword,CiSnippet,CiColor,CiFile,CiReference,CiFolder,CiEnumMember,CiConstant,CiStruct,CiEvent,CiOperator,CiTypeParameter])}), _contextSupport = Just True}), _hover = Just (HoverClientCapabilities {_dynamicRegistration = Just True, _contentFormat = Just (List [MkMarkdown,MkPlainText])}), _signatureHelp = Just (SignatureHelpClientCapabilities {_dynamicRegistration = Just True, _signatureInformation = Just (SignatureInformationClientCapabilities {documentationFormat = Nothing})}), _references = Just (ReferencesClientCapabilities {_dynamicRegistration = Just True}), _documentHighlight = Just (DocumentHighlightClientCapabilities {_dynamicRegistration = Just True}), _documentSymbol = Just (DocumentSymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (DocumentSymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])}), _hierarchicalDocumentSymbolSupport = Just True}), _formatting = Just (FormattingClientCapabilities {_dynamicRegistration = Just True}), _rangeFormatting = Just (RangeFormattingClientCapabilities {_dynamicRegistration = Just True}), _onTypeFormatting = Just (OnTypeFormattingClientCapabilities {_dynamicRegistration = Just True}), _definition = Just (DefinitionClientCapabilities {_dynamicRegistration = Just True}), _typeDefinition = Just (TypeDefinitionClientCapabilities {_dynamicRegistration = Just True}), _implementation = Just (ImplementationClientCapabilities {_dynamicRegistration = Just True}), _codeAction = Just (CodeActionClientCapabilities {_dynamicRegistration = Just True, _codeActionLiteralSupport = Just (CodeActionLiteralSupport {_codeActionKind = CodeActionKindClientCapabilities {_valueSet = List [CodeActionUnknown \"\",CodeActionQuickFix,CodeActionRefactor,CodeActionRefactorExtract,CodeActionRefactorInline,CodeActionRefactorRewrite,CodeActionSource,CodeActionSourceOrganizeImports]}})}), _codeLens = Just (CodeLensClientCapabilities {_dynamicRegistration = Just True}), _documentLink = Just (DocumentLinkClientCapabilities {_dynamicRegistration = Just True}), _colorProvider = Just (ColorProviderClientCapabilities {_dynamicRegistration = Just True}), _rename = Just (RenameClientCapabilities {_dynamicRegistration = Just True, _prepareSupport = Just True}), _publishDiagnostics = Just (PublishDiagnosticsClientCapabilities {_relatedInformation = Just True}), _foldingRange = Just (FoldingRangeClientCapabilities {_dynamicRegistration = Just True, _rangeLimit = Just 5000, _lineFoldingOnly = Just True})}), _window = Just (WindowClientCapabilities {_workDoneProgress = Just True}), _experimental = Nothing}, _trace = Just TraceOff, _workspaceFolders = Just (List [WorkspaceFolder {_uri = \"file:///home/dan/Projects/HaskellTest\", _name = \"HaskellTest\"}])}} readCreateProcess: stack \"path\" \"--stack-yaml=/home/dan/Projects/HaskellTest/stack.yaml\" (exit 1): failed"},"method":"window/logMessage"} 2020-03-30 14:50:29.845377984 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":1,"method":"shutdown","params":null} 2020-03-30 14:50:29.845552701 [ThreadId 5] - <--2--{"result":null,"jsonrpc":"2.0","id":1} [Error - 14:50:29] request error. RequestMessage {_jsonrpc = "2.0", _id = IdInt 0, _method = Initialize, _params = InitializeParams {_processId = Just 72275, _rootPath = Just "/home/dan/Projects/HaskellTest", _rootUri = Just (Uri {getUri = "file:///home/dan/Projects/HaskellTest"}), _initializationOptions = Nothing, _capabilities = ClientCapabilities {_workspace = Just (WorkspaceClientCapabilities {_applyEdit = Just True, _workspaceEdit = Just (WorkspaceEditClientCapabilities {_documentChanges = Just True}), _didChangeConfiguration = Just (DidChangeConfigurationClientCapabilities {_dynamicRegistration = Just True}), _didChangeWatchedFiles = Just (DidChangeWatchedFilesClientCapabilities {_dynamicRegistration = Just True}), _symbol = Just (SymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (SymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])})}), _executeCommand = Just (ExecuteClientCapabilities {_dynamicRegistration = Just True}), _workspaceFolders = Just True, _configuration = Just True}), _textDocument = Just (TextDocumentClientCapabilities {_synchronization = Just (SynchronizationTextDocumentClientCapabilities {_dynamicRegistration = Just True, _willSave = Just True, _willSaveWaitUntil = Just True, _didSave = Just True}), _completion = Just (CompletionClientCapabilities {_dynamicRegistration = Just True, _completionItem = Just (CompletionItemClientCapabilities {_snippetSupport = Just True, _commitCharactersSupport = Just True, _documentationFormat = Just (List [MkMarkdown,MkPlainText]), _deprecatedSupport = Just True, _preselectSupport = Just True}), _completionItemKind = Just (CompletionItemKindClientCapabilities {_valueSet = Just (List [CiText,CiMethod,CiFunction,CiConstructor,CiField,CiVariable,CiClass,CiInterface,CiModule,CiProperty,CiUnit,CiValue,CiEnum,CiKeyword,CiSnippet,CiColor,CiFile,CiReference,CiFolder,CiEnumMember,CiConstant,CiStruct,CiEvent,CiOperator,CiTypeParameter])}), _contextSupport = Just True}), _hover = Just (HoverClientCapabilities {_dynamicRegistration = Just True, _contentFormat = Just (List [MkMarkdown,MkPlainText])}), _signatureHelp = Just (SignatureHelpClientCapabilities {_dynamicRegistration = Just True, _signatureInformation = Just (SignatureInformationClientCapabilities {documentationFormat = Nothing})}), _references = Just (ReferencesClientCapabilities {_dynamicRegistration = Just True}), _documentHighlight = Just (DocumentHighlightClientCapabilities {_dynamicRegistration = Just True}), _documentSymbol = Just (DocumentSymbolClientCapabilities {_dynamicRegistration = Just True, _symbolKind = Just (DocumentSymbolKindClientCapabilities {_valueSet = Just (List [SkFile,SkModule,SkNamespace,SkPackage,SkClass,SkMethod,SkProperty,SkField,SkConstructor,SkEnum,SkInterface,SkFunction,SkVariable,SkConstant,SkString,SkNumber,SkBoolean,SkArray,SkObject,SkKey,SkNull,SkEnumMember,SkStruct,SkEvent,SkOperator,SkTypeParameter])}), _hierarchicalDocumentSymbolSupport = Just True}), _formatting = Just (FormattingClientCapabilities {_dynamicRegistration = Just True}), _rangeFormatting = Just (RangeFormattingClientCapabilities {_dynamicRegistration = Just True}), _onTypeFormatting = Just (OnTypeFormattingClientCapabilities {_dynamicRegistration = Just True}), _definition = Just (DefinitionClientCapabilities {_dynamicRegistration = Just True}), _typeDefinition = Just (TypeDefinitionClientCapabilities {_dynamicRegistration = Just True}), _implementation = Just (ImplementationClientCapabilities {_dynamicRegistration = Just True}), _codeAction = Just (CodeActionClientCapabilities {_dynamicRegistration = Just True, _codeActionLiteralSupport = Just (CodeActionLiteralSupport {_codeActionKind = CodeActionKindClientCapabilities {_valueSet = List [CodeActionUnknown "",CodeActionQuickFix,CodeActionRefactor,CodeActionRefactorExtract,CodeActionRefactorInline,CodeActionRefactorRewrite,CodeActionSource,CodeActionSourceOrganizeImports]}})}), _codeLens = Just (CodeLensClientCapabilities {_dynamicRegistration = Just True}), _documentLink = Just (DocumentLinkClientCapabilities {_dynamicRegistration = Just True}), _colorProvider = Just (ColorProviderClientCapabilities {_dynamicRegistration = Just True}), _rename = Just (RenameClientCapabilities {_dynamicRegistration = Just True, _prepareSupport = Just True}), _publishDiagnostics = Just (PublishDiagnosticsClientCapabilities {_relatedInformation = Just True}), _foldingRange = Just (FoldingRangeClientCapabilities {_dynamicRegistration = Just True, _rangeLimit = Just 5000, _lineFoldingOnly = Just True})}), _window = Just (WindowClientCapabilities {_workDoneProgress = Just True}), _experimental = Nothing}, _trace = Just TraceOff, _workspaceFolders = Just (List [WorkspaceFolder {_uri = "file:///home/dan/Projects/HaskellTest", _name = "HaskellTest"}])}} readCreateProcess: stack "path" "--stack-yaml=/home/dan/Projects/HaskellTest/stack.yaml" (exit 1): failed 2020-03-30 14:50:29.846838442 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"exit","params":null} 2020-03-30 14:50:29.846937006 [ThreadId 4] - haskell-lsp:Got exit, exiting ```
fendor commented 4 years ago

The example you have shown ought to work, if there is no stack.yaml, assuming you have a ghc on the path.

Do stack build and stack repl doubleMe.hs succeed?

Stack looks for packages in the directories configured in
the 'packages' and 'extra-deps' fields defined in your stack.yaml
The current entry points to /home/dan/Projects/HaskellTest/,
but no .cabal or package.yaml file could be found there.

Looks like the error message you need to fix.

OctarineSourcerer commented 4 years ago

I have found that with no stack.yaml file, the issue's original error appears.

With a stack.yaml file generated by stack init in the directory, stack build results in an error (Error parsing targets: The project contains no local packages (packages not marked with 'extra-dep')), and the log is similar to the one in my above comment.

For a new project created with stack new HaskellTest, the extension works, though not for Setup.hs that gets created (I'm aware that's in issue #1564).

Overall I'd say the extension works for stack projects, but not for individual files, which is very confusing for someone new to Haskell. For example, I started using a tutorial for beginners, made a .hs file, and ran into the extension not working. It might be useful to, if there is no stack.yaml file in the directory, or if stack build fails due to not being able to find a package, to instead use stack ghc to compile active files in the editor outside the context of a whole project, and to display any errors, etc in the same way that you would for a project.

fendor commented 4 years ago

Overall I'd say the extension works for stack projects, but not for individual files

That is somewhat true. Main reason is that it is difficult. We have limited support for stack scripts, if you provide a hie.yaml file with contents such as:

cradle:
  stack:
    component: "./File.hs"

Similiarily, I think it should work for your use-case as well.

I have found that with no stack.yaml file, the issue's original error appears.

Do you have both ghc and stack installed on your system? If yes, I assume that your ghc is installed via pacman?

OctarineSourcerer commented 4 years ago

Similiarily, I think it should work for your use-case as well.

Adding that hie.yaml file seemed to work, so that's definitely much better, though I don't think I'd have ever gotten to that point without it being supplied.

It might be a good idea to add a single-file or non-project example to the README (something along the lines of "If you're not working within a project, or just want to run a single file, use something like this"), to supply a more informative error, perhaps one that auto-generates such a file ("Could not find a project - you may need to supply a hie.yaml file [link to mentioned example in the README]. Generate one for ___.hs?")

Do you have both ghc and stack installed on your system? If yes, I assume that your ghc is installed via pacman?

GHC is indeed installed via pacman, and stack is installed through the stack-static package to avoid Arch's mess with dynamically linked haskell-* packages.

fendor commented 4 years ago

Adding that hie.yaml file seemed to work, so that's definitely much better, though I don't think I'd have ever gotten to that point without it being supplied.

Yeah, the power and usage is vastly under-documented.

It might be a good idea to add a single-file or non-project example to the README (something along the lines of "If you're not working within a project, or just want to run a single file, use something like this"), to supply a more informative error, perhaps one that auto-generates such a file ("Could not find a project - you may need to supply a hie.yaml file [link to mentioned example in the README]. Generate one for ___.hs?")

Yeah, that could be helpful. We are happy for PRs :) EDIT: I mean the README part, the generation is rather difficult and probably out of scope for HIE since https://github.com/haskell/haskell-ide-engine#integration-with-ghcide-the-new-haskell-language-server

GHC is indeed installed via pacman, and stack is installed through the stack-static package to avoid Arch's mess with dynamically linked haskell-* packages.

Then I assume that your error happens because of the dynamic linking mess,

OctarineSourcerer commented 4 years ago

Yeah, that could be helpful. We are happy for PRs :)

I'll see what I can do on that front :)

Then I assume that your error happens because of the dynamic linking mess,

That's possible! I may at some point try installing GHC and stack solely through manual means to try and test it.

fendor commented 4 years ago

That would be great! Afaict, ghcup is easy to set up!