Why does this snippet throw a cyclic dependency error?
Here's the snippet in question. It seems simple enough. It actually expands to a UUID, but then it throws the attached error.
snippet uuid "Random UUID" w!
`!p import uuid; snip.rv = str(uuid.uuid4())`
endsnippet
An error occured. This is either a bug in UltiSnips or a bug in a
snippet definition. If you think this is a bug, please report it to
https:/
Following is the full stack trace:
Traceback (most recent call last):
File "/Users/
return f(self, *args, **kwds)
File "/Users/
rv = self._try_expand()
File "/Users/
self.
File "/Users/
si = snippet.
File "/Users/
last_re = self._last_re, globals = self._globals)
File "/Users/
self.
File "/Users/
raise RuntimeError(
RuntimeError: Cyclic dependency in Snippet definition!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- SirVer
- Solved:
- Last query:
- Last reply: