admin管理员组

文章数量:1123180

Background: I recently set up flutter on my machine for a new part time position, and while encountering issues in Android Studio, I migrated to VS Code. However, after a successful install of flutter to C:\Users\name\dev, and verifying git installation, when I open a project in VS Code, flutter pub get --no-example will run, and when I try to run flutter doctor or any flutter command, I get "Unable to find git in PATH' or something along the lines of "unable to find sdk in [sdk path]". I will then try a git --version, which will respond by saying git is not a recognized command. I reinstall both, it works, and then randomly that above process will repeat, typically when I close and reopen VS Code.

I have verified PATH variables before and after this happens, and nothing changes in my environment variables. I've tried sifting through VS Code settings but have been unable to locate anything there. Ultimately, this keeps happening and in the middle of programming I will have to go through the reinstall process over and over. I am wondering if this is being caused by VS Code in some way or something with my system environment.

本文标签: