Skip to content

Instantly share code, notes, and snippets.

@maksbotan
Created September 7, 2018 08:50
Show Gist options
  • Save maksbotan/412ea588248d05b52a5f399227c59e92 to your computer and use it in GitHub Desktop.
Save maksbotan/412ea588248d05b52a5f399227c59e92 to your computer and use it in GitHub Desktop.
haskell-lsp:Starting up server ...
2018-09-07 11:49:18.303525648 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"completion":{"completionItem":{"snippetSupport":false}}},"workspace":{"applyEdit":true,"didChangeWatchedFiles":{"dynamicRegistration":true}}},"processId":31802,"rootPath":"/home/maks/Projects/SRK/ariadne","rootUri":"file:///home/maks/Projects/SRK/ariadne","trace":"off"},"id":47}
2018-09-07 11:49:18.303819425 [ThreadId 4] - haskell-lsp:initializeRequestHandler: setting current dir to project root:/home/maks/Projects/SRK/ariadne
2018-09-07 11:49:18.304185589 [ThreadId 6] - <--2--{"result":{"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"willSave":false,"willSaveWaitUntil":false,"save":{"includeText":false}},"documentRangeFormattingProvider":true,"documentHighlightProvider":true,"executeCommandProvider":{"commands":["490:applyrefact:applyOne","490:applyrefact:applyAll","490:applyrefact:lint","490:base:version","490:base:plugins","490:base:commands","490:base:commandDetail","490:brittany:format","490:build:prepare","490:build:isConfigured","490:build:configure","490:build:listTargets","490:build:listFlags","490:build:buildDirectory","490:build:buildTarget","490:ghcmod:check","490:ghcmod:lint","490:ghcmod:info","490:ghcmod:type","490:ghcmod:casesplit","490:hare:demote","490:hare:dupdef","490:hare:iftocase","490:hare:liftonelevel","490:hare:lifttotoplevel","490:hare:rename","490:hare:deletedef","490:hare:genapplicative","490:hoogle:info","490:hoogle:lookup","490:hsimport:import","490:liquid:sayHello","490:liquid:sayHelloTo ","490:package:add"]},"renameProvider":true,"definitionProvider":true,"hoverProvider":true,"codeActionProvider":true,"completionProvider":{"triggerCharacters":["."],"resolveProvider":true},"documentSymbolProvider":true,"documentFormattingProvider":true,"referencesProvider":true}},"jsonrpc":"2.0","id":47}
2018-09-07 11:49:18.319778779 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"initialized","params":{}}
2018-09-07 11:49:18.319974165 [ThreadId 4] - ---> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"haskell","text":"module Ariadne.UI.Qt.Widgets.Dialogs.Request\n ( startRequest\n ) where\n\nimport Universum\n\nimport qualified Data.Text as T\nimport Formatting\n\nimport Graphics.UI.Qtah.Signal (connect_)\n\nimport qualified Graphics.UI.Qtah.Widgets.QAbstractButton as QAbstractButton\nimport qualified Graphics.UI.Qtah.Widgets.QBoxLayout as QBoxLayout\nimport qualified Graphics.UI.Qtah.Widgets.QCheckBox as QCheckBox\nimport qualified Graphics.UI.Qtah.Widgets.QDialog as QDialog\nimport qualified Graphics.UI.Qtah.Widgets.QHBoxLayout as QHBoxLayout\nimport qualified Graphics.UI.Qtah.Widgets.QLabel as QLabel\nimport qualified Graphics.UI.Qtah.Widgets.QLineEdit as QLineEdit\nimport qualified Graphics.UI.Qtah.Widgets.QPushButton as QPushButton\nimport qualified Graphics.UI.Qtah.Widgets.QVBoxLayout as QVBoxLayout\nimport qualified Graphics.UI.Qtah.Widgets.QWidget as QWidget\n\nimport Ariadne.UI.Qt.Widgets.Dialogs.Util\nimport Ariadne.UI.Qt.UI\n\ndata Request =\n Request\n { request :: QDialog.QDialog\n }\n\ninitRequest :: IO Request\ninitRequest = do\n request <- QDialog.new\n layout <- createLayout request\n\n let headerString = \"REQUEST\" :: String\n\n QWidget.setWindowTitle request headerString\n\n header <- QLabel.newWithText headerString\n addHeader layout header\n\n createAddressRow layout \"19MxMbcEskurDMdVX1h32Fi94Nojxp1gvwMYbDziZoPjGmJdssagaugyCqUUJVySKBdA1DUHbpYmQd6yTeFQqfrWWKx9gs\" \"123\"\n addSeparator layout\n\n let req = Request{..}\n\n return req\n\nstartRequest :: IO ()\nstartRequest = do\n Request{..} <- initRequest\n QWidget.show request\n\ncreateAddressRow :: QVBoxLayout.QVBoxLayout -> Text -> Text -> IO ()\ncreateAddressRow parentLayout address balance = do\n layout <- QHBoxLayout.new\n\n addressLabel <- QLabel.newWithText $ toString address\n QBoxLayout.addWidget layout addressLabel\n QLabel.setWordWrap addressLabel True\n\n rightLayout <- QVBoxLayout.new\n balanceLabel <- QLabel.newWithText (\"0 ADA\" :: String)\n copyButton <- QPushButton.newWithText (\"Copy address\" :: String)\n\n QBoxLayout.addWidget rightLayout balanceLabel\n QBoxLayout.addWidget rightLayout copyButton\n\n QBoxLayout.addLayout layout rightLayout\n QBoxLayout.setStretch layout 0 1\n QBoxLayout.setStretch layout 1 0\n\n QBoxLayout.addLayout parentLayout layout\n","uri":"file:///home/maks/Projects/SRK/ariadne/ui/qt-lib/src/Ariadne/UI/Qt/Widgets/Dialogs/Request.hs","version":0}}}
2018-09-07 11:49:18.320527124 [ThreadId 13] - ghcDispatcher: top of loop
2018-09-07 11:49:18.320584812 [ThreadId 10] - ****** reactor: got message number:0
2018-09-07 11:49:18.320630918 [ThreadId 10] - ****** reactor: processing Initialized Notification
2018-09-07 11:49:18.320698187 [ThreadId 10] - Using stack GHC version
2018-09-07 11:49:18.32084752 [ThreadId 14] - ideDispatcher: top of loop
2018-09-07 11:49:18.32095469 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":4,"message":"Using hie version: Version 0.2.2.0, Git revision cf08220f56d4692f82b8c44810fbbcb7273bde34 (dirty) (1838 commits) x86_64 ghc-8.2.2"},"method":"window/logMessage"}
2018-09-07 11:49:18.427194179 [ThreadId 10] - ****** reactor: got message number:1
2018-09-07 11:49:18.427268112 [ThreadId 10] - ****** reactor: processing NotDidOpenTextDocument
2018-09-07 11:49:18.427440496 [ThreadId 10] - requestDiagnostics: no diagFunc for:DiagnosticOnOpen
2018-09-07 11:49:18.427571091 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":2,"message":"cabal-install is not installed. Check the README for more information"},"method":"window/showMessage"}
2018-09-07 11:49:18.427648539 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":2,"message":"cabal-install is not installed. Check the README for more information"},"method":"window/logMessage"}
2018-09-07 11:49:18.42769913 [ThreadId 13] - ghcDispatcher:got request 0 with id: Nothing
2018-09-07 11:49:18.427779858 [ThreadId 13] - ghcDispatcher: top of loop
2018-09-07 11:49:18.427813955 [ThreadId 13] - ghcDispatcher:got request 1 with id: Nothing
2018-09-07 11:49:18.428692057 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":2,"message":"No hoogle db found. Check the README for instructions to generate one"},"method":"window/showMessage"}
2018-09-07 11:49:18.536478027 [ThreadId 13] - file mapping state is: fromList [("/home/maks/Projects/SRK/ariadne/ui/qt-lib/src/Ariadne/UI/Qt/Widgets/Dialogs/Request.hs",FileMapping {fmPath = "/tmp/ghc-mod491/Request490-0.hs", fmTemp = True})]
2018-09-07 11:49:18.536791046 [ThreadId 13] - ghcDispatcher: top of loop
2018-09-07 11:49:18.536958631 [ThreadId 13] - ghcDispatcher:got request 1 with id: Nothing
2018-09-07 11:49:18.537098419 [ThreadId 13] - ghcDispatcher:Processing request as version matches
2018-09-07 11:49:18.619204536 [ThreadId 13] - ghcDispatcher: top of loop
2018-09-07 11:49:18.619277457 [ThreadId 13] - ghcDispatcher:got request 1 with id: Nothing
2018-09-07 11:49:18.619309537 [ThreadId 13] - ghcDispatcher:Processing request as version matches
2018-09-07 11:49:18.62017569 [ThreadId 13] - setTypecheckedModule: file mapping state is: fromList [("/home/maks/Projects/SRK/ariadne/ui/qt-lib/src/Ariadne/UI/Qt/Widgets/Dialogs/Request.hs",FileMapping {fmPath = "/tmp/ghc-mod491/Request490-0.hs", fmTemp = True})]
2018-09-07 11:49:18.620237905 [ThreadId 13] - setTypecheckedModule: before ghc-mod
2018-09-07 11:49:18.718487863 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"uri":"file:///home/maks/Projects/SRK/ariadne/ui/qt-lib/src/Ariadne/UI/Qt/Widgets/Dialogs/Request.hs","diagnostics":[{"severity":4,"range":{"start":{"line":25,"character":0},"end":{"line":28,"character":5}},"code":"Use newtype instead of data","source":"hlint","message":"Use newtype instead of data\nFound:\n data Request = Request{request :: QDialog.QDialog}\nWhy not:\n newtype Request = Request{request :: QDialog.QDialog}\ndecreases laziness\n"}]},"method":"textDocument/publishDiagnostics"}
2018-09-07 11:49:18.71866999 [ThreadId 13] - setTypecheckedModule: after ghc-mod
2018-09-07 11:49:18.71896826 [ThreadId 13] - setTypecheckedModule: Didn't get typechecked module for: "/home/maks/Projects/SRK/ariadne/ui/qt-lib/src/Ariadne/UI/Qt/Widgets/Dialogs/Request.hs"
2018-09-07 11:49:18.719115292 [ThreadId 13] - ghcDispatcher: top of loop
2018-09-07 11:49:18.719236617 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"type":1,"message":"Got error while processing diagnostics: readCreateProcess: /home/maks/work/haskell-ide-engine/.stack-work/install/x86_64-linux-ncurses6/lts-11.13/8.2.2/libexec/x86_64-linux-ghc-8.2.2/cabal-helper-0.8.1.0/cabal-helper-wrapper \"--with-ghc=/home/maks/.stack/programs/x86_64-linux/ghc-ncurses6-8.2.2/bin/ghc\" \"--with-ghc-pkg=/home/maks/.stack/programs/x86_64-linux/ghc-ncurses6-8.2.2/bin/ghc-pkg\" \"--with-cabal=cabal\" \"/home/maks/Projects/SRK/ariadne/ui/qt-lib\" \"/home/maks/Projects/SRK/ariadne/ui/qt-lib/.stack-work/dist/x86_64-linux-ncurses6/Cabal-2.0.1.0\" \"package-db-stack\" \"flags\" \"compiler-version\" \"ghc-merged-pkg-options\" \"config-flags\" \"non-default-config-flags\" \"ghc-src-options\" \"ghc-pkg-options\" \"ghc-lang-options\" \"ghc-options\" \"source-dirs\" \"entrypoints\" \"needs-build-output\" (exit 1): failed"},"method":"window/showMessage"}
2018-09-07 11:49:18.719329995 [ThreadId 6] - <--2--{"jsonrpc":"2.0","params":{"uri":"file:///home/maks/Projects/SRK/ariadne/ui/qt-lib/src/Ariadne/UI/Qt/Widgets/Dialogs/Request.hs","diagnostics":[{"severity":4,"range":{"start":{"line":25,"character":0},"end":{"line":28,"character":5}},"code":"Use newtype instead of data","source":"hlint","message":"Use newtype instead of data\nFound:\n data Request = Request{request :: QDialog.QDialog}\nWhy not:\n newtype Request = Request{request :: QDialog.QDialog}\ndecreases laziness\n"}]},"method":"textDocument/publishDiagnostics"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment