Hi folks! I signed up and authenticated Graphite ...
# how-do-i
t
Hi folks! I signed up and authenticated Graphite with Github (e.g., I can see my PRs on graphite.dev), but am stuck on the token authentication step (e.g., I can copy-paste in
gt auth --token [token-here]
, but nothing happens in the command line and I can't actually run any of the
gt
commands) I installed graphite with Homebrew -- when I run
gt
, I see the list of possible commands, and it asks me to authenticate before moving forward. However, run I try to run any commands (e.g.,
gt --version
,
gt --help --all
,
gt auth --token \ [my-token-here
), nothing shows up in the console. I've updated my git version (2.50), I've tried uninstalling and reinstalling via brew (and also npm), I've rebooted, and I also applied any XCode + other software updates. I've also tried restarting my terminal and re-sourcing my .zshrc file. Is there something else I'm missing? I've asked a teammate to compare
where gt
and the installation locations on a similar Mac setup, and files look like they're installed in the same place.
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
hey Tony, can you check if
gt
is capturing any logs?
cat ~/.local/share/graphite/debug/*
t
Hmm, I get
zsh: no matches found: /Users/tony/.local/share/graphite/debug/*
- I don't seem to have a folder at ~/.local
p
do you happen to have the
$XDG_DATA_HOME
environment variable set? Can confirm with
env | grep XDG_DATA_HOME
t
I do not
(nothing shows up in the console when I run
env | grep XDG_DATA_HOME
p
gotcha, let's try see if the
/graphite/debug
directory is located somewhere else:
find ~ -type d -path "*/graphite/debug" 2>/dev/null
t
That also returned nothing in the command line
p
what's the output of
which gt
? And if you run
gt --version
and then
echo $?
what is the return code?
t
which gt
>>
/opt/homebrew/bin/gt
gt --version
into
echo $?
>> 1
p
okay, so it's silently failing to a generic error. I've seen this once before here but unfortunately we hit a dead end back then
๐Ÿ‘ 1
Could you please share a screenshot of your
About This Mac
info accessed here:
t
image.png
p
Thanks, and try searching for any graphite directories:
find ~ -type d -path "*/graphite" 2>/dev/null
ย  These are the ones I find on mine:
Copy code
~ยป find ~ -type d -path "*/graphite" 2>/dev/null 
/Users/gary/.config/graphite
/Users/gary/.local/share/graphite
/Users/gary/Library/Logs/Homebrew/graphite
t
Hmm, I only have the path to Homebrew --
Copy code
find ~ -type d -path "*/graphite" 2>/dev/null
/Users/tony/Library/Logs/Homebrew/graphite
p
I think that's a clue that something has gone wrong during the installation
๐Ÿ‘ 1
I wonder if the installation tried and failed to create those directories. In the case of
.config/graphite
that's where the
aliases
and
user_config
files would be, which the CLI makes use of.
t
Hmm, that's a good call-out. I have a corporate laptop where I can request admin privileges in a separate workspace app. I just tried uninstalling / redownloading / re-sourcing from ~/.zshrc, but unfortunately that didn't seem to change anything.
Separately, the only other commonality between me + the other user thread you linked is that we both have conda, but not sure there's much there that would impact graphite.
p
are you able to successfully run
mkdir /Users/tony/.config
?
t
I already have a folder at
/Users/tony/.config
, there's just no folder for graphite
p
okay and
mkdir /Users/tony/.config/graphite
? Just to see that your user has permission to do that
t
I get a
Permission denied
error when I try that.
p
ah ha, I suspect that's happening during the installation but for whatever reason brew doesn't fail over. If you parse the brew install logs there may be indications of that.
๐Ÿ‘ 1
If you want to can save the
brew
output for us to check:
HOMEBREW_NO_COLOR=1 brew install withgraphite/tap/graphite >~/brew_graphite_install.log 2>&1
t
I ran
brew uninstall graphite
beforehand, see attached log
I also tried with --verbose and didn't see any particular warnings
p
could you please share the verbose ones?
t
brew_graphite_install_verbose.log