Closed dharrigan closed 3 years ago
if you're not going to use the emacs portion of the binary, I've had luck removing it and compiling it on my M1.
basically, cargo rm emacs
(you might need cargo-edit) and then edit src/lib.rs and remove the emacs portions.
Hi,
Thank you for that, it certainly helps! However, it does leave the repo unmanaged by vim plug, as there are local modifications. I hope that a long term solution can be done put into place eventually :-)
Thank you once again! :-)
The emacs crate has been a huge pain in terms of dependencies. I wonder if it's possible to replace it with something like in Vim, where a native C function is called.
Hi,
Okay, determined not to give up, I got it working via these means...
cargo update
https://github.com/nwjsmith/emacs-module-rs.git
support-aarch64-apple-darwin
cargo build --release
#emacs = "0.16.0"
emacs = { path = "/Users/david/tmp/emacs-module-rs" }
x86_64-apple-darwin
architecture rustup target add x86_64-apple-darwin
cargo build --release --target=x86_64-apple-darwin
~/.vim/bundle/parinfer-rust/target on master !2 ▼
❯ mv release/ release-bak
~/.vim/bundle/parinfer-rust/target on master !2 ▼
❯ ln -s x86_64-apple-darwin/release
~/.vim/bundle/parinfer-rust/target on master !2 ▼
❯ dir
total 4.0K
-rw-r--r-- 1 david staff 177 Feb 20 10:17 CACHEDIR.TAG
lrwxr-xr-x 1 david staff 27 Feb 20 10:18 release -> x86_64-apple-darwin/release
drwxr-xr-x 8 david staff 256 Feb 20 10:17 release-bak
drwxr-xr-x 4 david staff 128 Feb 20 10:17 x86_64-apple-darwin
Loaded up vim with a Clojure file and parinfer worked!
Joy!
I hope this helps anyone else. I'm not a rustarian(?) so perhaps the steps above can be refined. I leave it to rust experts to work it out.
I think when this https://github.com/ubolonton/emacs-module-rs/pull/38
is merged into the rust emacs module can be upgraded.
-=david=-
@dharrigan this worked for me, thanks for posting this here! I believe they are referred to as rustaceans :)
Hi,
I just tested this out with the new updates and appears to work once again. Well done! I think this issue can be resolved now :-D
-=david=-
Hi,
When attempting to build, I'm receiving this error: