Open ProfChaos opened 1 year ago
That's really strange. I can't reproduce this. Can you run fig diagnostic
and send the output?
That's really strange. I can't reproduce this. Can you run
fig diagnostic
and send the output?
Same here (Working Directory settings
Whenever I open a new tab, it's using the New Window
path instead of the previous session's path
fig diagnostic
`fig-details:
https://user-images.githubusercontent.com/814580/201375004-4f0e1d7d-1e66-4023-987f-66fb92812100.mov
fig-details:
I have this issue too, and it gets fixed when I comment out the Fig lines in my .zshrc
(I don't use a .zprofile
) and open a new iTerm window.
fig diagnostic
:
fig-details:
- 2.13.1-beta.0
hardware-info:
- model:
- model-id:
- chip-id: Apple M1 Max
- cores: 10
- mem: 32.00 GB
os-info:
- macOS 12.6.1 (21G217)
environment:
- shell: /bin/zsh
- terminal: iterm
- cwd: /Users/alexvipond/Code
- exe-path: /usr/local/bin/fig
- install-method: unknown
- env-vars:
- FIGTERM_SESSION_ID: cf173a4b-10aa-4a95-9ee4-4298dd198b7b
- FIG_SET_PARENT_CHECK: 1
- FIG_TERM: 2.13.1-beta.0
- PATH: /Users/alexvipond/.nvm/versions/node/v19.2.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/alexvipond/.fig/bin:/Users/alexvipond/.local/bin
- SHELL: /bin/zsh
- TERM: xterm-256color
- __CFBundleIdentifier: com.googlecode.iterm2
- FIG_PID: 40137
- FIG_SET_PARENT: cf173a4b-10aa-4a95-9ee4-4298dd198b7b
Confirming issue, only full removal of fig
helped.
How I've debugged:
fig
is stopped, it still used zsh (figterminal) in processes. Thats weird, I thought if I'd kill the app it wont do it. Obviously removing lines from .zshrc
didn't helped as the wrapped terminal was still launched. Idea/improvement:
fig doctor
will complain)iTerm
on home directory, started debug session~/Work
home
Another run:
iTerm
with 5 split panes view in different dirs. Let look on 2 of them - one is pointing at ~/Work/projectA
and another is at ~/Work
.~/Work/projectA
and created a new tab -> it landed with ~/Work/projectA
- correct.cd ../
and wait for 5 seconds~/Work/projectA
- wrong~/Work
and create new tab - landed on ~/Work
- correct. See - it's following current dir from the panes on the first tab - both in this step and in step 3.cd ../
and wait for 5 seconds~/Work
- wrongI went to debug log and found Want working directory of PID
and then getWorkingDirectoyrOfProcessWithID
returned always wrong directory. PID is matched to the processes of the zsh (figterm)
. When I've removed fig and have just zsh
processes - it returns fine directory.
So I'm assuming that some API call to process not returns directory, so iTerm reuses previously known pwd
as lastDirectory
or something.
@DiegoGiovany how?
Still happenning.
Same. Fig doctor says everything looks good. Diagnostics shows environment.cwd as the correct directory.
Some observations:
fig quit
and restarting iTerm2.Hope this helps.
any updates?
Also having the same issue, but only on one of my similarly setup computers (M1 Max and M2 Pro). The other works fine.
Same issue here, after uninstallation of fig, everything works perfect
Issue on my personal & work computer.... very annoying
it seems that after triggering one time return key with blank entry, it is working as expected It's like the new session is receiving the working directory from the before last directy of the previous session
Any updates on this? @martinezguillaume trick sometimes works, but would be nice to have this problem solved
Hack with blank lines stopped working. This is really annoying :(
Checks
fig doctor
in the affected terminal sessionfig restart
and replicated the issue againOperating system
MacOS Monterey 12.6
Expected behaviour
Iterm2 opens new window, tab or pane with the same session as the one that was currently active.
So if i'm in
~/work/project
and I open new pane I continue from the same directory~/work/project
Actual behaviour
Iterm2 opens new window, tab or pane always in the home directory.
I'm in
~/work/project
and open new pane and~
is the directory I end up in. Same goes for tab and new window.Steps to reproduce
With these two lines in .zshrz
and these two lines in .zprofile
When I remove ALL these lines everything works as normal in iterm, but I can't use fig, obviously
Environment
No response