最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Flutter and Git are being deleted when running 'flutter pub get' in VS Code, why? - Stack Overflow

programmeradmin6浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论