Module version in module.xml is missing when creating new module
See original GitHub issueDescribe the bug (*)
The required setup_version in module.xml is not added when a new module is created, and if you add it manually:
Provided module name "1.0.0" does not match expected "Vendor_Module"
To Reproduce (*)
Steps to reproduce the behavior:
- Right click and select create new Magento module
- Add module name Vendor/Module (or something else)
- Add module version 1.0.0
- See error
Expected behavior (*)
It seems strange to ask for module version on creation menu but not added in the created module.xml file.
As the module version is required I need to add it manually but the IDE return an error message :
Provided module name "1.0.0" does not match expected "Vendor_Module"
Module is still 100% functional with this message
Screenshots
Please complete the following information: (*)
PhpStorm 2020.1.2 Build #PS-201.7846.90, built on June 3, 2020 Licensed to … Subscription is active until November 8, 2020 Runtime version: 11.0.7+10-b765.53 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 10.15.6 GC: ParNew, ConcurrentMarkSweep Memory: 990M Cores: 4 Registry: run.processes.with.pty=TRUE, documentation.show.toolbar=true Non-Bundled Plugins: CMD Support, com.alayouni.ansiHighlight, com.andrey4623.rainbowcsv, com.github.b3er.idea.plugins.arc.browser, com.intellij.ideolog, com.intellij.plugins.html.instantEditing, com.jetbrains.plugins.jade, ru.adelf.idea.dotenv, com.magento.idea.magento2plugin, de.espend.idea.php.annotation, fr.adrienbrault.idea.symfony2plugin, org.psliwa.idea.composer
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Hello @cap340 ,
The
Version
input handles the version of the module in composer.json of this module. The parameter you have mentioned related to the setup version of the module, and it is optional. Please, check the XSD schema for themodule.xml
files.lib/internal/Magento/Framework/Module/etc/module.xsd
Please, report back to me if you have any questions.
@coderimus, can you elaborate on your original comment, Ive checked
/Magento/Framework/Module/etc/module.xsd
everything looks ok with schema’s. When checking the core moduleAmz/Amazon-Pay-Module/etc/Module.xml
it seems ok. Ie: phpStorm is satisfied with the values provided forsetup_version
within that core module.