-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spacemacs/helm-yas(SPC i s) breaks the # condition:
system of YASnippet #14105
#21
Comments
@nfedyashev Thanks for reporting issue. I wrote a patch, could you check #22 code ? I don't understand yasnippet condition parameter. |
@syohex thanks for taking the time to write that pull request! that's how I tried to check if it solved the issue:
I didn't notice any difference in I originally reported this issue in spacemacs project - syl20bnr/spacemacs#14105 (comment) and a suggestion was to report it as helm-c-yasnippet issue instead. |
I did None of these commands work for me:
The only one that works is |
@nfedyashev Sorry I don't understand spacemacs well. I have merged #22. Could you reinstall latest version of master branch and re-compile and check ? |
Description
Something must be wrong with
helm-yas
because it ignores(or caches?) the results for autocompletion.# condition:
is unusable withhelm-yas
Reproduction guide 🪲
Create the following snippet:
1.
.rb
file or just switch to ruby-mode/enh-ruby-mode.SPC i s
(spacemacs/helm-yas)Observed behaviour: 👀 💔
"ruby big number digit readable human` is listed in autocompletion mode(condition is ignored)
Expected behaviour: ❤️ 😄
"ruby big number digit readable human" snippet name must be available in auto-completion only on the first line(when a condition is true)
This issue is only reproducible in
helm-yas
. When I runyas-insert-snippet
command instead it works fine!# condition:
is properly checked and only the matching snippets are displayed.System info
yasnippet pkg info 20200604.246
helm-c-yasnippet pkg info 20200520.1519
Spacemacs branch - develop
The text was updated successfully, but these errors were encountered: