-1

I can no longer build my application from the Tools menu "Pub Build - debug" The window alert is:

Unable to run pub
Please select a pubspec.yaml file before running pub.

How does one 'select' a pubspec.yaml file? I have it highlighted in the editor so that's not it. I've restarted the editor and when that didn't work I rebooted. Other pub functions work.

If I open the pubspec.yaml file and click on "run build debug" in the editor it does build. I've not added any imports recently.

Is there a configuration file that might be corrupted?

Nate Lockwood
  • 3,325
  • 6
  • 28
  • 34

1 Answers1

0

Either select the pubspec.yaml in the project view and then use Tools > Pub build or use the context menu on the pubspec.yaml file in the project view.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • Looking around, I see this is a bug with a confusing history because it seems to be sporadic. Yesterday I was able to pub all day, today selecting pubspec.yaml or the project didn't help - restarting Dart Editor (1.10.1) did, though. No idea how to reproduce! – Carl Smotricz Mar 13 '16 at 09:56