pop-os / cosmic-epoch

Next generation Cosmic desktop environment
1.74k stars 55 forks source link

Failed to load the `cosmic-bg-config` dependency, for `rust-analyzer` and AUR package #116

Closed ywnkmn closed 1 year ago

ywnkmn commented 1 year ago

Issue: unable to update `cosmic-bg-config` after pulling the latest updates

Same thing happens when installing from AUR: https://aur.archlinux.org/packages/cosmic-epoch-git#comment-920053

The corresponding version should probably be increased for this repo


Caused by:
  failed to load source for dependency `cosmic-bg-config`

Caused by:
  Unable to update https://github.com/pop-os/cosmic-bg?branch=settings_jammy#23f4a1f8

Caused by:
  object not found - no match for id (23f4a1f80e98d36efc4a83a59ec9e8b13bfca35b); class=Odb (9); code=NotFound (-3)

[ERROR rust_analyzer::main_loop] FetchWorkspaceError:
rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file /home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/Cargo.toml, Some(Version { major: 1, minor: 69, patch: 0 }): Failed to run `cd "/home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings" && "cargo" "metadata" "--format-version" "1" "--manifest-path" "/home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/Cargo.toml" "--filter-platform" "x86_64-unknown-linux-gnu"`: `cargo metadata` exited with an error: warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/app/Cargo.toml
workspace: /home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/Cargo.toml
    Updating git repository `https://github.com/pop-os/cosmic-bg`
error: failed to get `cosmic-bg-config` as a dependency of package `cosmic-settings-desktop v0.1.0 (/home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/pages/desktop)`

Caused by:
  failed to load source for dependency `cosmic-bg-config`

Caused by:
  Unable to update https://github.com/pop-os/cosmic-bg?branch=settings_jammy#23f4a1f8

Caused by:
  object not found - no match for id (23f4a1f80e98d36efc4a83a59ec9e8b13bfca35b); class=Odb (9); code=NotFound (-3)

[ERROR rust_analyzer::main_loop] FetchWorkspaceError:
rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file /home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/Cargo.toml, Some(Version { major: 1, minor: 69, patch: 0 }): Failed to run `cd "/home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings" && "cargo" "metadata" "--format-version" "1" "--manifest-path" "/home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/Cargo.toml" "--filter-platform" "x86_64-unknown-linux-gnu"`: `cargo metadata` exited with an error: warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/app/Cargo.toml
workspace: /home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/Cargo.toml
    Updating git repository `https://github.com/pop-os/cosmic-bg`
error: failed to get `cosmic-bg-config` as a dependency of package `cosmic-settings-desktop v0.1.0 (/home/ywnkmn/Documents/Coding/DEs/cosmic-epoch/cosmic-settings/pages/desktop)`

Caused by:
  failed to load source for dependency `cosmic-bg-config`

Caused by:
  Unable to update https://github.com/pop-os/cosmic-bg?branch=settings_jammy#23f4a1f8

Caused by:
  object not found - no match for id (23f4a1f80e98d36efc4a83a59ec9e8b13bfca35b); class=Odb (9); code=NotFound (-3
mmstick commented 1 year ago

It looks like you're trying to compile an older version of cosmic-settings. The master branch is not using that branch of cosmic-bg.

ywnkmn commented 1 year ago

It looks like you're trying to compile an older version of cosmic-settings. The master branch is not using that branch of cosmic-bg.

I seem to have pulled the latest master branch? Wondering why it's unable to fetch the file even though it's accessible and seem to be the latest cosmic-bg repo on the master_jammy branch: https://github.com/pop-os/cosmic-bg?branch=settings_jammy#23f4a1f8

 ~/D/C/D/cosmic-epoch (master)> git pull --recurse-submodules
Fetching submodule cosmic-applets
Fetching submodule cosmic-applibrary
Fetching submodule cosmic-bg
Fetching submodule cosmic-comp
Fetching submodule cosmic-launcher
Fetching submodule cosmic-osd
Fetching submodule cosmic-panel
From https://github.com/pop-os/cosmic-panel
 * [new branch]      scaling_jammy -> origin/scaling_jammy
Fetching submodule cosmic-session
Fetching submodule cosmic-settings
Fetching submodule cosmic-settings-daemon
Fetching submodule cosmic-workspaces-epoch
Fetching submodule xdg-desktop-portal-cosmic
Already up to date.
mmstick commented 1 year ago

You need the master branch of cosmic-settings. It does not depend on the settings_jammy branch. The settings_jammy branch is a development branch

ywnkmn commented 1 year ago

Ah, removing branch = "settings_jammy" from Cargo.toml fixed the issue (thought I could just pull the updates without editing the configs). Thank you!

mmstick commented 1 year ago

You can git pull the latest version of cosmic-settings. It may be that cosmic-epoch is pointing to an outdated version.

ywnkmn commented 1 year ago

You can git pull the latest version of cosmic-settings. It may be that cosmic-epoch is pointing to an outdated version.

Just noticed that CI has been failing for a week with the same error: https://github.com/pop-os/cosmic-epoch/actions/runs/5319546221/jobs/9632168718#step:6:28

image