Skip to content

Error executing lua [string ":lua"]:200: module 'silicon' not found: #44

@atlas-comstock

Description

@atlas-comstock

Updated:
Running ./install.sh build during the installation process can help resolve the issue.


After installation, can not find the module of silicon
I use the example config

require('silicon').setup {
  font = 'FantasqueSansMono Nerd Font=26',
  background = '#87f',
  theme = 'Monokai Extended',
  line_number = true,
  pad_vert = 80,
  pad_horiz = 50,
  output = {
    path = "/home/krivah/Pictures/Screenshots"
  },
  watermark = {
    text = ' @krivahtoo',
  },
  window_title = function()
    return vim.fn.fnamemodify(vim.fn.bufname(vim.fn.bufnr()), ':~:.')
  end,
}

here is the error message

Error detected while processing rawconfig/nvim/init.vim:

line  224:
E5108: Error executing lua [string ":lua"]:200: module 'silicon' not found:
        no field package.preload['silicon']
        no file './silicon.lua'
        no file '/opt/homebrew/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 '/opt/homebrew/share/lua/5.1/silicon.lua'
        no file '/opt/homebrew/share/lua/5.1/silicon/init.lua'
        no file './silicon.so'
        no file '/usr/local/lib/lua/5.1/silicon.so'
        no file '/opt/homebrew/lib/lua/5.1/silicon.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        [string ":lua"]:200: in main chunk

Thanks.

 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"

Run :checkhealth for more info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions