Comments (8)
Thanks! If I find a way to reproduce it I will continue this issue!
Great plugin however
from luasnip.
Sounds like something is messing with extmarks and moving them beyond the end of the line (hence 'end_row out of bounds'). I think that can happen if the line is changed with nvim_set_text(), my best guess would be that something (lsp? compe?) is setting the text in the line at some point, which would explain the random nature of the issue.
Does this happen on all LSPs? Which version of compe are you on?
from luasnip.
nvim-compe
master
I know it happens with texlab. I don't use other lsp so often in this period.
from luasnip.
Okay, I didn't experience your error with texlab (so far), but I did notice that, after updating compe (which
I didn't do for some time), ccls
-Snippet's extmarks get moved around after expansion, while Snippets from other LSPs (rust-analyzer
) still work fine.
Could you check if you have the same issue with compe@4b3ade1
, which is the last version I used.
On a side note, does the \begin
-Snippet work for you? I just tried it and when entering text into $1 and leaving it, it completely removes the\end
-part.
from luasnip.
Could you check if you have the same issue with compe@
4b3ade1
, which is the last version I used.
I tested using master and this commit. I got the same results.
ccls
-Snippet's extmarks get moved around after expansion, while Snippets from other LSPs (rust-analyzer
) still work fine.
For me they work fine. Actually I used ccls
for a few tests, I personally use clangd
.
On a side note, does the
\begin
-Snippet work for you? I just tried it and when entering text into $1 and leaving it, it completely removes the\end
-part.
Yes, it works. Actually I discover the issue #20 using this Snippet.
from luasnip.
Wow, weird... different nvim maybe? I'm on NVIM v0.5.0-dev+1323-gd67dcaba0
.
Apart from that, have you tried disabling all plugins except compe and luasnip?
from luasnip.
Different version of nvim NVIM v0.5.0-dev+1231-g48e805728
. But with only compe, luasnip and lspconfig, texlab snippets work correctly.
from luasnip.
Okay, that's good to know. Do you have any linters or similar tools installed that could set text for the entire buffer?
To further debug, you could :lua Luasnip_current_nodes[vim.api.nvim_get_current_buf()].parent:dump()
after the misbehaviour to see node boundaries (eg. where extmarks get moved to).
from luasnip.
Related Issues (20)
- trigEngine ecma - Error while compiling regex with negative lookbehind HOT 3
- Inconsistent indentation in multiline strings inserted by functionNode HOT 2
- Postfix Snippet with nil capture doesn't expand HOT 2
- Autosnippets not working HOT 1
- Expand Snipmate snippet after "partial word" HOT 2
- How to trigger different snippet in different part ? HOT 2
- Add ability to load snipmate snippets that target all languages HOT 2
- Create option to turn off popups HOT 1
- Error during startup HOT 1
- Nonempty node and SELECT mode in insert node text HOT 4
- checkhealth jsregexp not found even if installed HOT 7
- Issue with custom `vim.opt.keymap` and first typed characters in snippet. HOT 1
- Previous character is always included in the selection when jumping to nodes HOT 2
- VS Code loader doesn't work when specifying paths HOT 7
- Snippets do not exit at exit node or i(0) HOT 1
- Error when invoking "cleanup()" function HOT 5
- [Question] would this be possible with Luasnip? HOT 2
- Windows: friendly snippets not loaded HOT 6
- Snippets work only in lua files, but not the others HOT 1
- Ability to disabled `realpath` to handle symlinked snippets HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luasnip.