"sizeof()" snippet does not expand correctly in Helix 25.01 #12603
Replies: 3 comments 1 reply
-
I couldn't reproduce this locally. What does the log say when running in verbose mode? |
Beta Was this translation helpful? Give feedback.
-
Here is the log you asked for. |
Beta Was this translation helpful? Give feedback.
-
I reproduced this with clangd version 14 and I think it's a Helix bug with how we interpret snippet tabstops. I'm looking into a fix but a workaround could be to update clangd if that's an option for you. clangd version 19 (which you can get through nixpkgs' Edit: the fix is here #12640 |
Beta Was this translation helpful? Give feedback.
-
Summary
I have never done this before, so sorry if I did wrong or wrong place. No offense intend.
In Helix 25.01, when selecting the sizeof(expression-or-type) snippet, the placeholder text expression-or-type does not get replaced when typing a value. This results in incorrect code like sizeof(numberexpression-or-type) instead of sizeof(number).
Steps to Reproduce:
Expected Behavior:
Environment:
Reproduction Steps
I tried this:
hx
I expected this to happen:
Instead, this happened:
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
wezterm
Installation Method
nixpks
Helix Version
helix 25.01
Beta Was this translation helpful? Give feedback.
All reactions