-
-
Notifications
You must be signed in to change notification settings - Fork 692
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 detected while processing TextChangedI Autocommands #1546
Comments
It sounds like you have a snippet with an invalid regular expression. Could that be? Please provide a fully reproducible example, ideally using the approach explained in https://github.com/SirVer/ultisnips/blob/master/CONTRIBUTING.md#reproducing-bugs or if not possible with a minimal |
@SirVer Hello, glad to see you're still on here maintaining. It's random, so that's going to be tricky |
@SirVer Was something changed recently in the code that is breaking plugins? Other plugins From plugin cmp_nvim_ultisnips:
MINE def expand_snip(snip):
start,end = [snip.snippet_start,snip.snippet_end]
print('start is ' , start, end, snip._start, snip._end)
# methods_and_p = [method for method in dir(snip) if method.startswith('__') is False]
# print("Methods and properties are.\n",methods_and_p)
vim.eval('feedkeys("\<C-R>=UltiSnips#ExpandSnippet()\<CR>")') |
@rickalex21 This is almost certainly a bug in NVims Python emulation layer. You want to report it there, for me this is out of scope. This issue was closed due to it only affecting Neovim and not core Vim. Why is Neovim only best-effort?UltiSnips maintenance is a lot of work. Reproducing bug reports is tedious, slow and error prone. The current maintainers have to limit their scope to provide a reasonable level of service to the community. Neovim should work with any plugin that core vim works with. But in the past, Neovim support has been difficult for UltiSnips: It regularly had bugs that did not affect the core Vim distributions, i.e. Vim, gVim, MacVim, and Vim for Windows and its testing approach required a completely separate code path from core as well. Therefore, currently Neovim bugs are considered on a best effort basis. UltiSnips is looking for an additional maintainer that is interested in bringing the Neovim level of service on par with core Vim. If you are interested in helping out, please reach out to SirVer. |
@SirVer I think I found the problem in my all.snippets, I wasn't having this problem before was there a change in the code somewhere? Here is my global snippet, the problem is < in the FIXME: def expand_snip(snip):
start,end = [snip.snippet_start,snip.snippet_end]
print('start is ' , start, end, snip._start, snip._end)
# methods_and_p = [method for method in dir(snip) if method.startswith('__') is False]
# print("Methods and properties are.\n",methods_and_p)
#FIXME
vim.eval('feedkeys("\<C-R>=UltiSnips#ExpandSnippet()\<CR>")') Here is the other problem with the \e
Here is the function delCh: def delCh(move):
#For when you need to delete a tabstop after completion.
#Much better than calling del snip.buffer[linenr].
vim.command(f'call feedkeys("{move}")') |
|
|
Expected behavior:
No errors
Actual behavior:
Error detected while processing TextChangedI Autocommands for "*"..function UltiSnips#TrackChange[1]..provide
r#python3#Call[18]..UltiSnips#TrackChange:
line 1:
:1: SyntaxWarning: invalid escape sequence '\e'
Press ENTER or type command to continue
The text was updated successfully, but these errors were encountered: