eraserhd / parinfer-rust

A Rust port of parinfer.
ISC License
546 stars 42 forks source link

Error detected while processing function <SNR>81_event[2]..<SNR>81_process_buffer #114

Closed nicolasassi closed 3 years ago

nicolasassi commented 3 years ago

I have the following error.:

Error detected while processing function <SNR>81_event[2]..<SNR>81_process_buffer:
line   50:
dlerror = "dlopen(/Users/nicolas.sassi/.config/nvim/autoload/plugged/parinfer-rust/target/release/libparinfer_rust.dylib, 1): image not found"
Error detected while processing function <SNR>81_event[2]..<SNR>81_process_buffer:
line   50:
E364: Library call failed for "run_parinfer()"
Error detected while processing function <SNR>81_event[2]..<SNR>81_process_buffer:
line   50:
E474: Attempt to decode a blank string
Error detected while processing function <SNR>81_event[2]..<SNR>81_process_buffer:
line   50:
E474: Failed to parse

I'm on MacOs and using neovim. I installed the lib using vim-plug. Plug 'eraserhd/parinfer-rust'

eraserhd commented 3 years ago

Does /Users/nicolas.sassi/.config/nvim/autoload/plugged/parinfer-rust/target/release/libparinfer_rust.dylib exist? You need to build the library if not (see the readme).

I’m not sure how if vim-plug is supposed to do this for you, but you might need to install rust and cargo for that to work anyway.

nicolasassi commented 3 years ago

Solved my problem installing rust and cargo and building the lib. Thanks!