Open Integralist opened 2 years ago
Additionally, even though fig doctor
now suggests everything is working fine (after letting it move the sourcing of files), I restart the fig app and double check fig doctor
(yup, no errors apparently), and yet...
UPDATE: 5hrs after my above comment, and not doing anything other than my day-to-day work the Fig app has suddenly sprung back to life...
.
Hi @Integralist, thanks for reporting this issue and being so detailed.
We actually have someone on the team looking into this issue and working on a fix. It should be out sometime next week!
Sanity checks
fig doctor
in the affected terminal sessionIssue Details
Description:
My
~/.zshrc
has the pre/post integration scripts sourced, and they are indeed the first/last things to be executed but not in the way thatfig doctor
presumes they would be.For example, I prefer to not straight up source a script in my shell configuration because the file being sourced might not exist. Just sourcing files can cause problems when I move my shell configuration between machines.
To avoid this issue I prefer to wrap any source operations in an
if
statement like so:But
fig doctor
doesn't recognise this, and because I also like to have some comments at the top of my shell configuration that explains the file structure this may also be confusingfig doctor
into thinking the sourcing isn't the first thing to happen (even though in practice, it is the first thing to be sourced).The following snippet demonstrates what
fig doctor
automatically does to my shell configuration (which is annoying because it does this automatically without asking to confirm with me:Attempting to fix automatically...
). Notice it actually locates the source line and moves it up out of my if statement.Environment