[英]The Dart Analyzer could not be started in vscode
This problem is solved by uninstalling the Dart sdk manually from the computer, and re-install it.这个问题可以通过从电脑上手动卸载Dart sdk,然后重新安装来解决。
If anyone face the same problem, please uninstall your dart sdk And install it again.如果有人遇到同样的问题,请卸载您的 dart sdk 并重新安装。 Make sure you re-start your vscode IDE.确保重新启动 vscode IDE。
Hope this will helpful if you face the same problem.如果您遇到同样的问题,希望这会有所帮助。
--- Happy Coding --- --- 快乐编码 ---
give permission to access the flutter folder.授予访问 flutter 文件夹的权限。
In my case I put the flutter folder inside the document就我而言,我将 flutter 文件夹放在文档中
I had a permission issue.我有一个许可问题。 I just go through the log and seems unable to create .dart directory in the home folder.我只是查看日志,似乎无法在主文件夹中创建 .dart 目录。
Here is the solution: - This solution for mac only - cd ~ - cd .. - whoami - sudo chown {username} {userfolder}这是解决方案: - 此解决方案仅适用于 mac - cd ~ - cd .. - whoami - sudo chown {username} {userfolder}
在我的情况下,需要简单地重新启动 VSCode - 似乎有一个 Dart 更新未决而 VSCode 没有通知我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.