vfox icon indicating copy to clipboard operation
vfox copied to clipboard

[BUG]: The `.tool-versions` file does not switch automatically when it exists under windows powershell.

Open nadirvishun opened this issue 1 month ago • 1 comments

Version 0.9.1 OS Windows 11

Describe the bug

  • When switching to a directory containing the tool-versions file in PowerShell, it does not automatically switch; tested with both Java and Node.js, neither worked.
  • The Invoke-Expression "$(vfox activate pwsh)" has already been configured in Microsoft.PowerShell_profile.ps1.
  • Strangely, when running vfox list java, the arrow points to the switched version, but the switch did not actually take place

Screenshots[optional]

  • Microsoft.PowerShell_profile.ps1:

    Image
  • .tool-versions:

    Image Image

nadirvishun avatar Oct 24 '25 08:10 nadirvishun

我也有同样的问题,刚装上vfox时是正常的,突然有一天就不行了,需要自己手动切换版本;

还有,打开powershell窗口,首次使用java命令很慢;

Im-SAMW avatar Nov 05 '25 01:11 Im-SAMW