zokugun / vscode-sync-settings

Easily synchronize your settings
MIT License
142 stars 12 forks source link

error connecting to settings repository #62

Open beauxq opened 4 months ago

beauxq commented 4 months ago

new installation of vscodium on ubuntu I install "Sync Settings" Sync Settings: Open the repository settings set the git repository Sync Settings: Download (repository -> user)

[info] repository: {"type":"git","url":"https://github.com/beauxq/settings","branch":"master"}
[info] profile: main
[error] Error: /usr/bin/gh auth git-credential get: line 1: /usr/bin/gh: No such file or directory
fatal: could not read Username for 'https://github.com': No such device or address

[error] The git repository can not be pulled
[error] Error: The repository wasn't successfully initialized so the current operation can't continue. Please check the previous error.

It says /usr/bin/gh: No such file or directory but that file does exist on my system.

$ which gh
/usr/bin/gh
$ gh --version
gh version 2.51.0 (2024-06-13)
https://github.com/cli/cli/releases/tag/v2.51.0
beauxq commented 4 months ago

If I use the "Clone Git Repository" on the vscodium welcome page, it is able to download the repository.

daiyam commented 4 months ago

Do you have an alias to replace git with gh?

https://github.com/beauxq/settings needs to exists.

Did you use snap to install VSCodium?

You will need to do Sync Settings: Upload (user -> repository) (save your current config) before any download.

beauxq commented 4 months ago

Do you have an alias to replace git with gh?

No, gh is https://cli.github.com/

git is also installed. The log doesn't show it trying to do anything with git.

https://github.com/beauxq/settings needs to exists.

You will need to do Sync Settings: Upload (user -> repository) (save your current config) before any download.

It exists, and I have uploaded settings to it from a different (Windows) computer. Only this Ubuntu computer has the problem.

Did you use snap to install VSCodium?

flatpak is what I used.

daiyam commented 4 months ago

It exists, and I have uploaded settings to it from a different (Windows) computer. Only this Ubuntu computer has the problem.

Ok, so it's not public

flatpak is what I used.

It must a sandbox issue.

But it's weird that you have some errors about gh instead of git.

beauxq commented 4 months ago

I switched to the .deb version and it works. So this seems to be a problem with flatpak.

daiyam commented 4 months ago

I will have to do some tests with flatpak...