VimMode in Matlab crashes it.
Closed this issue · 5 comments
Yemeen commented
This works for everything except Matlab for me. When I try to enter normal mode in Matlab I get the following error and then I'm unable to use VimMode anymore until I reload config.
stack traceback:
...yayub/.hammerspoon/Spoons/VimMode.spoon/lib/utils/ax.lua:20: in function <...yayub/.hammerspoon/Spoons/VimMode.spoon/lib/utils/ax.lua:13>
(...tail calls...)
...rspoon/Spoons/VimMode.spoon/lib/accessibility_buffer.lua:130: in function <...rspoon/Spoons/VimMode.spoon/lib/accessibility_buffer.lua:125>
(...tail calls...)
...hammerspoon/Spoons/VimMode.spoon/lib/state_indicator.lua:181: in method 'getBoxText'
...hammerspoon/Spoons/VimMode.spoon/lib/state_indicator.lua:108: in method 'render'
...hammerspoon/Spoons/VimMode.spoon/lib/state_indicator.lua:204: in method 'update'
/Users/yayub/.hammerspoon/Spoons/VimMode.spoon/lib/vim.lua:118: in function 'VimMode.updateStateIndicator'
...rs/yayub/.hammerspoon/Spoons/VimMode.spoon/lib/state.lua:72: in function <...rs/yayub/.hammerspoon/Spoons/VimMode.spoon/lib/state.lua:71>
(...tail calls...)
...merspoon/Spoons/VimMode.spoon/lib/utils/statemachine.lua:80: in upvalue 'transition'
...merspoon/Spoons/VimMode.spoon/lib/utils/statemachine.lua:74: in upvalue 'transition'
...merspoon/Spoons/VimMode.spoon/lib/utils/statemachine.lua:62: in method 'enterInsert'
/Users/yayub/.hammerspoon/Spoons/VimMode.spoon/lib/vim.lua:203: in function 'VimMode.exit'
.../.hammerspoon/Spoons/VimMode.spoon/lib/focus_watcher.lua:15: in function <.../.hammerspoon/Spoons/VimMode.spoon/lib/focus_watcher.lua:15>```
dbalatero commented
@Yemeen Interesting! I think I need to use less anonymous Lua functions for better stack traces ugh. Can you share with me how to best install your version of Matlab so I can track this down?
Yemeen commented
I'm using the 2020a version, but there is very little difference between that and 2020b which is the current version here. Unfortunately it's not free, but maybe the 30 day trial will suffice.
dbalatero commented
Yemeen commented
It works! Thank you so much.