Track version-fox/vfox#745: .nvmrc and .node-version are not applied after a `cd`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
This is a tracking issue whose fix lives upstream in version-fox/vfox#745, so start by reading that issue and watching for a vfox release that contains it. Nothing in this repo should change until then. When the release lands, replay the "Several projects in one shell" scenario in docs/scenarios.md with it. Done means the workaround in lib/util.lua and its call in hooks/parse_legacy_file.lua are removed if vfox now tracks version files, and the English and Chinese docs are updated.
索引モデルが issue の本文から書いたものです。
説明
.nvmrc and .node-version are not applied when you cd into their directory from a running shell, and a shell that started in such a directory does not go back to the global release when you cd out of it. The cause is in vfox, not in this plugin: vfox env serves the output it cached for the previous directory, and the cache does not know about version files. It is reported upstream as version-fox/vfox#745. This issue tracks it until a vfox release fixes it.
Where it stands
| release 0.5.3 | with the workaround of #44 | |
|---|---|---|
| a shell that starts in the directory | applied | applied |
cd into the directory |
ignored | applied |
| the file is edited in the directory the shell is in | ignored | applied at the next prompt |
cd out into a directory with no config |
stays on the file's release | stays on the file's release |
A .vfox.toml is applied in the first, second and last of these. The workaround of #44 is util.forget_env_state: it removes vfox's env-state.json whenever vfox asks the plugin to read a version file, so vfox calculates again at every prompt in such a directory. It cannot help on the way out, because the plugin is not called in a directory with nothing to read.
When vfox has fixed it
- A vfox release contains the fix (version-fox/vfox#745 and the pull request that closes it). Release: ________
- Replay it with that release, with plugin 0.5.3 and with the plugin of
main: the shell of "Several projects in one shell" indocs/scenarios.md, then an edit of the file in the directory the shell is in. The reproduction in version-fox/vfox#745 is the short form. - If vfox notices version files itself, edits included: remove
util.forget_env_state(added by #44,lib/util.lua), its call inhooks/parse_legacy_file.lua, its tests and the hiding of__VFOX_CURTMPPATHintests/hooks_test.lua, and the remark intests/e2e/windows/verify.go. If vfox only keys the cache on the directory, keep it for edits in place. - Change the documents that describe the limit, in English and Chinese:
docs/nvmrc.md("When the file is read"),docs/scenarios.md("Several projects in one shell"),docs/development.md("Legacy files", "Known gaps"),docs/changes.md,docs/troubleshooting.md,README.mdandREADME_CN.md. - Say from which vfox version this works, and what older ones do.
- 主要言語
- Go
- スター
- 10
- フォーク
- 8
- 平均マージ
- 1時間 51分
- マージ済み PR(30日)
- 12
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
version-fox/vfox-nodejs のほかの issue
-
invalid
難易度 3/5 半日 初心者へのやさしさ 40/100
version-fox/vfox-nodejs#32 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
invalid
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
version-fox/vfox-nodejs#36 · コメント 6 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
invalid
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
version-fox/vfox-nodejs#35 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
version-fox/vfox-nodejs の issue をすべて見る
似ている issue
-
Logging into a locally started instance clears its container reference, causing stop to do nothingオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
microcks/microcks-cli#620 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
teradata-labs/loom#574 ·
メンテナーはふだん 1 日以内に返信
-
cli: name the CRID when saved link limits fail after publish; soften plain-republish mint warningオープンenhancement pr-polish-followup priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
layervai/qurl-integrations#1994 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-acceptance wg/router-models-inference-runtime
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vllm-project/semantic-router#5891 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信