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 in project.lua:70 - attempt to index local 'dir' (a nil value) #128

Open
Gremious opened this issue Jul 13, 2023 · 0 comments
Open

Comments

@Gremious
Copy link

Gremious commented Jul 13, 2023

Using project with nvim-tree and a visual nvim client (neovide). I changed my directory via vim.api.nvim_command(vim.cmd.edit(...)) to a directory outside of my project, open/closed nvim tree a few times, this happens:

image

However, also happens a lot easier with just launching nvim-qt from the Windows start menu (and probably from a shortcut?), not from a terminal:
image

nothing too speical in config, though I was testing with a pattern that is not present in to the directory I changed to.

	{
		"ahmedkhalf/project.nvim",
		config = function()
			require("project_nvim").setup({
				detection_methods = { "pattern" },
				scope_chdir = "tab",
				patterns = {
					"target",
					">dev",
				},
			})

			require('telescope').load_extension('projects')
		end
	},

Seems like dir doesn't always exist and should perhaps be waited for or gotten in another way.

@Gremious Gremious changed the title Error in project.lua:70 - attempt to index local ' Error in project.lua:70 - attempt to index local 'dir' (a nil value) Jul 13, 2023
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

1 participant