Debugging autocommand help

13 views
Skip to first unread message

Pontus Leitzler

unread,
Sep 9, 2019, 9:49:46 AM9/9/19
to vim_dev
Hi,

I'm having issues with a autocommand not being triggered occasionally and would like some pointers to how I can debug this further.

It is in the context of a plugin for Go that is written in Go and uses channels to communicate with vim (https://github.com/govim/govim).

The plugin defines an autocommand for BufRead,BufNewfile, and the failure I see is during one of the unit tests that seems to fail every now and then.
In the tests a file is opened with ":e main.go", and the autocommand is consistently triggered.
Later on another file that isn't already open is opened using ":split other.go", and this is the command that occasionally fail to trigger the command.

I am able to reproduce it by just running the test over and over again, so anything that might aid in trying to understand what is going on would be helpful.

- Pontus
Reply all
Reply to author
Forward
0 new messages