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

Config file is not read properly when it's first created #87

Closed
Remynfv opened this issue May 19, 2022 · 3 comments
Closed

Config file is not read properly when it's first created #87

Remynfv opened this issue May 19, 2022 · 3 comments
Labels
bug Something doesn't work as expected

Comments

@Remynfv
Copy link

Remynfv commented May 19, 2022

Running the ferium list command before any mods are installed shows the error:
EOF while parsing a value at line 1 column 0

Maybe this could show a message like There are 0 mods installed! Type <command> to get started!

EDIT: Very strange, the SECOND time I run this command, it shows a nice message! "There are no profiles configured. Add a profile to your config using ferium profile create".

@theRookieCoder
Copy link
Collaborator

theRookieCoder commented May 19, 2022

Yes this is a known bug. The problem is that when it first creates the config file it doesn't read it properly

@theRookieCoder theRookieCoder added the bug Something doesn't work as expected label May 19, 2022
@theRookieCoder theRookieCoder changed the title Running "ferium list" with no mods installed shows an error. Config file is not read properly when it's first created May 19, 2022
@theRookieCoder theRookieCoder added priority I'm working on it, or will be soon and removed priority I'm working on it, or will be soon labels May 23, 2022
@daenney
Copy link

daenney commented Jul 16, 2022

I ran into a similar instance, with a new ferium install:

$ cat ~/.config/ferium/config.json
cat: /home/daenney/.config/ferium/config.json: No such file or directory

$ ferium profile create --mod-loader quilt --name default --game-version 1.19
EOF while parsing a value at line 1 column 0

$ cat ~/.config/ferium/config.json
{
  "active_profile": 0,
  "active_modpack": 0,
  "profiles": [],
  "modpacks": []
}⏎                                                                                                                                       

$ ferium profile create --mod-loader quilt --name default --game-version 1.19
After adding your mods, remember to run `ferium upgrade` to download them!

$ cat ~/.config/ferium/config.json
{
  "active_profile": 0,
  "active_modpack": 0,
  "profiles": [
    {
      "name": "default",
      "output_dir": "/home/daenney/.minecraft/mods",
      "game_version": "1.19",
      "mod_loader": "Quilt",
      "mods": []
    }
  ],
  "modpacks": []
}⏎      

@theRookieCoder
Copy link
Collaborator

theRookieCoder commented Jul 18, 2022

I managed to replicate the bug in this playground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn't work as expected
Development

No branches or pull requests

3 participants