nvim-telekasten / telekasten.nvim

A Neovim (lua) plugin for working with a markdown zettelkasten / wiki and mixing it with a journal, based on telescope.nvim
MIT License
1.42k stars 91 forks source link

[BUG] attempt to index field 'Cfg' (a nil value) #349

Open lcpichette opened 1 month ago

lcpichette commented 1 month ago

Please confirm

Describe the bug A clear and concise description of what the bug is.

For every Telekasten command I run I get an error about Cfg indexing. Even just running :Telekasten gives me the error.

To Reproduce Steps to reproduce the behavior:

  1. Start nvim
  2. Add Telekasten to Astrovim via lazyvim /lua/plugins/telekasten.lua => return ...provided lazyvim code
  3. Close and reopen neovim
  4. Run any telekasten command
  5. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

2024-10-17@14 58 32 October-17@2x

Operating system (please complete the following information):

Additional context Add any other context about the problem here.

This is my first time using this plugin, so I've likely just installed something incorrectly. But I've installed other neovim plugins via lazyvim and astrovim before, and have never encountered this error.

lambtho12 commented 1 month ago

Is it still happening ? I do not have any issue on my side.

lcpichette commented 1 month ago

Just tried again and I get the same error, but I didn't disable all of my other plugins like I had before. See PR description for reproducible steps and system information. If you performed the reproducible steps with my same system information then I'd make sure that you're using AstroVim as I specified in the PR description.

Thank you for taking a look.

2024-10-26@21 29 03 October-26@2x

Docfips commented 3 weeks ago

Using LunarVim, same issue.

mediapathic commented 2 weeks ago

Same issue here after an update of Astronvim (which broke a bunch of other stuff and I'm starting to suspect a trend there)

handdara commented 2 weeks ago

I also am having this issue. Redoing my nvim config from scratch at the moment and had the same issue with this.

EDIT: Well... i feel dumb, but I didn't save the file that called require('telekasten').setup{...} function, so it just was never getting called. Probably something like that for you too.

lambtho12 commented 2 weeks ago

EDIT: Well... i feel dumb, but I didn't save the file that called require('telekasten').setup{...} function, so it just was never getting called. Probably something like that for you too.

So, once you called the setup function properly everything started to work ? Is that right ?

@lcpichette , @mediapathic , @Docfips could you check ? I am not able to reproduce...

lcpichette commented 1 week ago

@lambtho12 Yes I do have the setup file. See step 2.

It's great that it's working for you lambtho, but it's still not working for me and others, and a "works great for me" doesn't help the thread much.

If you're trying to reproduce the issue to try and fix it:

  1. Firstly, I appreciate the time you're putting into this.
  2. Secondly, I'd just make sure that you're fully trying to reproduce it. That means a clean Astrovim setup (.bak your nvim config files and other setup files beforehand, or better-yet launch an ephemeral container for testing), and walking through the steps as per the Astrovim and Lazyvim specifications.
mediapathic commented 1 week ago

In my case, it actually did turn out to be the setup function; the Astronvim update messed up such that the file containing that was not actually being called. I apologize for the noise.