简体   繁体   English

刷新或创建项目时,project.vim报告“不是有效目录”

[英]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. 我在VIm中使用project.vim来管理具有深层目录结构的大型代码库。

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: 当我切换到另一个目录或创建一个新目录(\\ C)并执行刷新(\\ R)项目时,vim开始在整个过程中显示不同目录的消息:

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

I have to press Enter all the time, although the directories exist. 尽管目录存在,但我必须一直按Enter键。 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. 目录受Perforce管理,因此所有内容均为只读。

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. 我必须待在键盘上并继续按Enter才能进入下一个目录...对于大型代码库,这需要很长时间。

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 谢谢

The plugin uses glob() for some of those directory checks, which is affected by the 'wildignore' setting. 该插件使用glob()进行某些目录检查,这受'wildignore'设置的影响。 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. 如果这样可以解决问题(并且您至少具有Vim版本7.2.51),则可以修改插件的代码以改为使用glob(..., 1)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM