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.

Cannot find "fabric-loader-0.13.3-1.16.5"

See original GitHub issue

Describe the bug When using the following code in version 3.3.5 of CmlLib.Core it throws an exception saying that “fabric-loader-0.13.3-1.16.5” is not found.

            string fabricName = "fabric-loader-0.13.3-1.16.5";

            // Handle fabric missing
            var fabricVersionLoader = new FabricVersionLoader();
            var fabricVersions = await fabricVersionLoader.GetVersionMetadatasAsync();

            // Install fabric
            if (versions.All(x => x.Name != fabricName))
            {
                try
                {
                    var fabric = fabricVersions.GetVersionMetadata(fabricName);         // Throws error (can't find it)
                    await fabric.SaveAsync(path);

                    // Update version list
                    await launcher.GetAllVersionsAsync();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                    Environment.Exit(1);
                }
            }

Environment (please complete the following information):

  • OS: Windows 10
  • CmlLib.Core Version: 3.3.5
  • .NET version: 6.0-windows

Additional context Occurs for other versions of fabric such as the example in the sample code.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
NoobNotFoundcommented, Jun 12, 2022

Does this mean that obtaining older versions is not supported?

Yeah you got it ! the way is to keep it alive is get the all metadata and search it (search “1.16.5” for fabric 1.16.5) that’s it !

0reactions
developerx-officialcommented, Jun 12, 2022

Oh, I see what you mean-the older versions aren’t in the metadatas. Does this mean that obtaining older versions is not supported?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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