Skip to content

forge: noisy failure when vanilla version is not yet provided by forge #160

@itzg

Description

@itzg
[init] Resolved version given LATEST into 1.19.4 and major version 1.19
[init] Resolving type given FORGE
[mc-image-helper] 19:45:49.918 ERROR : 'install-forge' command failed. Version is 1.25.7
java.util.NoSuchElementException: null
        at java.base/java.util.HashMap$HashIterator.nextNode(Unknown Source)
        at java.base/java.util.HashMap$ValueIterator.next(Unknown Source)
        at me.itzg.helpers.forge.ForgeInstaller.resolveForgeVersion(ForgeInstaller.java:356)
        at me.itzg.helpers.forge.ForgeInstaller.install(ForgeInstaller.java:58)
        at me.itzg.helpers.forge.InstallForgeCommand.call(InstallForgeCommand.java:65)
        at me.itzg.helpers.forge.InstallForgeCommand.call(InstallForgeCommand.java:14)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at me.itzg.helpers.McImageHelper.main(McImageHelper.java:123)

where

return options.values().iterator().next();

and promotions json ended at

    "1.19.3-latest": "44.1.23",
    "1.19.3-recommended": "44.1.0"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions