Neovim.jl icon indicating copy to clipboard operation
Neovim.jl copied to clipboard

Failing precompilation

Open kataklasm opened this issue 1 year ago • 5 comments

Right now installing Neovim with ]add Neovim gives the following errors during precompilation.

Precompiling Neovim

Info Given Neovim was explicitly requested, output will be shown live
 
WARNING: Method definition list_runtime_paths(Neovim.NvimClient{S} where S) in module Neovim overwritten.

ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.

? Neovim

[ Info: Precompiling Neovim [b2cf22bb-779f-4885-b12f-54b1c19a73e0]

WARNING: Method definition list_runtime_paths(Neovim.NvimClient{S} where S) in module Neovim overwritten.

ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.

[ Info: Skipping precompilation since __precompile__(false). Importing Neovim [b2cf22bb-779f-4885-b12f-54b1c19a73e0].

kataklasm avatar Mar 01 '24 21:03 kataklasm

Then it's in good company. But it works, right? It just doesn't precompile some things properly?

clason avatar Mar 02 '24 10:03 clason

It works just fine as far as I can tell, yes. If a module imports it, the REPL will print these errors once for Neovim and then for the module itself again, but they are still those Neovim.jl errors, just duplicated. Is there a way to set the verbosity or similar to that none of this will be printed?

kataklasm avatar Mar 02 '24 13:03 kataklasm

Yeah, that's just noise Julia likes to add in recent versions. It will go away when a proper precompilation block is added. Should be done, but not high priority if things work fine.

clason avatar Mar 02 '24 13:03 clason

Got it, thanks!

kataklasm avatar Mar 02 '24 14:03 kataklasm

PR welcome.

bfredl avatar Mar 02 '24 15:03 bfredl