robcsi
robcsi

Reputation: 264

project.vim reports "is not a valid directory" when refreshing or creating a project

I'm using project.vim with VIm to manage large code bases with deep directory structures.

When I switch to another one or create (\C) a new one and do a refresh (\R) project.vim starts displaying messages through the whole process for different directories:

<dir_name> is not a valid directory. [O]K:

I have to press Enter all the time, although the directories exist. I took a look at the code and it checks if the path is a directory. They are. Maybe there is a fix for this. The directories are under Perforce management, so everything is read-only.

I have to stay at the keyboard and keep pressing Enter for it to go to next directories... For large code bases this is takes a long time.

I contacted the author some time ago, but there was no response.

Did anyone encounter this before? Could it be the it is bothered by the read-only-ness? Is there a fix for this?

Thanks

Upvotes: 0

Views: 120

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172658

The plugin uses glob() for some of those directory checks, which is affected by the 'wildignore' setting. Try

:set wildignore=

If that fixes the problem (and you have at least Vim version 7.2.51), you can modify the plugin's code to use glob(..., 1) instead.

Upvotes: 1

Related Questions