Open srathbun opened 10 years ago
Hi @srathbun,
I've just released Splice9; it's pure vim9script
, no python
; it's compatible with the original Splice with additional features, particularly UI. I've addressed some issues against the original Splice (see below) and I'm wondering about this issue.
What are the expectations when there are missing input files? Proper error message then exit? Difftool mode?
Feature: #30, #15, https://github.com/errael/splice9/issues/16
Hi @errael, it's been years since I thought about this! I can't remember exactly what I was doing at the time, but I believe I was mostly just surprised that putting in the wrong options caused it to explode. Then I was surprised when I tried to get it to use the same file as an input and output.
I would want a proper error message when I give invalid inputs so that I'm getting feedback I can work with.
Thanks @srathbun. Just added Check file args: 4, unique, must exist with writable result
with popup as needed and released v1.0.0. Appropriate, since first thing, when I started porting splice to vim9script
in early 2022 was verifying every config value.
Attempting to open splice with less than four input files results in the following traceback:
This also happens if you have four input files, but some of them are the same file.
Placing a print statement in the
init
method for buffer shows that the first buffer created is 4, and if there are less than 4 vim buffers, none are matched and the _buffer property is never defined.