"sizeof()" snippet does not expand correctly in Helix 25.01 #12603
-
SummaryI 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 StepsI tried this:
I expected this to happen: Instead, this happened: Helix log~/.cache/helix/helix.log
PlatformLinux Terminal Emulatorwezterm Installation Methodnixpks Helix Versionhelix 25.01 |
Beta Was this translation helpful? Give feedback.
Replies: 4 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.
-
Yea I undated clangd and everything worked fine after that. Thank You for your time. |
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'
clang-tools
package) sends a slightly different snippet which works as expected.Edit: the fix is here #12640