Magento2 - Setup Compile Error - Class Not_Existing_Class does not exist
Update setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php
if (preg_match($pattern, $fileItem->getRealPath())) {
to
if (preg_match($pattern, str_replace('\\', '/', $fileItem->getRealPath()))) {
Check this Link. Issue is fixed by Magento