Code Monkey home page Code Monkey logo

Comments (3)

atroche avatar atroche commented on July 3, 2024

I also just tried it with 0.9.2, no luck:

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: ...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:24: Error executing lua: ...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:25: BufReadPost Autocommands for "*"..FileType Autocommands for "*": V
im(append):Error executing lua callback: ...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:16: attempt to call local 'glob_search' (a nil value)
stack traceback:
        ...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:16: in function 'generate_runtime_loaders'
        ...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:81: in function 'find_runtime_plugins'
        ...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:115: in function <...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:112>
        [C]: in function 'nvim_cmd'
        ...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:25: in function <...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:24>
        [C]: in function 'nvim_buf_call'
        ...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:24: in function <...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_cmd'
        ...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:25: in function <...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:24>
        [C]: in function 'nvim_buf_call'
        ...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:24: in function <...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        ...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:24: in function <...8-neovim-unwrapped-0.9.2/share/nvim/runtime/filetype.lua:10>
Error detected while processing VimEnter Autocommands for "*":
Error executing lua callback: ...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:16: attempt to call local 'glob_search' (a nil value)
stack traceback:
        ...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:16: in function 'generate_runtime_loaders'
        ...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:81: in function <...s/start/rktjmp-hotpot.nvim/lua/hotpot/neovim/runtime.lua:71>

I wonder if it's something to do with using nix / home-manager to manage it?

from hotpot.nvim.

rktjmp avatar rktjmp commented on July 3, 2024

Hm..

glob-search =>

(λ glob-search [spec]
"Searches the RTP for files that match the given glob pattern. Returns a list
with 0, 1 or many absolute paths to files that were found.
The spec must contain the following keys:
glob: glob pattern to match on
The spec may contain the following keys:
all?: true or false, return all matches or only the first. Defaults to false.
path: string, defaults to vim.go.rtp."
(let [defaults {:all? false
:path vim.go.rtp}
spec (vim.tbl_extend :keep spec defaults)]
(each [_ key (ipairs [:glob])]
(assert (. spec key) (.. "glob-search spec must have " key " field")))
(globsearch-runtime-path spec)))
{: mod-search
: glob-search}

correctly exported =>

local function glob_search(spec)
_G.assert((nil ~= spec), "Missing argument spec on fnl/hotpot/searcher.fnl:78")
local defaults = {path = vim.go.rtp, ["all?"] = false}
local spec0 = vim.tbl_extend("keep", spec, defaults)
for _, key in ipairs({"glob"}) do
assert((spec0)[key], ("glob-search spec must have " .. key .. " field"))
end
return globsearch_runtime_path(spec0)
end
return {["mod-search"] = mod_search, ["glob-search"] = glob_search}

required in fennel =>

{: glob-search} (require :hotpot.searcher)

and in lua =>

local _let_5_ = require("hotpot.searcher")
local glob_search = _let_5_["glob-search"]
local _let_6_ = require("hotpot.fs")
local file_exists_3f = _let_6_["file-exists?"]
local tbl_17_auto = {}
local i_18_auto = #tbl_17_auto
for _, fnl_path in ipairs(glob_search({glob = glob, path = path, ["all?"] = true})) do

:Fnl= (. (require :hotpot.searcher) :glob-search) => <function>

I dont see the error on my system, a fresh container using the readme init, or in the CI tests, might be Nix?

Hotpot used to do a magic trick to self-host -- which did cause some issues on Nix previously, but now it just ships a lua/ dir to dogfood .hotpot.lua, so I would expect it to just work...

from hotpot.nvim.

rktjmp avatar rktjmp commented on July 3, 2024

Assuming this has been resolved on your system.

from hotpot.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.