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 6 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 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@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. |
fengmk2
left a comment
There was a problem hiding this comment.
@mikkurogue @nekomoyi Thanks!
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6a44d2fbca
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
create-framework-shim-astro snap test is unstable, I need to fix it first |
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.