Skip to content

Conversation

@VitaliyBoyko
Copy link
Contributor

@VitaliyBoyko VitaliyBoyko commented Oct 22, 2020

Description (*)
New module action is broken with error:

ava.lang.NumberFormatException: For input string: "any"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.base/java.lang.Integer.parseInt(Integer.java:652)
	at java.base/java.lang.Integer.parseInt(Integer.java:770)
	at com.magento.idea.magento2plugin.util.magento.MagentoVersionUtil.compare(MagentoVersionUtil.java:90)
	at com.magento.idea.magento2plugin.actions.generation.dialog.NewModuleDial

It happens if the Magento version is set to any in configs.
This PR fixes the issue.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with integration/functional tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@coderimus coderimus merged commit 52f2f43 into 2.0.1-develop Oct 22, 2020
@VitaliyBoyko VitaliyBoyko deleted the fixed-module-generation-for-any-version branch October 23, 2020 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants