Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Getting "duplicate key" exception when installing Forge 1.20.1 #3

Open
ItsTheSky opened this issue Jun 3, 2024 · 3 comments
Open

Comments

@ItsTheSky
Copy link

Hi there, I'm getting the following exception when trying to install forge 1.20.1 with version 47.2.32:

An item with the same key has already been added. Key: Name
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at CmlLib.Utils.JarFile.GetManifest()
   at CmlLib.Core.Installer.Forge.Installers.ForgeInstaller.startProcessor(JToken processor, Dictionary`2 mapData)
   at CmlLib.Core.Installer.Forge.Installers.ForgeInstaller.StartProcessors(JArray processors, Dictionary`2 mapData)
   at CmlLib.Core.Installer.Forge.Installers.ForgeInstaller.MapAndStartProcessors(JObject installProfile, String installerDir)
   at CmlLib.Core.Installer.Forge.Installers.FNewest.Install(String installerDir)
   at CmlLib.Core.Installer.Forge.Installers.ForgeInstaller.Install(ForgeInstallOptions options)
   at CmlLib.Core.Installer.Forge.MForge.Install(ForgeVersion forgeVersion, ForgeInstallOptions options, Boolean forceUpdate)
   at CmlLib.Core.Installer.Forge.MForge.Install(String mcVersion, String forgeVersion, ForgeInstallOptions options, Boolean forceUpdate)

Any idea what did I do wrong?

@AlphaBs
Copy link
Member

AlphaBs commented Jun 4, 2024

I fixed this on 0.0.2. what version do you use?

@ItsTheSky
Copy link
Author

Oh, well I am indeed using 0.0.2

@AlphaBs
Copy link
Member

AlphaBs commented Jun 7, 2024

sorry it was 0.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants