tuist icon indicating copy to clipboard operation
tuist copied to clipboard

Misleading `generate` error message

Open bojan opened this issue 8 months ago • 4 comments

What problem or need do you have?

When you run tuist generate, and you haven't fetched the remote content by running tuist fetch, the error is misleading:

`FooBar` is not a valid configured external dependency
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose

Potential solution

A message mentioning the fetch mechanism would point the developer to the right direction.

macOS version

14.0

Tuist version

3.8.0

Xcode version

15.0.0

bojan avatar Oct 17 '23 17:10 bojan

Hey @bojan 👋

I am absolutely with you – we should suggest next steps for a developer if things go south. Would you like to implement this? 😌

fortmarek avatar Oct 17 '23 19:10 fortmarek

Hey @fortmarek 👋🏿

I would like to try and solve this issue. Do you have any specific requirements to solve this issue, I mean other cases besides tuist fetch error? Or is it enough to close this issue only by showing suggestions to run tuist fetch?

I would appreciate if you have any other recommendations or suggestions about this issue.

Thank you in advance!

dxmvsh avatar Nov 20 '23 12:11 dxmvsh

I would like to try and solve this issue

Amazing! 💜

Or is it enough to close this issue only by showing suggestions to run tuist fetch?

Yeah, I think that's enough for now – if an external target is not found, we should update the error message to include the suggestion to run tuist fetch. I don't think we want to automatically re-run tuist fetch.

fortmarek avatar Nov 21 '23 18:11 fortmarek

Hello, @fortmarek

I believe this issue is fixed in #5193 linking to issue 5118. This issue probably can be closed by updating tuist to version 3.20.0, as changes been included according to CHANGELOG.md.

dxmvsh avatar Nov 22 '23 19:11 dxmvsh

This issue still exists on tuist version 4.9.0, but it doesn't happen all the time.

Sometimes, but not always I get the helpful hint to use tuist install.

DandyLyons avatar Apr 15 '24 22:04 DandyLyons

This issue still exists on tuist version 4.9.0, but it doesn't happen all the time.

I will close the issue as not that many users seem to run into this anymore. Feel free to create a new issue if you can provide a reproducer 🙏

fortmarek avatar Apr 16 '24 06:04 fortmarek