phoityne / hdx4vsc

Haskell Debugger Extension for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=phoityne.phoityne-vscode
BSD 3-Clause "New" or "Revised" License
50 stars 9 forks source link

Debugger not start (stack, ghc 8.10.7) #15

Closed kozer closed 3 years ago

kozer commented 3 years ago

I have 2 projects with 8.10.7. In on (simple stack created app) everything is ok. On the other one, I follow the examples of haskell in depth book. here Although I get

2021-09-16 01:46:23.092896426000 [1076348(ThreadId 17)] DEBUG APP - ["stack","ghci","--test","--no-load","--no-build","--main-is","TARGET","--ghci-options","-fprint-evld-with-show"]
2021-09-16 01:46:23.097301946000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 2, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "Configuration read.\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.098779500000 [1076348(ThreadId 17)] INFO APP - "--with-ghc" option not found. adding "--with-ghc=ghci-dap"
2021-09-16 01:46:23.107667520000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":2,"type":"event","event":"output","body":{"category":"stdout","output":"Configuration read.\n"}}
2021-09-16 01:46:23.110835327000 [1076348(ThreadId 17)] DEBUG APP - ghci initial prompt [> ].
2021-09-16 01:46:23.117768919000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.133864055000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.137596206000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.140896388000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 3, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "console", outputOutputEventBody = "Starting GHCi.\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.152245842000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":3,"type":"event","event":"output","body":{"category":"console","output":"Starting GHCi.\n"}}
2021-09-16 01:46:23.158644623000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.161789341000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.164929063000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.167912444000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 4, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stderr", outputOutputEventBody = "Wait for a moment.\n\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.205112410000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":4,"type":"event","event":"output","body":{"category":"stderr","output":"Wait for a moment.\n\n"}}
2021-09-16 01:46:23.210327115000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.213340723000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.216077640000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.218726891000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 5, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "[DEBUG][APP] [\"stack\",\"ghci\",\"--test\",\"--no-load\",\"--no-build\",\"--main-is\",\"TARGET\",\"--ghci-options\",\"-fprint-evld-with-show\"]\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.231632402000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":5,"type":"event","event":"output","body":{"category":"stdout","output":"[DEBUG][APP] [\"stack\",\"ghci\",\"--test\",\"--no-load\",\"--no-build\",\"--main-is\",\"TARGET\",\"--ghci-options\",\"-fprint-evld-with-show\"]\n"}}
2021-09-16 01:46:23.240314916000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.243060979000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.245995484000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.248816492000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 6, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "[INFO][APP] \"--with-ghc\" option not found. adding \"--with-ghc=ghci-dap\"\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.264884607000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":6,"type":"event","event":"output","body":{"category":"stdout","output":"[INFO][APP] \"--with-ghc\" option not found. adding \"--with-ghc=ghci-dap\"\n"}}
2021-09-16 01:46:23.271301594000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.273833822000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.276320597000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.278771171000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 7, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "console", outputOutputEventBody = "CWD: /mnt/BACKUP/SpareTimeProjects/haskell/haskell-in-depth/haskell-in-depth-custom\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.290130431000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":7,"type":"event","event":"output","body":{"category":"console","output":"CWD: /mnt/BACKUP/SpareTimeProjects/haskell/haskell-in-depth/haskell-in-depth-custom\n"}}
2021-09-16 01:46:23.299724059000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.302473456000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.305007281000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.307494064000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 8, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "console", outputOutputEventBody = "CMD: stack ghci --with-ghc=ghci-dap --test --no-load --no-build --main-is TARGET --ghci-options -fprint-evld-with-show\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.322074607000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":8,"type":"event","event":"output","body":{"category":"console","output":"CMD: stack ghci --with-ghc=ghci-dap --test --no-load --no-build --main-is TARGET --ghci-options -fprint-evld-with-show\n"}}
2021-09-16 01:46:23.348538430000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.351990329000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.355952372000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.359961406000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 9, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "console", outputOutputEventBody = "\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.373128592000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":9,"type":"event","event":"output","body":{"category":"console","output":"\n"}}
2021-09-16 01:46:23.380014871000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.383806216000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.387833916000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.390711062000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 10, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stderr", outputOutputEventBody = "Now, waiting for an initial prompt(\"> \") from ghci.\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.399885399000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":10,"type":"event","event":"output","body":{"category":"stderr","output":"Now, waiting for an initial prompt(\"> \") from ghci.\n"}}
2021-09-16 01:46:23.405324782000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.407735859000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.410145258000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:23.412447584000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 11, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "console", outputOutputEventBody = "\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:23.449277266000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":11,"type":"event","event":"output","body":{"category":"console","output":"\n"}}
2021-09-16 01:46:23.453778457000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:23.456089081000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:23.458549106000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:24.090135077000 [1076348(ThreadId 19)] INFO WATCH - start watching /mnt/BACKUP/SpareTimeProjects/haskell/haskell-in-depth/haskell-in-depth-custom
2021-09-16 01:46:24.857585792000 [1076348(ThreadId 17)] ERROR APP - [CRITICAL] can not get the initial ghci prompt.
2021-09-16 01:46:24.857757846000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 12, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "The following GHC options are incompatible with GHCi and have not been passed to it: -Werror\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:24.868128082000 [1076348(ThreadId 17)] DEBUG APP - sink start waiting.
2021-09-16 01:46:24.883794642000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":12,"type":"event","event":"output","body":{"category":"stdout","output":"The following GHC options are incompatible with GHCi and have not been passed to it: -Werror\n"}}
2021-09-16 01:46:24.887141313000 [1076348(ThreadId 17)] DEBUG APP - src start waiting.
2021-09-16 01:46:24.899008401000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:24.906025239000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:24.909692156000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:24.912580438000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 13, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "Configuring GHCi with the following packages: hid-custom\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:24.923395156000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":13,"type":"event","event":"output","body":{"category":"stdout","output":"Configuring GHCi with the following packages: hid-custom\n"}}
2021-09-16 01:46:24.939857964000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:24.942530587000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:24.945238747000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:24.947883534000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 14, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "[DAP][INFO] start ghci-dap-0.0.16.0.\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:24.962965236000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":14,"type":"event","event":"output","body":{"category":"stdout","output":"[DAP][INFO] start ghci-dap-0.0.16.0.\n"}}
2021-09-16 01:46:24.971532976000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:24.975395527000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:24.979490947000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:24.991306763000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 15, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "GHCi, version 8.10.7: https://www.haskell.org/ghc/  :? for help\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:25.007327462000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":15,"type":"event","event":"output","body":{"category":"stdout","output":"GHCi, version 8.10.7: https://www.haskell.org/ghc/  :? for help\n"}}
2021-09-16 01:46:25.033577796000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:25.036991990000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:25.040432091000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:25.043725662000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 16, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "<command line>: cannot satisfy -package z-hid-custom-z-expr-simple\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:25.060236263000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":16,"type":"event","event":"output","body":{"category":"stdout","output":"<command line>: cannot satisfy -package z-hid-custom-z-expr-simple\n"}}
2021-09-16 01:46:25.068655432000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:25.071969926000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:25.075721692000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:25.079393663000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 17, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "    (use -v for more information)\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:25.107122269000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":17,"type":"event","event":"output","body":{"category":"stdout","output":"    (use -v for more information)\n"}}
2021-09-16 01:46:25.114467589000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:25.116743308000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:25.119297247000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:25.121596175000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 18, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:25.130506349000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":18,"type":"event","event":"output","body":{"category":"stdout","output":"\n"}}
2021-09-16 01:46:25.134883424000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:25.137175508000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:25.139611466000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:25.141878586000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 19, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:25.150065079000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":19,"type":"event","event":"output","body":{"category":"stdout","output":"\n"}}
2021-09-16 01:46:25.154541543000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:25.159415794000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:25.161781150000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:25.164028057000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 20, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "invalid HANDLE. eof.\n", dataOutputEventBody = Nothing}})
2021-09-16 01:46:25.178794433000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":20,"type":"event","event":"output","body":{"category":"stdout","output":"invalid HANDLE. eof.\n"}}
2021-09-16 01:46:25.184280710000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:25.206157302000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:25.208668584000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:25.211031313000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. OutputEvent (OutputEvent {seqOutputEvent = 21, typeOutputEvent = "event", eventOutputEvent = "output", bodyOutputEvent = OutputEventBody {categoryOutputEventBody = "stdout", outputOutputEventBody = "", dataOutputEventBody = Nothing}})
2021-09-16 01:46:25.226687793000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":21,"type":"event","event":"output","body":{"category":"stdout","output":""}}
2021-09-16 01:46:25.231134435000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:25.233513056000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:25.236662804000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.
2021-09-16 01:46:25.239033895000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs get data. LaunchResponse (LaunchResponse {seqLaunchResponse = 2, typeLaunchResponse = "response", request_seqLaunchResponse = 1, successLaunchResponse = False, commandLaunchResponse = "launch", messageLaunchResponse = "[CRITICAL] can not get the initial ghci prompt."})
2021-09-16 01:46:25.248488069000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink get data. {"seq":2,"type":"response","request_seq":1,"success":false,"command":"launch","message":"[CRITICAL] can not get the initial ghci prompt."}
2021-09-16 01:46:25.256907157000 [1076348(ThreadId 18)] DEBUG RESPONSE - sink start start.
2021-09-16 01:46:25.260592705000 [1076348(ThreadId 18)] DEBUG RESPONSE - res2lbs start waiting.
2021-09-16 01:46:25.264149688000 [1076348(ThreadId 18)] DEBUG RESPONSE - src start waiting.

I use nvim + nvim-dap Any ideas? Thx!