Skip to content

Instantly share code, notes, and snippets.

@zekzekus
Created May 8, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zekzekus/5965ce24f9bc448a2cbd9f4318524a5c to your computer and use it in GitHub Desktop.
Save zekzekus/5965ce24f9bc448a2cbd9f4318524a5c to your computer and use it in GitHub Desktop.
2018-05-09 00:33:10.78796 [ThreadId 4] - run entered for HIE Version 0.2.0.0, Git revision b167e63e00007624fcf00b578b3e8846362eea14 (1331 commits) x86_64 ghc-8.2.2
2018-05-09 00:33:10.788922 [ThreadId 4] - Current directory:/Users/zekus/devel/projects/personal/seyler
2018-05-09 00:33:10.788995 [ThreadId 4] -
haskell-lsp:Starting up server ...
2018-05-09 00:33:10.789567 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"completion":{"completionItem":{"commitCharactersSupport":null,"documentationFormat":null,"snippetSupport":true},"dynamicRegistration":null}}},"initializationOptions":null,"processId":32821,"rootPath":"/Users/zekus/devel/projects/personal/seyler","rootUri":"file:///Users/zekus/devel/projects/personal/seyler","trace":"off"},"id":9}
2018-05-09 00:33:10.790209 [ThreadId 4] - haskell-lsp:initializeRequestHandler: setting current dir to project root:/Users/zekus/devel/projects/personal/seyler
2018-05-09 00:33:10.790674 [ThreadId 5] - <--2--{"result":{"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"willSave":false,"willSaveWaitUntil":false,"save":{"includeText":false}},"hoverProvider":true,"completionProvider":{"resolveProvider":true,"triggerCharacters":["."]},"definitionProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":true,"documentFormattingProvider":true,"documentRangeFormattingProvider":true,"renameProvider":true,"executeCommandProvider":{"commands":["applyrefact:applyOne","hare:demote"]}}},"jsonrpc":"2.0","id":9}
2018-05-09 00:33:10.826068 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"initialized","params":{}}
2018-05-09 00:33:10.826273 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"haskell","text":"import qualified Data.Text as T\nimport Protolude\nimport System.Exit (ExitCode (..), exitWith)\nimport System.IO (hGetContents)\nimport System.Process (CreateProcess (..), StdStream (CreatePipe),\n createProcess, shell, waitForProcess)\n\nimport Seyler\n\nmain :: IO ()\nmain = do\n let cmd = Command Add [(\"title\", \"thisis myfirst\")]\n _ <- runCommand $ toCommand cmd\n putStrLn (\"Done!\" :: Text)\n\nrunCommand :: Text -> IO [Text]\nrunCommand cmd = do\n (_, Just stdOut, _, ph) <-\n createProcess (shell (T.unpack cmd)) {std_out = CreatePipe}\n exit <- waitForProcess ph\n case exit of\n ExitSuccess -> T.splitOn (\"\\n\" :: Text) . T.pack <$> hGetContents stdOut\n ExitFailure code -> exitWith (ExitFailure code)\n","uri":"file:///Users/zekus/devel/projects/personal/seyler/executable/Main.hs","version":0}}}
2018-05-09 00:33:10.826666 [ThreadId 8] - ****** reactor: processing Initialized Notification
2018-05-09 00:33:10.826756 [ThreadId 8] - ****** reactor: processing NotDidOpenTextDocument
2018-05-09 00:33:10.826965 [ThreadId 5] - <--2--{"jsonrpc":"2.0","id":0,"method":"client/registerCapability","params":{"registrations":[{"registerOptions":{"documentSelector":{"language":"haskell"}},"method":"workspace/executeCommand","id":"hare:demote"}]}}
2018-05-09 00:33:10.828045 [ThreadId 4] - ---> {"jsonrpc":"2.0","result":null,"id":0}
2018-05-09 00:33:10.828145 [ThreadId 4] - haskell-lsp:Got reply message:"{\"jsonrpc\":\"2.0\",\"result\":null,\"id\":0}"
2018-05-09 00:33:10.828266 [ThreadId 8] - reactor:got RspFromClient:ResponseMessage {_jsonrpc = "2.0", _id = IdRspInt 0, _result = Nothing, _error = Nothing}
2018-05-09 00:33:11.069112 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:11.0692 [ThreadId 11] - ideDispatcher: top of loop
2018-05-09 00:33:11.069243 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:11.069333 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:11.069376 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:11.069613 [ThreadId 5] - <--2--{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"Using hoogle db at: /Users/zekus/.hoogle/default-haskell-5.0.17.hoo"}}
2018-05-09 00:33:11.53804 [ThreadId 7] - file mapping state is: fromList [("/Users/zekus/devel/projects/personal/seyler/executable/Main.hs",FileMapping {fmPath = "/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32841/Main32840-0.hs", fmTemp = True})]
2018-05-09 00:33:11.538169 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:11.538224 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:11.53827 [ThreadId 7] - Processing request as version matches
2018-05-09 00:33:11.630914 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:11.631023 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:11.631079 [ThreadId 7] - Processing request as version matches
2018-05-09 00:33:11.752468 [ThreadId 5] - <--2--{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///Users/zekus/devel/projects/personal/seyler/executable/Main.hs","diagnostics":[]}}
2018-05-09 00:33:12.207554 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/definition","params":{"position":{"character":22,"line":12},"textDocument":{"uri":"file:///Users/zekus/devel/projects/personal/seyler/executable/Main.hs"}},"id":24}
2018-05-09 00:33:12.209739 [ThreadId 8] - reactor:got DefinitionRequest:RequestMessage {_jsonrpc = "2.0", _id = IdInt 24, _method = TextDocumentDefinition, _params = TextDocumentPositionParams {_textDocument = TextDocumentIdentifier {_uri = Uri {getUri = "file:///Users/zekus/devel/projects/personal/seyler/executable/Main.hs"}}, _position = Position {_line = 12, _character = 22}}}
2018-05-09 00:33:12.854426 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:12.854514 [ThreadId 7] - got request with id: Just (IdInt 24)
2018-05-09 00:33:12.854553 [ThreadId 7] - processing request: IdInt 24
2018-05-09 00:33:12.855258 [ThreadId 5] - <--2--{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///Users/zekus/devel/projects/personal/seyler/executable/Main.hs","diagnostics":[]}}
2018-05-09 00:33:12.856925 [ThreadId 7] - srcSpan2Loc: mapped file is library/Seyler.hs
2018-05-09 00:33:12.85713 [ThreadId 7] - srcSpan2Loc: Original file is /Users/zekus/devel/projects/personal/seyler/library/Seyler.hs
2018-05-09 00:33:12.857183 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:12.857293 [ThreadId 5] - <--2--{"result":[{"uri":"file:///Users/zekus/devel/projects/personal/seyler/library/Seyler.hs","range":{"start":{"line":49,"character":0},"end":{"line":49,"character":9}}}],"jsonrpc":"2.0","id":24}
2018-05-09 00:33:12.902419 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"haskell","text":"module Seyler\n ( toCommandURL\n , toCommand\n , Action(..)\n , Command(..)\n ) where\n\nimport Lib.Prelude\n\nimport qualified Data.Text as T\nimport Network.URI.Encode (encodeText)\n\ntype Key = Text\n\ntype Value = Text\n\ntype Parameter = (Key, Value)\n\ntype ParameterList = [Parameter]\n\ndata Action\n = Add\n | AddProject\n | Update\n | UpdateProject\n | Show\n | Search\n | Version\n deriving (Show)\n\ndata Command = Command\n { action :: Action\n , parameters :: ParameterList\n } deriving (Show)\n\ntoCommandURL :: Command -> Text\ntoCommandURL (Command act params) =\n protocol <> partAction <> firstParamSeparator <> partParameters\n where\n partAction = (toKebab . show) act\n partParameters = T.intercalate \"&\" $ toArg <$> params\n toArg (k, v) = k <> \"=\" <> encodeText v\n protocol = \"things:///\"\n firstParamSeparator = \"?\"\n toKebab \"AddProject\" = \"add-project\"\n toKebab \"UpdateProject\" = \"update-project\"\n toKebab a = T.toLower a\n\ntoCommand :: Command -> Text\ntoCommand cmd = open <> toCommandURL cmd\n where\n open = \"open \" :: Text\n","uri":"file:///Users/zekus/devel/projects/personal/seyler/library/Seyler.hs","version":0}}}
2018-05-09 00:33:12.902763 [ThreadId 8] - ****** reactor: processing NotDidOpenTextDocument
2018-05-09 00:33:12.902895 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:13.149915 [ThreadId 7] - file mapping state is: fromList [("/Users/zekus/devel/projects/personal/seyler/executable/Main.hs",FileMapping {fmPath = "/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32841/Main32840-0.hs", fmTemp = True}),("/Users/zekus/devel/projects/personal/seyler/library/Seyler.hs",FileMapping {fmPath = "/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs", fmTemp = True})]
2018-05-09 00:33:13.150036 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:13.150082 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:13.150123 [ThreadId 7] - Processing request as version matches
2018-05-09 00:33:13.183533 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:13.18363 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:13.183667 [ThreadId 7] - Processing request as version matches
2018-05-09 00:33:13.196581 [ThreadId 5] - <--2--{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///Users/zekus/devel/projects/personal/seyler/library/Seyler.hs","diagnostics":[]}}
2018-05-09 00:33:14.071866 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:14.072016 [ThreadId 5] - <--2--{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///Users/zekus/devel/projects/personal/seyler/library/Seyler.hs","diagnostics":[]}}
2018-05-09 00:33:16.129638 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/definition","params":{"position":{"character":24,"line":49},"textDocument":{"uri":"file:///Users/zekus/devel/projects/personal/seyler/library/Seyler.hs"}},"id":45}
2018-05-09 00:33:16.129851 [ThreadId 8] - reactor:got DefinitionRequest:RequestMessage {_jsonrpc = "2.0", _id = IdInt 45, _method = TextDocumentDefinition, _params = TextDocumentPositionParams {_textDocument = TextDocumentIdentifier {_uri = Uri {getUri = "file:///Users/zekus/devel/projects/personal/seyler/library/Seyler.hs"}}, _position = Position {_line = 49, _character = 24}}}
2018-05-09 00:33:16.130014 [ThreadId 7] - got request with id: Just (IdInt 45)
2018-05-09 00:33:16.130084 [ThreadId 7] - processing request: IdInt 45
2018-05-09 00:33:16.134683 [ThreadId 7] - srcSpan2Loc: mapped file is /var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs
2018-05-09 00:33:16.135132 [ThreadId 7] - srcSpan2Loc: Original file is /private/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs
2018-05-09 00:33:16.135206 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:16.13532 [ThreadId 5] - <--2--{"result":[{"uri":"file:///private/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs","range":{"start":{"line":36,"character":0},"end":{"line":36,"character":12}}}],"jsonrpc":"2.0","id":45}
2018-05-09 00:33:16.171868 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"haskell","text":"module Seyler\n ( toCommandURL\n , toCommand\n , Action(..)\n , Command(..)\n ) where\n\nimport Lib.Prelude\n\nimport qualified Data.Text as T\nimport Network.URI.Encode (encodeText)\n\ntype Key = Text\n\ntype Value = Text\n\ntype Parameter = (Key, Value)\n\ntype ParameterList = [Parameter]\n\ndata Action\n = Add\n | AddProject\n | Update\n | UpdateProject\n | Show\n | Search\n | Version\n deriving (Show)\n\ndata Command = Command\n { action :: Action\n , parameters :: ParameterList\n } deriving (Show)\n\ntoCommandURL :: Command -> Text\ntoCommandURL (Command act params) =\n protocol <> partAction <> firstParamSeparator <> partParameters\n where\n partAction = (toKebab . show) act\n partParameters = T.intercalate \"&\" $ toArg <$> params\n toArg (k, v) = k <> \"=\" <> encodeText v\n protocol = \"things:///\"\n firstParamSeparator = \"?\"\n toKebab \"AddProject\" = \"add-project\"\n toKebab \"UpdateProject\" = \"update-project\"\n toKebab a = T.toLower a\n\ntoCommand :: Command -> Text\ntoCommand cmd = open <> toCommandURL cmd\n where\n open = \"open \" :: Text\n","uri":"file:///private/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs","version":0}}}
2018-05-09 00:33:16.172878 [ThreadId 8] - ****** reactor: processing NotDidOpenTextDocument
2018-05-09 00:33:16.173307 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:16.191652 [ThreadId 7] - file mapping state is: fromList [("/Users/zekus/devel/projects/personal/seyler/executable/Main.hs",FileMapping {fmPath = "/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32841/Main32840-0.hs", fmTemp = True}),("/Users/zekus/devel/projects/personal/seyler/library/Seyler.hs",FileMapping {fmPath = "/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs", fmTemp = True}),("/private/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs",FileMapping {fmPath = "/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32843/Seyler32840-132840-2.hs", fmTemp = True})]
2018-05-09 00:33:16.191777 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:16.191817 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:16.191883 [ThreadId 7] - Processing request as version matches
2018-05-09 00:33:16.228466 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:16.228561 [ThreadId 7] - got request with id: Nothing
2018-05-09 00:33:16.2286 [ThreadId 7] - Processing request as version matches
2018-05-09 00:33:16.237761 [ThreadId 5] - <--2--{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///private/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs","diagnostics":[]}}
2018-05-09 00:33:16.302369 [ThreadId 7] - in srcErrToDiag
2018-05-09 00:33:16.302475 [ThreadId 7] - setTypecheckedModule: Didn't get typechecked module for: "/private/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs"
2018-05-09 00:33:16.302525 [ThreadId 7] - ghcDispatcher: top of loop
2018-05-09 00:33:16.302699 [ThreadId 5] - <--2--{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":1,"message":"Got error while processing diagnostics: <no location info>: error:\n module ‘main:Seyler’ is defined in multiple files: /var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs\n /var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32843/Seyler32840-132840-2.hs"}}
2018-05-09 00:33:16.30283 [ThreadId 5] - <--2--{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///private/var/folders/qx/fdvs1_qd5b7ch8y2j5yj6spw0000gp/T/ghc-mod32842/Seyler32840-1.hs","diagnostics":[]}}
2018-05-09 00:33:21.318113 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"exit","params":null}
2018-05-09 00:33:21.318243 [ThreadId 4] - haskell-lsp:Got exit, exiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment