question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module version in module.xml is missing when creating new module

See original GitHub issue

Describe 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:

  1. Right click and select create new Magento module
  2. Add module name Vendor/Module (or something else)
  3. Add module version 1.0.0
  4. 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

1 2 3 4 5

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

Capture d’écran 2020-07-12 à 03 03 07 Capture d’écran 2020-07-12 à 03 03 26 Capture d’écran 2020-07-12 à 03 04 02

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
coderimuscommented, Jul 12, 2020

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 the module.xml files. lib/internal/Magento/Framework/Module/etc/module.xsd

Please, report back to me if you have any questions.

1reaction
azmeehancommented, Aug 21, 2020

@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 module Amz/Amazon-Pay-Module/etc/Module.xml it seems ok. Ie: phpStorm is satisfied with the values provided for setup_version within that core module.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Magento2 Setup version for module is not specified
I am facing some problem with custom module. I followed following file/folder structure. app/code/Ps/HelloWorld/etc/module.xml : < ...
Read more >
if you can't make a module.xml... - JBoss.org
Hi,. you can define a module with your deployment by adding a jboss-deployment-structure.xml to you WEB-INF directory. For details ...
Read more >
How to fix "The following module is missing from the file ...
Possible solutions: Restore the module and actually disable and uninstall it (recommended if possible): First, restore the module to its original location in ......
Read more >
Magento does not recognize new module - Stack Overflow
This is the path where i created the XML file on the server to tell Magento what the module is: app/etc/modules/Multiplies_HelloWorld.xml
Read more >
Missing 'modules.xml' in /project:15463:/.idea
Hi,I have installed JDK 8 and Upsource 2.0 version on Linux. I have then created project in upsource to import maven project from......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found