简体   繁体   English

Dart Editor保持运行状态并且不会停止

[英]Dart Editor keeps running pub and doesn't stop

Dart Editor keeps running pub in the background. Dart Editor使后台运行pub。 When I click on "Running pub..." in the lower-right corner and then on the red square button in the Progress tab, it says "Cancel Requested", but does not stop running pub. 当我单击右下角的“正在运行的酒吧...”,然后单击“进度”选项卡中的红色正方形按钮时,它显示“取消请求”,但不会停止运行酒吧。 I have tried stopping it from the Tools tab and it says "Pub Serve [stopped]", but it is still running. 我尝试从“工具”选项卡中停止它,并显示“ Pub Serve [stopped]”,但它仍在运行。 I have also tried deleting the DartEditor folder to reset the settings. 我也尝试删除DartEditor文件夹以重置设置。 How do I stop it? 如何停止?

You can kill it in the operating systems task manager. 您可以在操作系统任务管理器中将其杀死。 After you killed it try running it from the command line interface 'pub upgrade' or whatever pub task you are running. 杀死它后,请尝试从命令行界面“ pub upgrade”或您正在运行的任何pub任务中运行它。 If it still doesn't work try pub upgrade -v or pub upgrade -v > publog.txt and create a bug report at http://dartbug.com . 如果仍然无法正常运行,请尝试pub upgrade -vpub upgrade -v > publog.txt并在http://dartbug.com上创建错误报告。

Sometimes when there are dependencies in your pubspec.yaml where it's hard to find a set of compatible versions pub can take a long time. 有时,当您的pubspec.yaml中存在依赖pubspec.yaml ,很难找到一套兼容的版本pub会花费很长时间。 In this case it might make sense to set tighter constraints than for example any . 在这种情况下,设置更严格的约束比any约束都有意义。 If you have troubles with this please add your pubspec.yaml file to your question (there is an edit link below the dart tag). 如果您对此有疑问,请在您的问题中添加pubspec.yaml文件(dart标记下方有一个edit链接)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM