orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Error message on startup

Open lytenyn opened this issue 4 years ago • 4 comments

Describe the bug

Using neovim 0.6.0 with an empty init.vim, adding only vim-packager and nvim-orgmode, I get the following error when launching nvim with an org file:

Error detected while processing /home/jan/.config/nvim/pack/packager/start/orgmode/ftplugin/org.vim:
line    6:
E5108: Error executing lua ...k/packager/start/orgmode/lua/orgmode/config/init.lua:206: bad argument #2 to 'format' (string expected, got boolean)
stack traceback:
        [C]: in function 'format'
        ...k/packager/start/orgmode/lua/orgmode/config/init.lua:206: in function 'func'
        vim/shared.lua:191: in function 'tbl_map'
        ...k/packager/start/orgmode/lua/orgmode/config/init.lua:205: in function 'setup_mappings'

Steps to reproduce

Launch nvim test.org

Expected behavior

nvim should launch without an error.

Emacs functionality

No response

Minimal init.lua

This happens with the default minimal_init.lua for me, but only when launching nvim for the second time.

Screenshots and recordings

No response

OS / Distro

Gentoo

Neovim version/commit

0.6.0

Additional context

No response

lytenyn avatar Dec 09 '21 20:12 lytenyn

Can you post your setup configuration?

kristijanhusak avatar Dec 09 '21 21:12 kristijanhusak

Sorry for the delay. If I run:

% wget https://gist.github.com/kristijanhusak/a0cb5f4eb2bad3e732a1d18d311ebe2f/raw/2855eb5cd816047ae1fe7f1606c171648cfac4d0/minimal_init.lua
% LANG=C nvim -u minimal_init.lua
# Wait for installation to finish, then close nvim.
% LANG=C nvim -u minimal_init.lua test.org
# (the test.org file does not exist)

I get the error message described in the bug.

lytenyn avatar Dec 14 '21 12:12 lytenyn

the test.org file does not exist

This error confuses me. How the file does not exist?

kristijanhusak avatar Jan 13 '22 21:01 kristijanhusak

Closing due to inactivity.

kristijanhusak avatar Mar 06 '22 15:03 kristijanhusak