Closed LamprosPitsillos closed 1 year ago
I got the same error when I was trying insert some text inside string that is a property or a value of a JavaScript object literal. In my case, it shows 'E20: Mark not set' or 'E16: Invalid range'. If this is a bug, hope it fixed soon.
Yeah, me too trying to write LaTeX with the Lua config I've been working on. I notice that it mostly gives errors when I try to start lines with \
which happens all the time in LaTeX. Hope its an easy fix.
Trying to reproduce the error but with the provided minimal config I don't run into the error. In your video definitely a different, full user config is being used.
To make a guess, this bug is happening because the completion item is executed literally as a vim command. Try :\usepackage
in vim cmdline and you'll get an E10 error. Not sure which line of the nvim-cmp is calling vim.cmd wrongly. Can anybody provide a fully reproducible config?
Trying to reproduce the error but with the provided minimal config I don't run into the error. In your video definitely a different, full user config is being used.
To make a guess, this bug is happening because the completion item is executed literally as a vim command. Try
:\usepackage
in vim cmdline and you'll get an E10 error. Not sure which line of the nvim-cmp is calling vim.cmd wrongly. Can anybody provide a fully reproducible config?
Strange, I really did use the minimal config for the second clip, maybe it has to do with any caching from my normal neovim ? How can i rerun the tests cleanly,so that i can be sure the min config produces the issue?
I can reproduce this error by enabling the cmp-cmdline
source.
Please remove cmp-cmdline
from global sources and add cmp-cmdline
for the cmdline setup function.
Please remove cmp-cmdline from global sources and add cmp-cmdline for the cmdline setup function.
This solved it for me ,thanks again for your hard work!
Please remove
cmp-cmdline
from global sources and addcmp-cmdline
for the cmdline setup function.
What does this mean exactly? I've removed cmp-cmdline
from my plugins yet I am still having this issue on NVIM v0.10.1
.
Specifically, opening a .tex
file an typing \
causes this:
Error detected while processing TextChangedI Autocommands for "*"..function UltiSnips#TrackChange[1]..provider#python3#Call:
line 1:
E5108: Error executing lua Vim:<global-snippets>:60: SyntaxWarning: invalid escape sequence '\h'
stack traceback:
[C]: at 0x5baf91587200
Any help would be greatly appreciated. Thanks!
Hm... It seems UltiSnips error instead of nvim-cmp.
Yeah not really sure if this is an Ultisnips or nvim-cmp issue but it seems very similar to this.
The error is not reproduced when nvim-cmp is disabled?
The error is not reproduced when nvim-cmp is disabled?
No, it is not. I will go bark up someone else's tree.
FAQ
Announcement
Minimal reproducible full config
Description
I get
TextChangedI Autocommands for "*"
error while typingSteps to reproduce
Use above config and follow the video snippets provided below.
Expected behavior
No error to happen at all
Actual behavior
On a MD file
In this case i get this error
https://user-images.githubusercontent.com/61395246/202475604-2b7b32a8-059f-4cff-8c7f-431298a06011.mp4
On a CPP file
In this case i get this
https://user-images.githubusercontent.com/61395246/202475630-ede0ffe4-f896-4f11-b241-f8164e1d6bae.mp4
Additional context
OS: Artix Linux x86_64