-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E492: Not an editor command: require("telescope").extensions.possession.list() #64
Comments
I searched the source code and I think I found the correct namespace of the list command (which is
So, I think I had a bad guess 😝 |
Hmm, the first error But the second looks like there is a directory inside your session_dir (defaults to something like Anyway, this is a bug, we should only consider files when reading, so it needs to be fixed. |
Can you check if this helps? #65 |
Hey @jedrzejboczar ! Yes, I have a directory there (I copied it from the old session manager I used, so to have them archived case I need). I restored the plugin from a previous version manually and locked it on lazy.nvim, but I can remove the lock and try to update. I'll do that in a few hours and get back here to confirm, thank you for now! |
Can you clarify this a little more? What files do you have in Be aware that Possession, while still using the built in Vim You could try the @jedrzejboczar |
Oh, I see @josh-nz ! Inside If your plugin is trying to read files from the folder '_old_plugin' or Your suggestion to limit to *.json files and also restrict to the folder (don't recurse) is great to safeguard from someone that tinkers with that directory as I did. [1] I source controlled this directory because the sessions are valuable to me when I need to revisit files I may be interested in. Your json files are the reason I switched to this plugin, you all did great work here! ;) |
I want to be very clear that this is not my plugin. The credit for this work belongs to @jedrzejboczar. I have made a few very small contributions only. I'm not very familiar with Vim globs and if they are different from other forms of globbing, but a quick test doesn't seem to suggest it is recursing into your |
Sorry for the confusion @josh-nz , I have mistaken you for the author, my bad. I need more coffee 🤣 So, about files, there is indeed a shell script on the same folder. The files I have are the ones on the screenshot I shared here (it is on the lower half of the screenshot): #64 (comment) Let me know if there is anything else you need. Thank you! |
Ah, I missed your If you understand how Neovim plugins work, you can make this change locally until a fix is landed, or otherwise temporarily move that shell script out of this folder. I'll leave the fix up to @jedrzejboczar since it's probably more work for them to manage a pull request from me for such a simple change. In - local glob = (Path:new(config.session_dir) / '*'):absolute()
+ local glob = (Path:new(config.session_dir) / '*.json'):absolute() |
Thanks for analyzing this. Indeed using '*.json' seems like the correct way to handle this. When writing this plugin I didn't imaging people adding their own files to that directory and tracking it in source control, but this sounds perfectly reasonable! I'll update #65 and merge it. |
I have been running this plugin for about a week.
I build nvim everyday from master and I am facing this error when I try to trigger the command to load the list of sessions:
I think maybe
require("telescope").extensions.possession.list()
changed on a recent update?Relevant context:
version: NVIM v0.11.0-dev-226+g721551210
package manager: lazy.nvim
configuration:
The text was updated successfully, but these errors were encountered: