snowfallorg/nixos-conf-editor

Could not load cache

Opened this issue · 4 comments

Opening the application just gives me the "Could not load cache" error. I can't do anything, and it doesn't look enabling the debug flag shows anything useful.

RUST_LOG=nixos_conf_editor=trace nixos-conf-editor                                                                 
 DEBUG nixos_conf_editor::ui::optionpage > opt changing valuebuf to ""
 DEBUG nixos_conf_editor::ui::optionpage > conf changing valuebuf to ""
 DEBUG nixos_conf_editor::ui::optionpage > valuetracker changing valuebuf to ""
 INFO  nixos_conf_editor::ui::optionpage > OptPageMsg::UpdateConfMod
 INFO  nixos_conf_editor::ui::optionpage > pre_view
 DEBUG nixos_conf_editor::ui::optionpage > valuetracker changing valuebuf to "0"
 DEBUG nixos_conf_editor::ui::optionpage > valuebuf changed to "0"
 INFO  nixos_conf_editor::ui::optionpage > OptPageMsg::UpdateConf
 INFO  nixos_conf_editor::ui::optionpage > pre_view
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::SetDarkMode
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::SetConfPath
 INFO  nixos_conf_editor::ui::optionpage > OptPageMsg::SetScheme
 INFO  nixos_conf_editor::ui::optionpage > pre_view
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::TryLoad
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::LoadError
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::TryLoad
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::LoadError
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::TryLoad
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::LoadError
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::TryLoad
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::LoadError
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::TryLoad
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::LoadError
 INFO  nixos_conf_editor::ui::window     > Received AppMsg::Close

Sounds like something is wrong with version detection. What's your output of nixos-version --json? I also might have some flakes stuff I still need to backport from nix-software-center

I'm not using flakes, just a standard config.
Output of nixos-version --json:

{"nixosVersion":"22.11pre405560.2da64a81275","nixpkgsRevision":"2da64a81275b68fdad38af669afeda43d401e94b"}

The issue should be fixed in the latest commit on main. I'll make a new tag after I add a few more updates

Version 0.0.5 should fix the issue