0
file:/C:/Users/Dave/dart/td2/build.dart
build.dart returned error code 255

Unhandled exception:
Uncaught Error: FileSystemException: Cannot open file, path = 'C:\Users\Dave\dart\td2\packages\args\args.dart' (OS Error: The system cannot find the file specified., errno = 2)
Stack Trace:
#0      _File.open.<anonymous closure> (dart:io/file_impl.dart:349)
#1      _RootZone.runUnary (dart:async/zone.dart:1151)

Dart editor was working fine with a polymer app that I was developing previously. I have rebooted, reinstalled dart editor with no luck Running Pub Get manually fails as well as it can't find files either. Evrrything was working prior to trying CDE and the designer.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
user3329151
  • 145
  • 1
  • 1
  • 5

1 Answers1

0

I think running pub cache repair (run in command line interface) should be able to fix this.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • Thanks, that helped I can now run the demo (CkickCounter) but the repair gets part way through and then starts to complain and says that the error is likely temporary and to try again. When I try again it says that it can't find pubspec.yaml. It there any way that I can just delete the cache? – user3329151 Nov 07 '14 at 22:35
  • There is an open issue that makes `pub cache repair` fail when the `pubspec.yaml` is missing. On Linux systems you can just delete `~/.pub-cache`. I don't know the path on other OS. You should be able to find out by following the symlinks in the packages directory. – Günter Zöchbauer Nov 08 '14 at 09:00
  • Gunter, Thanks for your help. I deleted C:\Users\Dave\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org where Dave is my username on Windows 8.1 and everything seems fine now. Thanks – user3329151 Nov 08 '14 at 13:30
  • See also comments to https://plus.google.com/113415344870093527255/posts/Tab8xQnqoFs – Günter Zöchbauer Nov 10 '14 at 11:37