You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4a8400b
Browse filesBrowse the repository at this point in the historyBrowse files
Name the exact setup problem and its fix when local Syntax Auth can't start
Each case now has its own message: Docker not installed, unusable, or not running (and which app was opened); gh not installed or signed out; not in, or invited to, the syntaxfm org; a token missing read:org or read:packages; the program holding the port; and the container's last log lines when it never answers. Checked each case on this Mac, with stand-in gh and open commands for the states this account can't reach.
"downloading it needs the GitHub CLI, which isn't installed. Install it (`brew install gh`, or see https://cli.github.com), run `gh auth login`, then restart dev."
112
+
};
113
+
}
114
+
if(user.code!==0){
115
+
return{
116
+
problem: /ghauthlogin/.test(user.stderr)
117
+
? "downloading it needs the GitHub CLI signed in, and it isn't. Run `gh auth login`, then restart dev."
118
+
: `the GitHub CLI couldn't read your GitHub account: ${first_line(user.stderr)}`
return`${app} was opened, but Docker wasn't ready after 2 minutes. Check ${app} for an error or a prompt, then restart dev.`;
60
+
}
61
+
return'Docker is installed but not running, and neither Docker Desktop nor OrbStack is installed to start it. Start your Docker engine, then restart dev.';
62
+
}
63
+
64
+
/** @returns {Promise<string | null>} null when Docker is ready, otherwise what is wrong. */
return"Docker isn't installed. Install Docker Desktop (https://www.docker.com/products/docker-desktop/) or OrbStack (https://orbstack.dev), then restart dev.";
70
+
}
71
+
if(/permissiondenied/i.test(info.stderr)){
72
+
return`Docker is installed, but your user can't use it (${first_line(info.stderr)}). On Linux, add yourself to the docker group (https://docs.docker.com/engine/install/linux-postinstall/), then restart dev.`;
return`local Syntax Auth started but isn't answering at ${SYNTAX_AUTH_LOCAL_ORIGIN} after 3 minutes. Its last log lines:\n${`${logs.stdout}\n${logs.stderr}`.trim()}`;
133
+
}
134
+
135
+
/** @returns {Promise<string | null>} null once Syntax Auth answers, otherwise what is wrong. */
0 commit comments