-
Notifications
You must be signed in to change notification settings - Fork 30
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
cannot load vim mode after install on m1 #74
Comments
Makes sense, the new M1 architecture can't load the I have a vendored version of https://github.com/starwing/luautf8 in this repo. The reason I vendored it is that it's not clear how to pull in libraries from I'm going to check with the Hammerspoon mailing list on the best way to proceed, then go from there. |
I had the same error, but was able to run Hammerspoon under Rosetta as a workaround. |
I need someone with an M1 machine to compile https://github.com/starwing/luautf8 against M1 with Lua 5.4 libraries, so I can vendor an additional .so for M1 arch. I can't buy an M1 machine to do this, so this work is blocked until I eventually upgrade my Mac. I'd honestly rather have an easy way for my spoon to depend on a My goal for this repo is that people can just clone it and be ready to go, and I'm really loathe to add extra install steps like:
Does this make sense? Given that can one of you volunteer to try to get me a build of the M1 As well I need the output of My intel machine for example:
|
If you're rich and lazy though you're also welcome to buy me an M1 mac and ship it to me, and I'll 100% do the fix :) |
Also a final option, I do attempt to load it the Luarocks version if you can figure out how to get that in your Hammerspoon include path: VimMode.spoon/vendor/luautf8.lua Lines 3 to 4 in 48f01ee
Hammerspoon might support Luarocks out of the box actually according to Hammerspoon/hammerspoon#363 (comment)
I'm curious if this fixes things for you? |
I don't know much about Hammerspoon or Lua, but I'd be happy to try to compile the library if you can give me some instructions on how to do so. Looks like that thread on adding luarocks spans 6 years. I don't think we should hold our breath for that. no luck via brew:
But here is the output of
|
@timothycosta Can you try |
You know what, there also might be a built-in utf8 package in Lua 5.4. Let me check on this–if Hammerspoon ships with 5.4 nowadays, we might just be able to use that and drop this one entirely for anyone on the most recent version of HS. |
I just checked and my version of Hammerspoon is running 5.4. I get the following for
|
Ok yeah, 0.9.79 is the first HS release on Lua 5.4: http://www.hammerspoon.org/releasenotes/0.9.79.html I think the best plan of action is:
It strikes me that I really have no versioning on this project, and I probably should. A separate effort to cut versions of this spoon could then drop that backwards compatibility entirely for future releases. |
Ugh actually the |
Yeah, that one was successful. 👍 |
I have an experimental branch on #82 with M1 support. It seems to be working on an M1 laptop that I borrowed to compile libutf8 for arm64. I'll test it on x86 and make sure nothing is broken before merging. |
Closed with #82! |
Hi I am a vim fans, thanks for your awesome spoon , referred to the quick installer script and installed VimMode successfully, but failed to load the configuration file.
My system info
lua and luajit info
Here is the hammerspoon's console log
The text was updated successfully, but these errors were encountered: