-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Regression on task_name when spawning task with spaces in name from keybinding #24832
Comments
As documented in #24833, also dashes seem to be unallowed. The auto-update should tell what changes it made, and such task name restrictions documented. |
I also can't use any uppercase letters in the task name, and as a result variables don't work either (e.g. |
@osiewicz Do you know of any changes recently that could have caused a regression with task names containing spaces? |
Not that I'm aware of. I spun up a quick debug session and it seems that the action disposition itself has a task name with spaces replaced? I'm not sure what's up with that.
Deserializes as:
which is obviously wrong and seems to be the culprit of a problem. |
I think I know why this is happening. Seems related to in-memory migrator turning binding values to snake case. Picking this up. |
Yep, the settings load just fine for me when I disable the keymap migration. |
@danieljimenez-mycase @497e0bdf29873 Thanks for the report; we'll need to publish a patch release for this. We'll let you know when it is out. |
Closes #24832 Only turns specified deperecated keys and values to snake case. Release Notes: - Fixed issue where keybindings would open task selector instead of spawn that task.
Closes #24832 Only turns specified deperecated keys and values to snake case. Release Notes: - Fixed issue where keybindings would open task selector instead of spawn that task.
Cherry-picked migrator: Fix keymap task_name regression (#24898) Closes #24832 Only turns specified deperecated keys and values to snake case. Release Notes: - Fixed issue where keybindings would open task selector instead of spawn that task. Co-authored-by: smit <[email protected]>
Cherry-picked migrator: Fix keymap task_name regression (#24898) Closes #24832 Only turns specified deperecated keys and values to snake case. Release Notes: - Fixed issue where keybindings would open task selector instead of spawn that task. Co-authored-by: smit <[email protected]>
After a recent update (I guess this one), when I opened my keymap.json file, zed automatically notified me that the file needed to be updated to a new format. I accepted without further thought. It turns out that the |
Summary
Setting task_name with spaces does not work with keybindings
1.add task to task.json
add keybinding
Actual Behavior:
opens task selector
Expected Behavior:
opens task with that name
I fixed this by using "_" instead of spaces. I got this idea because the auto config update changed it to be that.
Do we need to update the docs instead?
Zed Version and System Specs
Zed: v0.173.8 (Zed)
OS: macOS 14.7.4
Memory: 16 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: