Giter Site home page Giter Site logo

Comments (14)

PetitBandit avatar PetitBandit commented on July 17, 2024 1

The error was fixed, thank you so much for this quickfix, much appreciated !

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

Hey, sorry about that. Can you share your snippet definitions for .cpp files?

from cmp-nvim-ultisnips.

PetitBandit avatar PetitBandit commented on July 17, 2024

CleanShot 2021-11-25 at 17 17 26@2x

I have a similar issue since i upgraded plugins this morning. weirdly, some snippet still work, but most of them arent.
I dont have enough knowledge to figure out if it s the same issue or not.

from cmp-nvim-ultisnips.

hiberabyss avatar hiberabyss commented on July 17, 2024

Seems there will be the problem when honza/vim-snippets.git installed

from cmp-nvim-ultisnips.

hiberabyss avatar hiberabyss commented on July 17, 2024

Have another test with any custom snippets for cpp, there will be the error even honza/vim-snippets.git not installed.

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

@hiberabyss thanks for the info, I will try to reproduce it and push a fix later

@PetitBandit it probably is the same issue, I recently wrote a parser for snippet headers (with insufficient tests as it seems)

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

@PetitBandit Unfortunately, I am not able to reproduce the issue using the typescriptreact snippets from your dotfiles repo (please ignore the duplicates).

cmpu_issue23

I assume this was the file you were using for your snippets? Or are you using any
additional snippet files? To find out why this is happening, I really need to know the exact
snippet that causes problems during parsing.

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

@hiberabyss I could not reproduce this with a custom snippet definition in a cpp.snippets file. Could you share an example snippet that caused the issues for you?

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

I was finally able to reproduce using the c.snippets file from honza/vim-snippets :)

from cmp-nvim-ultisnips.

quangnguyen30192 avatar quangnguyen30192 commented on July 17, 2024

@hiberabyss the issue was fixed could you please update the plugin and try again?

from cmp-nvim-ultisnips.

hiberabyss avatar hiberabyss commented on July 17, 2024

This error was fixed. Thanks!

However, seems some snippets like once in honza/vim-snippets could not be completed.

from cmp-nvim-ultisnips.

quangnguyen30192 avatar quangnguyen30192 commented on July 17, 2024

Thanks, we'll test thoroughly for the others and improve the implementation.

from cmp-nvim-ultisnips.

PetitBandit avatar PetitBandit commented on July 17, 2024

Hey, I updated again the plugin, but the error is no longer appearing BUT i still cant expand some snippets.
i can reproduce the issue with the snippet:

snippet bgct "tomato for the win"
backgroundColor: 'tomato', //TODO: petit bandit <-- remove this
endsnippet

this one works though:

snippet selho "selector hover" b
'&:hover': {
	$1
},
endsnippet

from cmp-nvim-ultisnips.

smjonas avatar smjonas commented on July 17, 2024

@PetitBandit should be fixed in the latest PR (#26). Sorry for all the breaking changes that should not have been breaking ^^

from cmp-nvim-ultisnips.

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.