vim-graphical-preview icon indicating copy to clipboard operation
vim-graphical-preview copied to clipboard

graphics.vim has trouble loading libvim_graphical_preview.so

Open gavales opened this issue 2 years ago • 2 comments

Hi bytesnake, loved your talk at NeovimConf 2022, great work with this plugin. Are there any other build requirements?

I get the below error when I set filetype=markdown.graphics. I don't think that this is a build issue, since I can find libvim_graphical_preview.so in the correct directory, and libcallex was built. I am using packer as my plugin manager, though that shouldn't affect things.

Error detected while processing FileType Autocommands for "*"..function
 <SNR>1_LoadFTPlugin[17]..script /home/gavarch/.local/share/nvim/site
/pack/packer/start/vim-graphical-preview/ftplugin/graphics.vim[8]..functi
on libcallex#load[5]..FileType Autocommands for "*"..function <SNR>1_
LoadFTPlugin[17]..script /home/gavarch/.local/share/nvim/site/pack/pack
er/start/vim-graphical-preview/ftplugin/graphics.vim[8]..function libcallex#load:
line    5:
E605: Exception not caught: can't load library: "/home/gavarch/.local/share
/nvim/site/pack/packer/start/vim-graphical-preview/target/release
/libvim_graphical_preview.so"

gavales avatar Jan 05 '23 04:01 gavales

Did you find the reason for libcallex not finding your shared library?

bytesnake avatar Jun 08 '23 16:06 bytesnake

I have the same issue , I made sure every thing was done from your instructions but this same error keep showing, while the file it points to is there !

the error :

Error detected while processing FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[20]..script /home/****/.local/share/nvim/lazy
/vim-graphical-preview/ftplugin/graphics.vim[8]..function libcallex#load[5]..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[
20]..script /home/****/.local/share/nvim/lazy/vim-graphical-preview/ftplugin/graphics.vim[8]..function libcallex#load:
line    5:
E605: Exception not caught: can't load library: "/home/****/.local/share/nvim/lazy/vim-graphical-preview/target/release/libvim_graphical_
preview.so"

this is when I run : set filetype=markdown.graphics

the dir it points to is :

~/.local/share/nvim/lazy/vim-graphical-preview/target/release main                                                    1.80.1 07:13:05 PM
❯ ls -la
total 1668
drwxr-xr-x   7 **** ****   4096 Aug 14 17:28 ./
drwxr-xr-x   3 **** ****    4096 Aug 14 17:28 ../
drwxr-xr-x  35 **** ****    4096 Aug 14 17:28 build/
-rw-r--r--   1 **** ****       0 Aug 14 17:28 .cargo-lock
drwxr-xr-x   2 **** ****   20480 Aug 14 17:28 deps/
drwxr-xr-x   2 **** ****    4096 Aug 14 17:28 examples/
drwxr-xr-x 104 **** ****    4096 Aug 14 17:28 .fingerprint/
drwxr-xr-x   2 **** ****    4096 Aug 14 17:28 incremental/
-rw-r--r--   1 **** ****     519 Aug 14 17:28 libvim_graphical_preview.d
-rwxr-xr-x   2 **** **** 1656480 Aug 14 17:28 libvim_graphical_preview.so*

munahall avatar Aug 14 '24 16:08 munahall