-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing environment variable __VFOX_PID when using fish #364
Comments
I don't usually use fish. I use the following go code and shell command to test that the go code cannot read the environment variable Affected Code: Line 35 in be6910b
I use @ZuBB Could you test your problem using the modified code? I installed the fish version using apt install -y fish: |
@jan-bar JFYI I will try to take a look at this on Wed |
@jan-bar if I got you right ![]() but I still do not understand the issue and how is it possible that 2 addons (lets say js + python) can interfere each other? I have JS turned on globally and sometimes I enable python in particular shell |
Lines 17 to 39 in be6910b
Because the current terminal does not have a "__VFOX_PID" environment variable, vfox will fall back to using |
This explains why the existing tab started to work again after creating a new one. But it does not explain why the existing tab stopped working |
Lines 59 to 62 in be6910b
You may have closed a terminal over the past day, triggering a cleanup task. Since all your terminals share the temporary directory, the terminal that was not closed the previous day will be unavailable. At this time, when you open a new terminal, a new temporary directory will be created, and all other terminals will immediately reuse the environment. |
That makes some sense. Thank you for your time |
I have got one more issue, that might be related to this. STR
env is the same as in the original bug report. PS: can you repro this bug with the fix you did here? |
@ZuBB use |
wrong place for this comment |
@jan-bar I am trying to find out what is wrong here. I hope you agree that two options are possible (or at least 2)
The case you describe is perfectly valid, but it is very basic. I am pretty sure I can replicate it on my laptop. My workflow is slightly more complicated. I am working on a couple of projects at the same time. "working" here means that I open a new kitty window for each project. If a project requires a few shells, I start tmux within that kitty window/instance of fish shell and create as many tabs (full-size panes) as I need. When I need to switch to another project, I do "detach" in terms of tmux and close kitty's window and start over (either new kitty+new tmux or new kitty + tmux attach). In these cases, fish shells may live quite a long life. Now, we need to think about which reason could lead to a situation when PS: after we discovered #375, I have only one version of node installed by BTW, as far as I remember, when this happens, |
Can I set up some hook at my side to catch a moment when edit: I think I can set up that hook myself |
@ZuBB I don't have such a complicated environment. I suggest you remove some programs for testing. For example, remove fish and use bash instead, remove tmux and use fish directly. I usually only use the bash that comes with the system, so I don't encounter such a complicated problem as yours. |
switching to existing tmux panes (shell sessions) did not change anything. but creating a new pane helped. and node in
/Users/vv/.version-fox/temp/1727128800-4412/
folder has been resurrectedps: can a suspend process influence this somehow?
Originally posted by @ZuBB in #283 (comment)
The text was updated successfully, but these errors were encountered: