Dart は Editor を更新するまでは機能していましたが、既存および新規のプロジェクトでエラーが発生するようになりました。Dartの完全な再インストールを試みました。新しいプロジェクトの web-ui で pub install を実行すると、次のメッセージが表示されます。
--- Jun 11, 2013 10:25:11 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
クリーン インストールのディレクトリに「バージョン」ファイルがないのは正しいことです。そのファイルを追加すると、次のメッセージが表示されました。
--- Jun 11, 2013 10:23:42 PM Running pub install ... ---
Pub install failed, [69] Resolving dependencies...
Failed NSS_Init call.
新しいプロジェクトを作成すると、次のようになります。
--- Jun 11, 2013 10:26:17 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/MyApp/build.dart
build.dart returned error code 255
Do not know how to load 'dart:uri''package:analyzer_experimental/src/generated/java_core.dart': Error: line 4 pos 1: library handler failed
import "dart:uri";
^
'package:analyzer_experimental/src/generated/ast.dart': Error: line 7 pos 1: library handler failed
import 'java_core.dart';
^
'package:web_ui/src/compiler.dart': Error: line 10 pos 1: library handler failed
import 'package:analyzer_experimental/src/generated/ast.dart' show Directive, UriBasedDirective;
^
'package:web_ui/dwc.dart': Error: line 12 pos 1: library handler failed
import 'src/compiler.dart';
^
'package:web_ui/component_build.dart': Error: line 25 pos 1: library handler failed
import 'dwc.dart' as dwc;
^
'file:///C:/Users/Phloxicon/Dropbox/dart/MyApp/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:18 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
--- Jun 11, 2013 10:26:18 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/Test02/build.dart
build.dart returned error code 255
Unable to open file: C:/Users/Phloxicon/Dropbox/dart/Test02/packages/web_ui/component_build.dart'file:///C:/Users/Phloxicon/Dropbox/dart/Test02/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:18 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/quiz_generator/build.dart
build.dart returned error code 255
Do not know how to load 'dart:uri''package:analyzer_experimental/src/generated/java_core.dart': Error: line 4 pos 1: library handler failed
import "dart:uri";
^
'package:analyzer_experimental/src/generated/ast.dart': Error: line 7 pos 1: library handler failed
import 'java_core.dart';
^
'package:web_ui/src/compiler.dart': Error: line 10 pos 1: library handler failed
import 'package:analyzer_experimental/src/generated/ast.dart' show Directive, UriBasedDirective;
^
'package:web_ui/dwc.dart': Error: line 12 pos 1: library handler failed
import 'src/compiler.dart';
^
'package:web_ui/component_build.dart': Error: line 25 pos 1: library handler failed
import 'dwc.dart' as dwc;
^
'file:///C:/Users/Phloxicon/Dropbox/dart/quiz_generator/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:19 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
--- Jun 11, 2013 10:26:19 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/sdgdsfg/build.dart
build.dart returned error code 255
Unable to open file: C:/Users/Phloxicon/Dropbox/dart/sdgdsfg/packages/web_ui/component_build.dart'file:///C:/Users/Phloxicon/Dropbox/dart/sdgdsfg/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:19 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
--- Jun 11, 2013 10:26:19 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/srtgdsfg/build.dart
build.dart returned error code 255
Unable to open file: C:/Users/Phloxicon/Dropbox/dart/srtgdsfg/packages/web_ui/component_build.dart'file:///C:/Users/Phloxicon/Dropbox/dart/srtgdsfg/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:19 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/test1/build.dart
build.dart returned error code 255
Do not know how to load 'dart:uri''package:analyzer_experimental/src/generated/java_core.dart': Error: line 4 pos 1: library handler failed
import "dart:uri";
^
'package:analyzer_experimental/src/generated/ast.dart': Error: line 7 pos 1: library handler failed
import 'java_core.dart';
^
'package:web_ui/src/compiler.dart': Error: line 10 pos 1: library handler failed
import 'package:analyzer_experimental/src/generated/ast.dart' show Directive, UriBasedDirective;
^
'package:web_ui/dwc.dart': Error: line 12 pos 1: library handler failed
import 'src/compiler.dart';
^
'package:web_ui/component_build.dart': Error: line 26 pos 1: library handler failed
import 'dwc.dart' as dwc;
^
'file:///C:/Users/Phloxicon/Dropbox/dart/test1/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:20 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
--- Jun 11, 2013 10:26:20 PM build.dart --machine --full ---
file:/C:/Users/Phloxicon/Dropbox/dart/testest/build.dart
build.dart returned error code 255
Unable to open file: C:/Users/Phloxicon/Dropbox/dart/testest/packages/web_ui/component_build.dart'file:///C:/Users/Phloxicon/Dropbox/dart/testest/build.dart': Error: line 2 pos 1: library handler failed
import 'package:web_ui/component_build.dart';
^
--- Jun 11, 2013 10:26:20 PM Running pub install ... ---
Pub install failed, [255] Unhandled exception:
FileIOException: Cannot open file 'C:\Users\Phloxicon\Documents\dart\dart-sdk\bin\version' (OS Error: The system cannot find the file specified.
, errno = 2)
#0 _File.throwIfError (file_impl.dart:444:7)
#1 _File.openSync (file_impl.dart:310:17)
#2 _File.readAsBytesSync (file_impl.dart:363:26)
#3 _File.readAsStringSync (file_impl.dart:381:41)
#4 readTextFile (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/io.dart:71:68)
#5 _getVersion (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:24:29)
#6 version (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/lib/src/sdk.dart:17:30)
#7 main (file:///e:/b/build/slave/dart-editor-win-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:61:30)
何か案は?