Can’t generate pot file using wp cli

The problem here is that WordPress project folder is a shared folder on Ubuntu VirtualBox guest OS with guest additions.

Searching in wp cli source code, I found that to scan the directory is used:

$files = new IteratorIterator( new DirectoryIterator( $this->source ) );

and I could verify that it returns only . and .. files.

Moving WordPress project files, for example, in $HOME directory and it works as expected.

make-pot needs mbstring package, so I have to install it with:

sudo apt-get install php-mbstring 

I don’t know if it is a php bug or a Ubuntu bug, but on local filesystem it works.