Closed
Description
Preconditions
Install Magento from develop
branch.
Steps to reproduce
- Install Magento from
develop
branch. - Create a blank misc.xml file inside of the .idea folder (if using php storm)
- Run 'bin/magento dev:urn-catalog:generate --ide="phpstorm" ./.idea/misc.xml'
Expected result
- A new URN catalog for the project should get generated
Actual result
- User receives the error "Warning: DOMDocument::loadXML(): Empty string supplied as input in /Sites/magento2ce/app/code/Magento/Developer/Model/XmlCatalog/Format/PhpStorm.php on line 61"
I admit that it is an esoteric case, however, the routine generating the xml file is only creating a new fresh file in the instance that the file doesn't exist. If a blank file exists, it attempts to read the existing XML out of the file and throws the error. I had a problem where I created the .idea/misc.xml file but an exception was thrown during the creation process. The invalid misc.xml would generate this error until I removed the file entirely and ran the command again. Pretty low priority, but just thought I'd report it.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release