From 0ad8dc6e5efb043f06cb95189d543fad579470f8 Mon Sep 17 00:00:00 2001 From: Eric Gustin <34000337+EricGustin@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:19:58 -0800 Subject: [PATCH] Link to Engine installation documentation (#184) # PR Description: If someone tries to run `arcade dev` without the Engine installed they get the following: ![image](https://github.com/user-attachments/assets/bc4063bb-3fb1-471c-a9bc-77f73a660308) --- arcade/arcade/cli/launcher.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arcade/arcade/cli/launcher.py b/arcade/arcade/cli/launcher.py index d9a57548..f2ec16a7 100644 --- a/arcade/arcade/cli/launcher.py +++ b/arcade/arcade/cli/launcher.py @@ -154,19 +154,25 @@ def _get_config_file( if optional: console.print( - f"⚠️ Optional config file '{default_filename}' not found in either of the default locations: " - f"1) current working directory: {Path.cwd() / default_filename}, or " - f"2) user's home directory: {Path.home() / '.arcade' / default_filename}.", + f"⚠️ Optional config file '{default_filename}' not found in either of the default locations: " + f" 1) Current working directory: {Path.cwd() / default_filename}, or " + f" 2) User's home directory: {Path.home() / '.arcade' / default_filename}.", style="bold yellow", ) return None console.print( - f"❌ Config file '{default_filename}' not found in any of the default locations: " - f"1) current working directory: {Path.cwd() / default_filename}, or " - f"2) user's home directory: {Path.home() / '.arcade' / default_filename}.", + f"❌ Error: Required config file '{default_filename}' not found in any of the default locations:\n" + f" 1) Current working directory: {Path.cwd() / default_filename}, or\n" + f" 2) User's home directory: {Path.home() / '.arcade' / default_filename}\n", style="bold red", ) + console.print( + "TIP: Please install the Arcade Engine by following the instructions at:\n" + " https://docs.arcade-ai.com/home/install/local#install-the-engine\n", + style="bold green", + ) + raise RuntimeError(f"Config file '{default_filename}' not found.")