Git Product home page Git Product logo

Comments (8)

f3fora avatar f3fora commented on May 18, 2024 2

Thanks! If I find a way to reproduce it I will continue this issue!
Great plugin however

from luasnip.

L3MON4D3 avatar L3MON4D3 commented on May 18, 2024

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.

f3fora avatar f3fora commented on May 18, 2024

nvim-compe master
I know it happens with texlab. I don't use other lsp so often in this period.

from luasnip.

L3MON4D3 avatar L3MON4D3 commented on May 18, 2024

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.

f3fora avatar f3fora commented on May 18, 2024

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.

L3MON4D3 avatar L3MON4D3 commented on May 18, 2024

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.

f3fora avatar f3fora commented on May 18, 2024

Different version of nvim NVIM v0.5.0-dev+1231-g48e805728. But with only compe, luasnip and lspconfig, texlab snippets work correctly.

from luasnip.

L3MON4D3 avatar L3MON4D3 commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.