Skip to content
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

Error on custom keybinding #2307

Closed
Sander-Zeeman opened this issue Dec 19, 2021 · 0 comments · Fixed by #3261
Closed

Error on custom keybinding #2307

Sander-Zeeman opened this issue Dec 19, 2021 · 0 comments · Fixed by #3261
Labels
Milestone

Comments

@Sander-Zeeman
Copy link

Description of the problem or steps to reproduce

Hello!

I was messing around with custom keybindings inside Micro and ran into a runtime error.
In the end, the action I tried to bind was completely unnecessary, but I thought I'd do my part and report it anyway!

When I bound the following action inside micro/bindings.json:
"Ctrl-b": "command:term clear,command:term"
The following error + stack trace appears

Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:199 (0x55b9a0075b40)
runtime/panic.go:198 (0x55b9a007597d)
github.com/zyedidia/micro/internal/action/command.go:808 (0x55b9a05bc789)
github.com/zyedidia/micro/internal/action/command.go:891 (0x55b9a05bcef7)
github.com/zyedidia/micro/internal/action/command.go:94 (0x55b9a05c4bf0)
github.com/zyedidia/micro/internal/action/bufpane.go:394 (0x55b9a05b4c38)
github.com/zyedidia/micro/internal/action/bufpane.go:122 (0x55b9a05c4844)
github.com/zyedidia/micro/internal/action/bufpane.go:381 (0x55b9a05b4910)
github.com/zyedidia/micro/internal/action/bufpane.go:308 (0x55b9a05b4864)
github.com/zyedidia/micro/internal/action/tab.go:246 (0x55b9a05c1fbe)
github.com/zyedidia/micro/internal/action/tab.go:136 (0x55b9a05c17be)
github.com/zyedidia/micro/cmd/micro/micro.go:343 (0x55b9a05e5132)
github.com/zyedidia/micro/cmd/micro/micro.go:297 (0x55b9a05e4ca8)
runtime/proc.go:203 (0x55b9a0062246)
runtime/asm_amd64.s:1357 (0x55b9a008e551)

If you can reproduce this error, please report it at https://github.com/zyedidia/micro/issues

Press enter to continue

Specifications

Commit hash: 6998cb5
OS: Ubuntu-20.04 on WSLg, Windows 11
Terminal: I was unable to find which terminal WSL uses by default, but that's the one. My apologies for not being more specific, but I'm not yet very familiar with WSL.

I've really been enjoying using Micro, thank you very much for developing it!

-Sander

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants