Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest setup without cache on dependencies error #2716

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

jonatanklosko
Copy link
Member

Closes #2715.

@josevalim the suggestion is a just hint and I think it's fine to show it even if already setting up without cache. I would rather avoid passing so specific information down to the outputs, but if you have a strong preference, we can :)

Copy link

github-actions bot commented Jul 19, 2024

Uffizzi Preview deployment-54391 was deleted.

@@ -189,6 +189,9 @@ defmodule Livebook.Runtime.Evaluator.Formatter do
defp error_context(error) when is_struct(error, Kino.FS.ForbiddenError),
do: {:file_entry_forbidden, error.name}

defp error_context(error) when is_struct(error, Mix.Error),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mix.Error can happen for several other reasons. Should we check the message as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which ones do you suggest? We only show the special action in the setup cell, so I would be fine with not matching the message. Your call!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, lets give this a try as is then!

@jonatanklosko jonatanklosko merged commit 28ae207 into main Jul 19, 2024
7 checks passed
@jonatanklosko jonatanklosko deleted the jk-deps-error branch July 19, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect Mix.Error exceptions that say "due to errors on dependencies"
2 participants