Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
caedmon-kitty opened this issue Oct 4, 2023 · 1 comment
Open

Comments

@caedmon-kitty
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant