Error thrown after running `hub pull-request`
Closed this issue · 5 comments
This doesn’t feel like an error within projectionist, but rather a plugin that depends on it. But I couldn’t track down where it might have come from. This error was thrown after running hub pull-request
using hub while doing a PR towards vim/vim.
Error detected while processing BufRead Autocommands for "*"..FileType Autocommands for "*"..function ProjectionistDetect[64]..projectionist#activate[90]..modelines:
line 8:
E518: Unknown option: master
Based on that this error came from opening a pull-request and editing .git/PULL_EDITMSG
, which has is handled by rhubarb.vim - but that plugin does not mention projectionist nor any of its functions.
The end of the stack trace is modelines
. The file being loaded has an invalid modeline.
Personally I switched to set modelines=0
and relying on sleuth.vim's lightweight modeline support, thus sidestepping every variant of this issue once and for all.
I didn’t see any modeline in any of the files, which is a bit confusing. I’ll circle back if I can reproduce it at some point.
I’ll follow suit and also disabling the option too, thanks!
I 100% guarantee it's there. The fact the repo name—vim
—is the start of a valid modeline, is telling.