xonsh / xontrib-abbrevs

Command abbreviations. This expands input words as you type.
MIT License
19 stars 1 forks source link

*ERROR*: Assertion failed: (eq (match-end 0) (length string)) #6

Open caedmon-kitty opened 1 year ago

caedmon-kitty commented 1 year ago

I've found that ... With this abbrev - abbrevs['ec'] = 'emacsclient -c -n'

I enter ec filespec at the prompt and expect an emacs frame to pop up. But if the filespec begins with a hidden directory folowed by the filename (ec .Xincludes/xterm for example) this error message is printed -

ERROR: Assertion failed: (eq (match-end 0) (length string))

This appears to only occur if the directory portion of the filespec begins with a dot and the filename immediately follows the directory name. If the directory name is followed by another directory then all is ok.

In other words this results in the error -

ec .thunderbird/profile.ini

while this works as expected

ec .config/autostart/alacritty.desktop

since the in the latter example the .config directory is followed by the autostart directory then the filename.

xonsh is version 14.1 installed via pip Python 3.10.12 ubuntu 22.04 LTS

caedmon-kitty commented 1 year ago

Forgot to mention - if I do not use the abbrev there is no error - this works without an error message

emacsclient -c -n .Xincludes/xterm