Skip to content
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

Error on detected while processing: telescope.actions not found #14

Open
Sparkenstein opened this issue Jan 12, 2022 · 2 comments
Open

Comments

@Sparkenstein
Copy link

I am trying to make this plugin work on windows, I have all the setup for neovim 0.6 and other plugins working, including Telescope and others. when I load Cheatsheet command, I get the following error:

Error detected while processing function <SNR>67_Cheatsheet:
line    5:
E5108: Error executing lua ...art\cheatsheet.nvim/lua/cheatsheet/telescope/actions.lua:1: module 'telescope.actions' not found:
        no field package.preload['telescope.actions']
        no file '.\telescope\actions.lua'
        no file 'C:\tools\neovim\Neovim\bin\lua\telescope\actions.lua'
        no file 'C:\tools\neovim\Neovim\bin\lua\telescope\actions\init.lua'
        no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\share\lua\5.1\telescope\actions.lua'
        no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\share\lua\5.1\telescope\actions\init.lua'
        no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\lib\luarocks\rocks-5.1\telescope\actions.lua'
        no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\lib\luarocks\rocks-5.1\telescope\actions\init.lua'
        no file '.\telescope\actions.dll'
        no file 'C:\tools\neovim\Neovim\bin\telescope\actions.dll'
        no file 'C:\tools\neovim\Neovim\bin\loadall.dll'
        no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\lib\lua\5.1\telescope\actions.so'
        no file '.\telescope.dll'
        no file 'C:\tools\neovim\Neovim\bin\telescope.dll'
        no file 'C:\tools\neovim\Neovim\bin\loadall.dll'
        no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\lib\lua\5.1\telescope.so'
stack traceback:
        [C]: in function 'require'
        ...art\cheatsheet.nvim/lua/cheatsheet/telescope/actions.lua:1: in main chunk
        [C]: in function 'require'
        ...k\packer\start\cheatsheet.nvim/lua/cheatsheet/config.lua:26: in main chunk
        [C]: in function 'require'
        ...ack\packer\start\cheatsheet.nvim/lua/cheatsheet/init.lua:2: in main chunk
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk

Not sure what went wrong here! Let me know if you need any other logs/information from my side.

@Sparkenstein
Copy link
Author

Just tested on mac as well, same error there as well.

@Sparkenstein Sparkenstein changed the title Error on windows Error on detected while processing: telescope.actions not found Jan 12, 2022
@jacobgardner
Copy link

jacobgardner commented Jul 26, 2022

@Sparkenstein This happened to me because telescope was marked as optional previously in packer. I was able to force it to load by adding vim.cmd[[packadd telescope.nvim]] to the config section.

        use({
		"nvim-telescope/telescope.nvim",
		tag = "0.1.0",
                opt = true,
		requires = { { "nvim-lua/plenary.nvim" } },
		cmd = { "Telescope" },
		config = function()
			require("plugins.telescope")
		end,
	})

	use({
		"sudormrfbin/cheatsheet.nvim",

		requires = {
			"nvim-telescope/telescope.nvim",
			"nvim-lua/popup.nvim",
			"nvim-lua/plenary.nvim",
		},
                cmd = { "Cheatsheet", "CheatsheetEdit" },
		config = function()
			vim.cmd([[packadd telescope.nvim]])

			local cheatsheet = require("cheatsheet")

			cheatsheet.setup({
				bundled_cheatsheets = true,
				bundled_plugin_cheatsheets = true,
			})
		end,
	})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants