version-fox / version-fox/vfox-flutter

[BUG]: After using vfox activate, the global option becomes invalid.

Open
#15 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Lua
Stars
2
Forks
7
Avg merge
1d 2h
Merged PRs (30d)
6

Description

Version
1.0.11
OS
Win11

Describe the bug
After adding Invoke-Expression "$(vfox activate pwsh)" to my POWERSHELL $PROFILE, I ran vfox use -g flutter@3.41.9. When I then called flutter, I got the error:

flutter: The term 'flutter' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

If I remove the Invoke-Expression "$(vfox activate pwsh)" line, flutter works normally, but then vfox use -p has no effect.

Screenshots[optional]
QQ20260630-161450.png

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Windows 11 using the PowerShell $PROFILE entry and the vfox activate pwsh, vfox use -g flutter@3.41.9, and vfox use -p commands. Trace the activation entry point and verify that both global Flutter selection and project selection leave flutter available in PowerShell; done when the reported command works in both setups.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter, lua, powershell
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.