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.
本文标签:
版权声明:本文标题:Flutter and Git are being deleted when running 'flutter pub get' in VS Code, why? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736202127a1911585.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论