Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't send message: Job is not running #113

Closed
dataO1 opened this issue Feb 4, 2020 · 2 comments
Closed

Can't send message: Job is not running #113

dataO1 opened this issue Feb 4, 2020 · 2 comments

Comments

@dataO1
Copy link

dataO1 commented Feb 4, 2020

Describe the bug
When running the debug mode in vimspector, all windows are empty and i get the error message:

Can't send message: Job is not running

To Reproduce
List of steps to reproduce

Vimspector config file:

{
  "adapters": {
    "hda": {
      "name": "haskell-debug-adapter",
      "command": [
        "haskell-debug-adapter",
        "--hackage-version=0.0.31.0"
      ]
    }
  },
  "configurations": {
    "haskell-debug-adapter: Launch": {
      "adapter": "hda",
      "configuration": {
        "type": "ghc",
        "request": "launch",
        "name": "haskell-debug-adapter",
        "internalConsoleOptions": "openOnSessionStart",
        "workspace": "${workspaceRoot}",
        "startup": "${workspaceRoot}/app/Main.hs",
        "startupFunc": "",
        "startupArgs": "",
        "stopOnEntry": false,
        "mainArgs": "",
        "ghciPrompt": "H>>= ",
        "ghciInitialPrompt": "Prelude>",
        "ghciCmd": "stack ghci --test --no-load --no-build --main-is TARGET --ghci-options -fprint-evld-with-show",
        "ghciEnv": {},
        "logFile": "${workspaceRoot}/hdx4vim.log",
        "logLevel": "WARNING",
        "forceInspect": false
      }
    }
  }
}

Expected behavior
Launch the debug view and load all the windows with corresponding information.

Actual behaviour
See above.

Please include:

  • Vimspector log (~/.vimspector.log)
 cat .vimspector.log
2020-02-04 22:40:54,322 - INFO - **** INITIALISING NEW VIMSPECTOR SESSION ****
2020-02-04 22:40:54,322 - INFO - API is: neo
2020-02-04 22:40:54,322 - INFO - VIMSPECTOR_HOME = /home/daniel/.config/nvim/plugged/vimspector
2020-02-04 22:40:54,324 - INFO - gadgetDir = /home/daniel/.config/nvim/plugged/vimspector/gadgets/linux
2020-02-04 22:40:54,327 - DEBUG - Toggle found bp at /home/daniel/Documents/projects/lolhub/backend/app/Main.hs:50 ? False (New)
2020-02-04 22:40:56,379 - INFO - User requested start debug session with {}
2020-02-04 22:40:56,380 - DEBUG - Reading gadget config: /home/daniel/.config/nvim/plugged/vimspector/gadgets/linux/.gadgets.json
2020-02-04 22:40:56,381 - DEBUG - Reading gadget config: None
2020-02-04 22:40:56,382 - INFO - Configuration: {"adapter": "hda", "configuration": {"type": "ghc", "request": "launch", "name": "haskell-debug-adapter", "internalConsoleOptions": "openOnSessionStart", "workspace": "/home/daniel/Documents/projects/lolhub/backend", "startup": "/home/daniel/Documents/projects/lolhub/backend/app/Main.hs", "startupFunc": "", "startupArgs": "", "stopOnEntry": false, "mainArgs": "", "ghciPrompt": "H>>= ", "ghciInitialPrompt": "Prelude>", "ghciCmd": "stack ghci --test --no-load --no-build --main-is TARGET --ghci-options -fprint-evld-with-show", "ghciEnv": {}, "logFile": "/home/daniel/Documents/projects/lolhub/backend/hdx4vim.log", "logLevel": "WARNING", "forceInspect": false}}
2020-02-04 22:40:56,382 - INFO - Adapter: {"name": "haskell-debug-adapter", "command": ["haskell-debug-adapter", "--hackage-version=0.0.31.0"]}
2020-02-04 22:40:56,669 - INFO - Starting debug adapter with: {"name": "haskell-debug-adapter", "command": ["haskell-debug-adapter", "--hackage-version=0.0.31.0"]}
2020-02-04 22:40:56,670 - INFO - Debug Adapter Started
2020-02-04 22:40:56,670 - DEBUG - Sending Message: {"command": "initialize", "arguments": {"adapterID": "haskell-debug-adapter", "clientID": "vimspector", "clientName": "vimspector", "linesStartAt1": true, "columnsStartAt1": true, "locale": "en_GB", "pathFormat": "path", "supportsVariableType": true, "supportsVariablePaging": false, "supportsRunInTerminalRequest": true}, "seq": 0, "type": "request"}
2020-02-04 22:40:56,671 - DEBUG - Calling: vimspector#internal#neojob#Send(g:vimspector_internal_arg_0)
2020-02-04 22:41:11,673 - DEBUG - Timeout: Aborting request {'command': 'initialize', 'arguments': {'adapterID': 'haskell-debug-adapter', 'clientID': 'vimspector', 'clientName': 'vimspector', 'linesStartAt1': True, 'columnsStartAt1': True, 'locale': 'en_GB', 'pathFormat': 'path', 'supportsVariableType': True, 'supportsVariablePaging': False, 'supportsRunInTerminalRequest': True}, 'seq': 0, 'type': 'request'}
2020-02-04 22:41:11,673 - INFO - User Msg: Request for initialize aborted: Timeout
  • Output from any or all UI diagnostic tabs (Server, etc.)
    1580852458_grim

Environemnt
Neovim 0.4.3

  • Output of vim --version or nvim --version
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.4.3/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
  • Output of which vim or which nvim:
/usr/bin/nvim
  • Output of :py3 pass:
nothing
  • Output of :py3 import vim:
nothing
  • For neovim: output of :checkhealth
All ok, but ruby not installed
  • Operating system: and version
    Arch Linux 5.5.1-arch1-1
@dataO1 dataO1 closed this as completed Feb 4, 2020
@puremourning
Copy link
Owner

Did you get it to work? I haven’t tried the Haskell debug adapter ...

@puremourning
Copy link
Owner

Don’t suppose there was anything in the ‘server’ log? :VimspectorShowOutput server or in hdx4vim.log maybe?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants