Comments (17)
When was the last time you updated the plugin? This looks like a general message about not being able to find the lists
module. I'm not sure why that would happen, but one possibility is you're working with an outdated version of the plugin?
from mkdnflow.nvim.
installed right now
from mkdnflow.nvim.
Hmm, weird. Can you show me what your mkdnflow config looks like?
from mkdnflow.nvim.
potentially a related error (error loading module 'mkdnflow.lists') occurs with lua require('telekasten').insert_link({ i=true })<CR>
from mkdnflow.nvim.
Are you using the default config? (just require('mkdnflow').setup({})
)?
from mkdnflow.nvim.
Yes, but I have also tried to use the defaults explicitly
from mkdnflow.nvim.
Got it. How are you loading the plugin? In the traceback above it looks like the error occurs after the plugin is force started? Is it trying to load after you select a file in telescope? Can you toggle a to-do status if you open the same markdown file from the command line? (nvim my_file.md
)
from mkdnflow.nvim.
unfortunately nvim my_file.md
is also not working. I load the plugin with Packer, as you suggest in the README.md
use({'jakewvincent/mkdnflow.nvim',
config = function()
require('mkdnflow').setup({ })
end
})
Some stuff works. E.g. the function MkdnCreateLink
creates the link but not the file
And it only does sth through the command not the key mapped to it
from mkdnflow.nvim.
Interesting, thanks. It seems like the plugin is not fully initializing. I can reproduce this partially--the mappings are not working if I start from Telescope. Somehow the BufEnter event is not occurring, so the autocommand isn't being triggered. Just to double check, the file you're experiencing this in has a .md extension, right? Can you double-check the nvim version for me by pasting the output of nvim --version
here?
from mkdnflow.nvim.
Just pushed a small change that may fix at least the mappings problem. Can you pull the update and report back?
from mkdnflow.nvim.
Thanks, I have pulled but still no luck :-/
Is there a way I can debug and provide more info?
from mkdnflow.nvim.
nvim --version
nvim --version
NVIM v0.7.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=malloc -Wsuggest-attribute=cold -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az316-460
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "
/home/runner/work/neovim/neovim/build/nvim.AppDir/usr/share/nvim"
from mkdnflow.nvim.
Thanks for the info. It should be good of course with 0.7.0, which is the same version I test and use the plugin on. The only thing I can think is that this somehow has to do with your specific config/other plugins. Do you have your vim dotfiles posted somewhere so I can try them out and see if I can reproduce what's happening on your end? If that still doesn't provide any clues, I may need to patch together some logging functionality so we can see where in the plugin startup process things are going awry. Thx for your patience... this is a tricky one.
from mkdnflow.nvim.
many thanks for taking up this challenge!
my config is based on AstroNvim and you can find my personal config on nvim-config-astroVim/tree/mkdnflow_test
from mkdnflow.nvim.
I was able to reproduce this with your config, but the issue doesn't seem to be caused by mkdnflow. It has something to do with how impatient.nvim caches plugins and runs plugin setup. If I comment out the first line in your init.vim (see below), mkdnflow loads just fine. Since I'm not aware of the inner workings of impatient.nvim, I would probably recommend filing an issue with them. If you do, you can reference this issue and/or tag me.
--local impatient_ok, impatient = pcall(require, "impatient")
This error message seems relevant:
packer.nvim: Error running config for mkdnflow.nvim: ...ck/packer/start/impatient.nvim/lua/impatient/profile.lua:216: attempt to index a nil value
from mkdnflow.nvim.
Many thanks @jakewvincent for tracking this down! I will file a bug report with impatient
from mkdnflow.nvim.
After deleting any potential caching, it worked with a minimal init.lua. So it seems to be in between impatient.nvim and mkdnflow.nvim. I will investigate a bit further what the real root cause is.
from mkdnflow.nvim.
Related Issues (20)
- Bug: Links to external files not working
- Any Mkdn command ends with "Error executing Lua callback:" HOT 2
- Bib-file not found (not on default path, not in root directory) HOT 1
- Relative link does not open respective to the current file
- many problems in cmp autocompletion HOT 1
- newListItem Fails for Ordered List on First Line of File HOT 1
- Incorrect <tab> behaviour in table HOT 3
- yank as anchor link relative to `root_tell`
- Use `bibliography` instead of `bib` for citation configuration HOT 3
- Better support for relative path in `bib` and `yaml` modules
- Error handling if no bibliography entry specified in YAML HOT 1
- Inserting a new column fails HOT 1
- Should link insertion account for all non-white characters in normal mode?
- Feature: "Follow" using `<cr>` on a shortcut reference link
- Feature: Sort Checklist by Status HOT 1
- Feature: Assign multiple bindings to a single command, depending on mode
- Bug: Can't create new columns in table HOT 2
- Bug: Jumping to the next cell or row not working when the cursor is on the last character of a cell
- Bug: Indenting the last item in a list causes error
- I cannot disable `MkdnEnter`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdnflow.nvim.