bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Windows file path error when running bazelify.

Open nshahan opened this issue 8 years ago • 3 comments

In Windows 10 from the command line executing pub global run bazel:bazelify in a directory with a pubspec.yaml file produces this error:

Unsupported operation: Cannot extract a file path from a c URI dart:core _Uri.toFilePath package:bazel/src/bazelify/generate.dart 52 generate.<async> ===== asynchronous gap =========================== dart:async _Completer.completeError package:bazel/src/bazelify/generate.dart 90 generate.<async> ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:bazel/src/bazelify/generate.dart generate http://localhost:50704/bazelify.dart 26 main.<async>.<fn> package:stack_trace Chain.capture http://localhost:50704/bazelify.dart 26 main.<async> dart:async _SyncCompleter.complete package:bazel/src/bazelify/arguments.dart 142 BazelifyArguments.resolve.<async>

nshahan avatar Oct 20 '16 23:10 nshahan

Assigning to low as this will probably go away in some upcoming refactoring and rewrites.

nshahan avatar Nov 03 '16 01:11 nshahan

I'm seeing this issue on Windows still. Not sure if there is an update at all?

Project is an angular dart project. Command: pub run dazel init

Build label: 0.9.0
Build target: bazel-out/x64_windows-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Dec 19 09:32:04 2017 (1513675924)
Build timestamp: 1513675924
Build timestamp as int: 1513675924

dazel: ^0.3.5

lukef avatar Jan 21 '18 20:01 lukef

In general bazelify and rules_dart do not support windows at this time

jakemac53 avatar Jan 22 '18 19:01 jakemac53