2020-05-01 22:16:08.534296 [ThreadId 4] - run entered for hie-wrapper(hie-wrapper) Version 1.3 x86_64 ghc-8.8.3 2020-05-01 22:16:08.535123 [ThreadId 4] - Current directory:/Users/ur20980/Src/Str2Split 2020-05-01 22:16:08.535162 [ThreadId 4] - Operating system:darwin 2020-05-01 22:16:08.53519 [ThreadId 4] - args:["--lsp","-d","--vomit","-l","/Users/ur20980/hie.log"] 2020-05-01 22:16:08.535401 [ThreadId 4] - Found "/Users/ur20980/Src/Str2Split/hie.yaml" for "/Users/ur20980/Src/Str2Split/File.hs" 2020-05-01 22:16:08.535746 [ThreadId 4] - Module "/Users/ur20980/Src/Str2Split/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/Users/ur20980/Src/Str2Split", cradleOptsProg = CradleAction: Cabal} 2020-05-01 22:16:08.535803 [ThreadId 4] - Cradle directory:/Users/ur20980/Src/Str2Split 2020-05-01 22:16:08.536025 [ThreadId 4] - Executing GHC on path with args: --numeric-version 2020-05-01 22:16:08.615737 [ThreadId 4] - GHC Output: "Just "8.8.3"" 2020-05-01 22:16:08.615863 [ThreadId 4] - Project GHC version:8.8.3 2020-05-01 22:16:08.61589 [ThreadId 4] - hie exe candidates :["hie-8.8.3","hie-8.8","hie"] 2020-05-01 22:16:08.616519 [ThreadId 4] - found hie exe at:/Users/ur20980/.cabal/bin/hie-8.8.3 2020-05-01 22:16:08.616555 [ThreadId 4] - args:["--lsp","-d","--vomit","-l","/Users/ur20980/hie.log"] 2020-05-01 22:16:08.616579 [ThreadId 4] - launching .... 2020-05-01 22:16:09.045709 [ThreadId 4] - Run entered for HIE(hie-8.8.3) Version 1.3 x86_64 ghc-8.8.3 2020-05-01 22:16:09.0465 [ThreadId 4] - Operating as a LSP server on stdio 2020-05-01 22:16:09.046534 [ThreadId 4] - Current directory:/Users/ur20980/Src/Str2Split 2020-05-01 22:16:09.04656 [ThreadId 4] - Operating system:darwin 2020-05-01 22:16:09.046586 [ThreadId 4] - args:["--lsp","-d","--vomit","-l","/Users/ur20980/hie.log"] 2020-05-01 22:16:09.046614 [ThreadId 4] - Enabling verbose mode for hie-bios. This option currently doesn't do anything. 2020-05-01 22:16:09.046708 [ThreadId 4] - haskell-lsp:Starting up server ... 2020-05-01 22:16:09.047184 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":39181,"clientInfo":{"name":"vscode","version":"1.44.2"},"rootPath":"/Users/ur20980/Src/Str2Split","rootUri":"file:///Users/ur20980/Src/Str2Split","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:///Users/ur20980/Src/Str2Split","name":"Str2Split"}]}} 2020-05-01 22:16:09.048304 [ThreadId 4] - haskell-lsp:initializeRequestHandler: setting current dir to project root:/Users/ur20980/Src/Str2Split 2020-05-01 22:16:09.048463 [ThreadId 4] - Dummy Cradle file result: /Users/ur20980/Src/Str2Split/File.hs 2020-05-01 22:16:09.048682 [ThreadId 4] - Found "/Users/ur20980/Src/Str2Split/hie.yaml" for "/Users/ur20980/Src/Str2Split/File.hs" 2020-05-01 22:16:09.049012 [ThreadId 4] - Module "/Users/ur20980/Src/Str2Split/File.hs" is loaded by Cradle: Cradle {cradleRootDir = "/Users/ur20980/Src/Str2Split", cradleOptsProg = CradleAction: Cabal} 2020-05-01 22:16:09.049193 [ThreadId 4] - Executing GHC on path with args: --numeric-version 2020-05-01 22:16:09.125529 [ThreadId 4] - GHC Output: "Just "8.8.3"" 2020-05-01 22:16:09.125875 [ThreadId 9] - Executing GHC on path with args: --print-libdir 2020-05-01 22:16:09.126718 [ThreadId 11] - ****** reactor: top of loop 2020-05-01 22:16:09.127383 [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":["39288:applyrefact:applyOne","39288:applyrefact:applyAll","39288:generic:type","39288:ghcmod:check","39288:ghcmod:type","39288:ghcmod:casesplit","39288:hsimport:import","39288:package:add","39288: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-05-01 22:16:09.129323 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"initialized","params":{}} 2020-05-01 22:16:09.12953 [ThreadId 11] - ****** reactor: got message number:0 2020-05-01 22:16:09.129596 [ThreadId 11] - ****** reactor: processing Initialized Notification 2020-05-01 22:16:09.129662 [ThreadId 11] - ****** reactor: top of loop 2020-05-01 22:16:09.129825 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":4,"message":"Using hie version: Version 1.3 x86_64 ghc-8.8.3"},"method":"window/logMessage"} 2020-05-01 22:16:09.177035 [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":"","useCustomHieWrapper":false,"useCustomHieWrapperPath":"","noLspParam":false,"showTypeForSelection":{"onHover":true,"command":{"location":"dropdown"}},"trace":{"server":"verbose"},"logFile":"/Users/ur20980/hie.log","enableHIE":true}}}} 2020-05-01 22:16:09.177329 [ThreadId 11] - ****** reactor: got message number:1 2020-05-01 22:16:09.177385 [ThreadId 11] - reactor:didChangeConfiguration notification:NotificationMessage {_jsonrpc = "2.0", _method = WorkspaceDidChangeConfiguration, _params = DidChangeConfigurationParams {_settings = Object (fromList [("languageServerHaskell",Object (fromList [("useCustomHieWrapper",Bool False),("useCustomHieWrapperPath",String ""),("logFile",String "/Users/ur20980/hie.log"),("hlintOn",Bool True),("formatOnImportOn",Bool True),("noLspParam",Bool False),("hieExecutablePath",String ""),("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 "verbose")]))]))])}} 2020-05-01 22:16:09.177502 [ThreadId 11] - reactor:didChangeConfiguration diagsOn:True 2020-05-01 22:16:09.17754 [ThreadId 11] - ****** reactor: top of loop 2020-05-01 22:16:09.177585 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///Users/ur20980/Src/Str2Split/test/Spec.hs","languageId":"haskell","version":1,"text":"import Control.Exception (evaluate)\nimport Test.Hspec\nimport Test.QuickCheck\n\nmain :: IO ()\n-- main = putStrLn \"Test suite not yet implemented\"\nmain =\n hspec $ do\n describe \"Prelude.head\" $ do\n it \"returns the first elem of a list\" $ do\n head [23 ..] `shouldBe` (23 :: Int)\n it \"returns the first element of an *arbitrary* list\" $\n property $ \\x xs -> head (x : xs) == (x :: Int)\n it \"throws an exception if used with an empty list\" $ do\n evaluate (head []) `shouldThrow` anyException\n"}}} 2020-05-01 22:16:09.177704 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":1,"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///Users/ur20980/Src/Str2Split/test/Spec.hs"}}} 2020-05-01 22:16:09.17785 [ThreadId 11] - ****** reactor: got message number:2 2020-05-01 22:16:09.177894 [ThreadId 11] - ****** reactor: processing NotDidOpenTextDocument 2020-05-01 22:16:09.17794 [ThreadId 11] - requestDiagnostics: no diagFunc for:DiagnosticOnOpen 2020-05-01 22:16:09.177979 [ThreadId 11] - ****** reactor: top of loop 2020-05-01 22:16:09.178013 [ThreadId 11] - ****** reactor: got message number:3 2020-05-01 22:16:09.178038 [ThreadId 11] - reactor:got Document symbol request:RequestMessage {_jsonrpc = "2.0", _id = IdInt 1, _method = TextDocumentDocumentSymbol, _params = DocumentSymbolParams {_textDocument = TextDocumentIdentifier {_uri = Uri {getUri = "file:///Users/ur20980/Src/Str2Split/test/Spec.hs"}}, _workDoneToken = Nothing}} 2020-05-01 22:16:09.178086 [ThreadId 11] - ****** reactor: top of loop 2020-05-01 22:16:09.233671 [ThreadId 9] - GHC Output: "Just "/Users/ur20980/.ghcup/ghc/8.8.3/lib/ghc-8.8.3"" 2020-05-01 22:16:09.234231 [ThreadId 17] - ideDispatcher: top of loop 2020-05-01 22:16:09.234292 [ThreadId 17] - ideDispatcher: got request 3 with id: IdInt 1 2020-05-01 22:16:09.234513 [ThreadId 17] - ideDispatcher: top of loop 2020-05-01 22:16:09.237501 [ThreadId 15] - ghcDispatcher: top of loop 2020-05-01 22:16:09.237552 [ThreadId 15] - ghcDispatcher:got request 0 with id: Nothing 2020-05-01 22:16:09.237636 [ThreadId 15] - ghcDispatcher: top of loop 2020-05-01 22:16:09.237664 [ThreadId 15] - ghcDispatcher:got request 2 with id: Nothing 2020-05-01 22:16:09.23777 [ThreadId 15] - ghcDispatcher:Processing request as version matches 2020-05-01 22:16:09.237929 [ThreadId 15] - New cradle: /Users/ur20980/Src/Str2Split/test/Spec.hs 2020-05-01 22:16:09.238144 [ThreadId 15] - Found "/Users/ur20980/Src/Str2Split/hie.yaml" for "/Users/ur20980/Src/Str2Split/test/Spec.hs" 2020-05-01 22:16:09.238294 [ThreadId 15] - Module "/Users/ur20980/Src/Str2Split/test/Spec.hs" is loaded by Cradle: Cradle {cradleRootDir = "/Users/ur20980/Src/Str2Split", cradleOptsProg = CradleAction: Cabal} 2020-05-01 22:16:09.238353 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/Users/ur20980/Src/Str2Split", cradleOptsProg = CradleAction: Cabal} 2020-05-01 22:16:09.238444 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":4,"message":"Using hoogle db at: /Users/ur20980/.hoogle/default-haskell-5.0.17.hoo"},"method":"window/logMessage"} 2020-05-01 22:16:09.238514 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"token":0},"method":"window/workDoneProgress/create","id":0} 2020-05-01 22:16:09.238593 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"begin","cancellable":false,"title":"Initializing Cabal project","percentage":0},"token":0},"method":"$/progress"} 2020-05-01 22:16:09.239451 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":0,"result":null} 2020-05-01 22:16:09.23956 [ThreadId 4] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"id\":0,\"result\":null}" 2020-05-01 22:16:09.239728 [ThreadId 11] - ****** reactor: got message number:4 2020-05-01 22:16:09.239779 [ThreadId 11] - reactor:got RspFromClient:ResponseMessage {_jsonrpc = "2.0", _id = IdRspInt 0, _result = Just Null, _error = Nothing} 2020-05-01 22:16:09.23982 [ThreadId 11] - ****** reactor: top of loop 2020-05-01 22:16:09.326465 [ThreadId 24] - cabal: Unknown target '/Users/ur20980/Src/Str2Split/test/Spec.hs'. 2020-05-01 22:16:09.326542 [ThreadId 24] - The package Str2Split has no file target 'test/Spec.hs'. 2020-05-01 22:16:09.326568 [ThreadId 24] - 2020-05-01 22:16:09.326593 [ThreadId 24] - 2020-05-01 22:16:09.341104 [ThreadId 20] - Fail on cradle initialisation: (ExitFailure 1)["Failed to parse result of calling cabal","","cabal: Unknown target '/Users/ur20980/Src/Str2Split/test/Spec.hs'.\nThe package Str2Split has no file target 'test/Spec.hs'.\n\n\n",""] 2020-05-01 22:16:09.341456 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"uri":"file:///Users/ur20980/Src/Str2Split/test/Spec.hs","diagnostics":[{"severity":1,"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":0}},"source":"bios","message":"Fail on initialisation for \"/Users/ur20980/Src/Str2Split/test/Spec.hs\".\nFailed to parse result of calling cabal\n\ncabal: Unknown target '/Users/ur20980/Src/Str2Split/test/Spec.hs'.\nThe package Str2Split has no file target 'test/Spec.hs'.\n\n\n\n\n"}]},"method":"textDocument/publishDiagnostics"} 2020-05-01 22:16:09.341547 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "Fail on initialisation for \"/Users/ur20980/Src/Str2Split/test/Spec.hs\". Failed to parse result of calling cabal", ideInfo = Null} with mid: Nothing 2020-05-01 22:16:09.341799 [ThreadId 15] - ghcDispatcher: top of loop 2020-05-01 22:16:09.341846 [ThreadId 15] - ghcDispatcher:got request 2 with id: Nothing 2020-05-01 22:16:09.341887 [ThreadId 15] - ghcDispatcher:Processing request as version matches 2020-05-01 22:16:09.342334 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"end"},"token":0},"method":"$/progress"} 2020-05-01 22:16:09.342495 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":1,"message":"Fail on initialisation for \"/Users/ur20980/Src/Str2Split/test/Spec.hs\". Failed to parse result of calling cabal"},"method":"window/showMessage"} 2020-05-01 22:16:09.342627 [ThreadId 15] - New cradle: /Users/ur20980/Src/Str2Split/test/Spec.hs 2020-05-01 22:16:09.342994 [ThreadId 15] - Found "/Users/ur20980/Src/Str2Split/hie.yaml" for "/Users/ur20980/Src/Str2Split/test/Spec.hs" 2020-05-01 22:16:09.343258 [ThreadId 15] - Module "/Users/ur20980/Src/Str2Split/test/Spec.hs" is loaded by Cradle: Cradle {cradleRootDir = "/Users/ur20980/Src/Str2Split", cradleOptsProg = CradleAction: Cabal} 2020-05-01 22:16:09.343331 [ThreadId 15] - Found cradle: Cradle {cradleRootDir = "/Users/ur20980/Src/Str2Split", cradleOptsProg = CradleAction: Cabal} 2020-05-01 22:16:09.344031 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"token":1},"method":"window/workDoneProgress/create","id":1} 2020-05-01 22:16:09.344148 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"begin","cancellable":false,"title":"Initializing Cabal project","percentage":0},"token":1},"method":"$/progress"} 2020-05-01 22:16:09.345664 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":1,"result":null} 2020-05-01 22:16:09.345786 [ThreadId 4] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":null}" 2020-05-01 22:16:09.346005 [ThreadId 11] - ****** reactor: got message number:5 2020-05-01 22:16:09.346065 [ThreadId 11] - reactor:got RspFromClient:ResponseMessage {_jsonrpc = "2.0", _id = IdRspInt 1, _result = Just Null, _error = Nothing} 2020-05-01 22:16:09.346108 [ThreadId 11] - ****** reactor: top of loop 2020-05-01 22:16:09.449642 [ThreadId 32] - cabal: Unknown target '/Users/ur20980/Src/Str2Split/test/Spec.hs'. 2020-05-01 22:16:09.449711 [ThreadId 32] - The package Str2Split has no file target 'test/Spec.hs'. 2020-05-01 22:16:09.449735 [ThreadId 32] - 2020-05-01 22:16:09.44976 [ThreadId 32] - 2020-05-01 22:16:09.462864 [ThreadId 28] - Fail on cradle initialisation: (ExitFailure 1)["Failed to parse result of calling cabal","","cabal: Unknown target '/Users/ur20980/Src/Str2Split/test/Spec.hs'.\nThe package Str2Split has no file target 'test/Spec.hs'.\n\n\n",""] 2020-05-01 22:16:09.463198 [ThreadId 15] - ghcDispatcher:Got error for a request: IdeError {ideCode = OtherError, ideMessage = "Fail on initialisation for \"/Users/ur20980/Src/Str2Split/test/Spec.hs\". Failed to parse result of calling cabal", ideInfo = Null} with mid: Nothing 2020-05-01 22:16:09.463312 [ThreadId 15] - ghcDispatcher: top of loop 2020-05-01 22:16:09.463554 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"uri":"file:///Users/ur20980/Src/Str2Split/test/Spec.hs","diagnostics":[{"severity":1,"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":0}},"source":"bios","message":"Fail on initialisation for \"/Users/ur20980/Src/Str2Split/test/Spec.hs\".\nFailed to parse result of calling cabal\n\ncabal: Unknown target '/Users/ur20980/Src/Str2Split/test/Spec.hs'.\nThe package Str2Split has no file target 'test/Spec.hs'.\n\n\n\n\n"}]},"method":"textDocument/publishDiagnostics"} 2020-05-01 22:16:09.463976 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"value":{"kind":"end"},"token":1},"method":"$/progress"} 2020-05-01 22:16:09.464043 [ThreadId 5] - <--2--{"jsonrpc":"2.0","params":{"type":1,"message":"Fail on initialisation for \"/Users/ur20980/Src/Str2Split/test/Spec.hs\". Failed to parse result of calling cabal"},"method":"window/showMessage"} 2020-05-01 22:16:27.662116 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":2,"method":"shutdown","params":null} 2020-05-01 22:16:27.668852 [ThreadId 5] - <--2--{"result":null,"jsonrpc":"2.0","id":2} 2020-05-01 22:16:27.680376 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"exit","params":null} 2020-05-01 22:16:27.685583 [ThreadId 4] - haskell-lsp:Got exit, exiting