Workbench icon indicating copy to clipboard operation
Workbench copied to clipboard

running rust programs fails, could not resolve host

Open Mandarinoooo opened this issue 3 months ago • 6 comments

trying to run any of the examples using the rust language fails with the following error message:

warning: spurious network error (3 tries remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)
warning: spurious network error (2 tries remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)
warning: spurious network error (1 try remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)
error: failed to get `libadwaita` as a dependency of package `demo v1.0.0 (/var/home/marinee/.var/app/re.sonny.Workbench/data/re.sonny.Workbench/sessions/2025-11-02 13-12-04)`

Caused by:
  download of config.json failed

Caused by:
  failed to download from `https://index.crates.io/config.json`

Caused by:
  [6] Could not resolve hostname (Could not resolve host: index.crates.io)

Happy to supply y'all with all info needed, I'd really like to get this thing working because it looks great. Cheers!

Mandarinoooo avatar Nov 02 '25 12:11 Mandarinoooo

I see.

For now you can use the Flatseal program to grant Workbench the network permission then restart Workbench.

sonnyp avatar Nov 02 '25 13:11 sonnyp

works, but I ran into a new interesting issue!

error: linker `clang` not found
  |
  = note: No such file or directory (os error 2)

might be OS-related, I'm running Bluefin. Currently trying if installing clang from homebrew fixes it.

Mandarinoooo avatar Nov 02 '25 13:11 Mandarinoooo

Doesn't, of course. Do you maybe know where clang might be missing (as in, where do I need to install it)?

Mandarinoooo avatar Nov 02 '25 13:11 Mandarinoooo

dunno if someone did something but it magically works now hooray

Mandarinoooo avatar Nov 03 '25 21:11 Mandarinoooo

Needs a fix

sonnyp avatar Nov 03 '25 22:11 sonnyp

my bad, somehow forgot I didn't even get an update. Probably doesn't surprise you, given that this is a flatpak, but the issue still persists on OpenSUSE Aeon.

Mandarinoooo avatar Nov 07 '25 07:11 Mandarinoooo