Skip to content
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

cache_loader: module silicon not found #45

Open
Yair-Ziv opened this issue Mar 6, 2024 · 4 comments
Open

cache_loader: module silicon not found #45

Yair-Ziv opened this issue Mar 6, 2024 · 4 comments

Comments

@Yair-Ziv
Copy link

Yair-Ziv commented Mar 6, 2024

Hey, was trying to get the silicon plugin to work with nvim to no success. Have installed silicon using cargo install, added it to lazy installation:
{ "krivahtoo/silicon.nvim", build = "make" },

Then tried to setup:
require('silicon').setup({ clipboard = true, watermark = { text = ' @Yair-Ziv', }, })

When opening nvim, Lazy installs it correctly (I think):
image

But when executing nvim:
Error detected while processing /home/yairziv/dotfiles/.config/nvim/init.lua: E5113: Error while calling lua chunk: /home/yairziv/dotfiles/.config/nvim/init.lua:580: module 'silicon' n ot found: no field package.preload['silicon'] cache_loader: module silicon not found cache_loader_lib: module silicon not found no file './silicon.lua' no file '/build/nvim/parts/nvim/build/.deps/usr/share/luajit-2.1/silicon.lua' no file '/usr/local/share/lua/5.1/silicon.lua' no file '/usr/local/share/lua/5.1/silicon/init.lua' no file '/build/nvim/parts/nvim/build/.deps/usr/share/lua/5.1/silicon.lua' no file '/build/nvim/parts/nvim/build/.deps/usr/share/lua/5.1/silicon/init.lua' no file './silicon.so' no file '/usr/local/lib/lua/5.1/silicon.so' no file '/build/nvim/parts/nvim/build/.deps/usr/lib/lua/5.1/silicon.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' /home/yairziv/dotfiles/.config/nvim/init.lua:580: in main chunk Press ENTER or type command to continue

Additional info:
Running ubuntu, i3wm
nvim version is 0.9.4
silicon version is 0.5.2

Also,
When in nvim trying to use Silicon with :'<, '>Silicon
I get E492: Not an editor command: '<, '>Silicon

Appreciate all help!

@krivahtoo
Copy link
Owner

Use {'krivahtoo/silicon.nvim', run = './install.sh build'} for installation if you have cargo installed.

Also silicon.nvim does not require silicon to be installed.

@Yair-Ziv
Copy link
Author

Still does not work, and running './install.sh build' runs successfully

@krivahtoo
Copy link
Owner

What is the output of running command := require('silicon')?

@rxtsel
Copy link

rxtsel commented May 8, 2024

  1. Install rustup.
  2. Run rustup default stable.
  3. Install libclang.
  4. Go to where your plugins are located. Then, enter silicon.nvim. Inside it, run ./install.sh build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants