fix: Fish env setup using string literal command when using vp env commands#1518
fix: Fish env setup using string literal command when using vp env commands#1518mikkurogue wants to merge 4 commits intovoidzero-dev:mainfrom
Conversation
… prevent fish from breaking with `command` no such file or directory when using something like `vp env use 20`l
✅ Deploy Preview for viteplus-preview canceled.
|
|
@mikkurogue Thanks for the PR! The change looks reasonable, but I'd like to understand the root cause better before merging. The I can't reproduce locally with fish. Could you share more details on how this error occurs — specific fish version, install method, or a repro path? Also, test cases that assert |
|
I'll try my best to explain what I did @nekomoyi I upgraded vite plus with
In my dotfiles repo I have my fish config which sources the vp env here. I don't think it's wrong but I am not one known to maintain my own configs very well. Currently on my work laptop so I can't source the full fish but I know it is version 4.6.0. As I have not yet done a system upgrade on my own machine this week. My system is; I'm not really too sure how to reproduce this, but I do know if I revert the local changes to the vp env.fish to use
|
|
@mikkurogue I may have found the cause. Could you help me test a change? set -l __vp_out (env FISH_VERSION=$FISH_VERSION command vp $argv); or return $statusBecause it runs through env, That explains why I couldn’t reproduce it locally: on my machine, Could you try changing only this line to |
|
Yep, I'll test it later for you when I am at my personal machine. Will update once checked |
|
Updating fish.env to use setting it to So I would assume only changing the one instance to |
…initial set should it use __VP_BIN__/
|
@mikkurogue That aligns perfectly with what I was expecting. Thanks for the fix! |
|
Can also confirm that on MacOS using fish, the issue does not occur. It must be either a Linux or Cachy problem. I would test on other distros but I don't have the time to find a disk and install all major distros for this and setup fish. |
I noticed this was an issue with my setup, I'm not sure if it's a problem elsewhere but I noticed that when I ran
vp env use 25it would fail with"command": no such file or directory". Traced it to theenv.fishmodule and changed it to__VP_BIN__and resourced my config and it was working again.Thought I'll provide a PR but feel free to flame and tell me I'm totally wrong.