Track version-fox/vfox#745: .nvmrc and .node-version are not applied after a `cd`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 15/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
.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.
- Ngôn ngữ chính
- Go
- Star
- 10
- Fork
- 8
- Merge trung bình
- 1 giờ 51 phút
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của version-fox/vfox-nodejs
-
invalid
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 40/100
version-fox/vfox-nodejs#32 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
invalid
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
version-fox/vfox-nodejs#36 · 6 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
invalid
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
version-fox/vfox-nodejs#35 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của version-fox/vfox-nodejs
Issue tương tự
-
agent-butler-finding bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
jordansmall/spindrift#6414 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Icinga/icinga-kubernetes#294 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Cluster details: the Control Plane version field has a different border color than its icon boxĐang mởkind/design sig/ui
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
kubermatic/dashboard#8449 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
filecoin-project/curio#1632 ·
Maintainer thường phản hồi trong vòng 1 ngày