googlearchive / chromedeveditor

Chrome Dev Editor is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. (NO LONGER IN ACTIVE DEVELOPMENT)
BSD 3-Clause "New" or "Revised" License
2.92k stars 411 forks source link

Running app w/o Pub packages shows warning, but continues compilation and fails #2707

Open ussuri opened 10 years ago

ussuri commented 10 years ago
Could not resolve reference: package:spark_widgets/spark_status/spark_status.dart

). (/spark/ide/app/spark_bootstrap.dart:26), [error] Can't read 'package:spark_widgets/spark_toolbar/spark_toolbar.dart' (ChromeService error: Could not resolve reference: package:spark_widgets/spark_toolbar/spark_toolbar.dart

). (/spark/ide/app/spark_bootstrap.dart:27), [error] Can't read 'package:polymer/polymer.dart' (ChromeService error: Could not resolve reference: package:polymer/polymer.dart

). (/spark/ide/app/spark_polymer_ui.dart:9), [error] Can't read 'package:spark_widgets/common/spark_widget.dart' (ChromeService error: Could not resolve reference: package:spark_widgets/common/spark_widget.dart

). (/spark/ide/app/spark_polymer_ui.dart:10), [error] Can't read 'package:spark_widgets/spark_split_view/spark_split_view.dart' (ChromeService error: Could not resolve reference: package:spark_widgets/spark_split_view/spark_split_view.dart

). (/spark/ide/app/spark_polymer_ui.dart:11), [warning] Cannot resolve type 'chrome.Entry'. (/spark/ide/app/lib/workspace.dart:584), [warning] Cannot resolve type 'chrome.Entry'. (/spark/ide/app/lib/workspace.dart:597), [warning] Cannot resolve type 'chrome.ArrayBuffer'. (/spark/ide/app/lib/workspace.dart:1018), [warning] Cannot resolve type 'chrome.ArrayBuffer'. (/spark/ide/app/lib/workspace.dart:1037), [warning] Cannot resolve type 'chrome.ChromeFileEntry'. (/spark/ide/app/lib/workspace.dart:1102), [warning] Cannot resolve type 'chrome.ChromeFileEntry'. (/spark/ide/app/lib/workspace.dart:847), [warning] Cannot resolve type 'chrome.DirectoryEntry'. (/spark/ide/app/lib/workspace.dart:859), [warning] Cannot resolve type 'chrome.Entry'. (/spark/ide/app/lib/workspace.dart:860), [warning] Cannot resolve type 'chrome.DirectoryEntry'. (/spark/ide/app/lib/workspace.dart:875), [warning] Cannot resolve type 'chrome.DirectoryEntry'. (/spark/ide/app/lib/workspace.dart:881), [warning] Cannot resolve type 'chrome.Entry'. (/spark/ide/app/lib/workspace.dart:882), [warning] Cannot resolve type 'chrome.DirectoryEntry'. (/spark/ide/app/lib/workspace.dart:1001), [warning] Cannot resolve type 'chrome.FileSystem'. (/spark/ide/app/lib/workspace.dart:45), [warning] Cannot resolve type 'chrome.Entry'. (/spark/ide/app/lib/workspace.dart:305), [warning] Cannot resolve type 'chrome.Entry'. (/spark/ide/app/lib/workspace.dart:394), [warning] Cannot resolve type 'chrome.Entry'. (/spark/ide/app/lib/workspace.dart:1182), [warning] Cannot resolve 'polymer'. (/spark/ide/app/spark_polymer.dart:52), [error] Not a compile-time constant. (/spark/ide/app/spark_polymer.dart:52)]
ussuri commented 10 years ago

Three problems here:

  1. Missing packages should prevent launching.
  2. The exception above might need to be translated into a user-friendly format.
  3. The error dialog should use a fixed-size textarea with overflow: scroll.

Moved 3 to #2708. Fixing 1 will probably render 2 unnecessary.