Skip to content

Debugging Plugins and nvim-hs #23

@saep

Description

@saep

This issue should gather ideas on how to improve debugging. (Solutions are welcome, too!)

Currently we have:

  • Saving a file in $XDG_CONFIG_HOME/nvim will trigger a rebuild and put compile time errors in the quickflix list
  • If logging is enabled, the raw msgpack-rpc messages we receive are logged.

Those things are incredibly useful, but I think we can do better!

  1. When I was implementing the registration of functions or filling the quickfixlist with compile errors from dyre, looking at the logged msgpack-rpc messages was insanely useful. I think this should be made more accessible and integrated. I imagine opening a window inside neovim that (pretty) prints all the msgpack-rpc communication after issueing a command (e.g. :DebugNvimhs).
  2. Implementing new functions that interact with neovim, and hence require the Neovim transformer stack, should be possible from a REPL. I don't know if it's possible to run a ghci-like session inside such a transformer. Or something int he direction of https://github.com/chrisdone/ghci-reload-demo could be conveniently achieved.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions