-
Notifications
You must be signed in to change notification settings - Fork 84
Windows support #10
Comments
Hi Alex, The SASS rules are still broken. I don't think there is any movement on that repo. Still getting the same error for your example and my minimal test for sass rules
Also, if I comment out all the SASS related Bazel stuff, I am still getting the same node rules error
|
You need to upgrade to latest rules_nodejs (0.3.1 is current) to get
Windows support there. But rules_typescript still doesn't support it.
…On Mon, Oct 9, 2017 at 3:59 PM gregbown ***@***.***> wrote:
Hi Alex,
Just circling back on this so please excuse my post if it's just
duplicating what is already documented.
I am still seeing the same two issues despite having updated to Bazel 0.6.1
The SASS rules are still broken
<bazelbuild/rules_sass#13>. I don't think there
is any movement on that repo. Still getting the same error for your example
and my minimal test for sass rules
C:\Users\gbown\Documents\bazel-angular\angular-bazel-example>bazel build src
INFO: Found 1 target...
INFO: From Compiling external/libsass/src/sass2scss.cpp [for host]:
external/libsass/src/sass2scss.cpp(2): warning C4005: '_CRT_SECURE_NO_WARNINGS': macro redefinition
external/libsass/src/sass2scss.cpp(2): note: command-line arguments: see previous definition of '_CRT_SECURE_NO_WARNINGS'
INFO: From Compiling external/libsass/src/file.cpp [for host]:
external/libsass/src/file.cpp(14): warning C4005: 'NOMINMAX': macro redefinition
external/libsass/src/file.cpp(14): note: command-line arguments: see previous definition of 'NOMINMAX'
INFO: From Compiling external/libsass/src/json.cpp [for host]:
external/libsass/src/json.cpp(25): warning C4005: '_CRT_SECURE_NO_WARNINGS': macro redefinition
external/libsass/src/json.cpp(25): note: command-line arguments: see previous definition of '_CRT_SECURE_NO_WARNINGS'
ERROR: C:/users/gbown/appdata/local/temp/_bazel_gbown/afpn2gxi/external/sassc/BUILD.bazel:4:1: C++ compilation of rule ***@***.***//:sassc' failed (Exit 2).
external/sassc/sassc.c(10): fatal error C1083: Cannot open include file: 'getopt.h': No such file or directory
Target //src:src failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 26.508s, Critical Path: 10.29s
C:\Users\gbown\Documents\bazel-angular\angular-bazel-example>
Also, if I comment out all the SASS related Bazel stuff, I am still
getting the same node rules error
<#7>
Action failed to execute: java.io.IOException: CreateProcess(): %1 is not
a valid Win32 application.
C:\Users\gbown\Documents\bazel-angular\angular-bazel-example>bazel build src
INFO: Found 1 target...
ERROR: C:/users/gbown/appdata/local/temp/_bazel_gbown/afpn2gxi/external/build_bazel_rules_typescript/internal/tsc_wrapped/BUILD.bazel:26:1: Compiling TypeScript (devmode) @build_
zel_rules_typescript//internal/tsc_wrapped:tsc_wrapped failed (Exit -1). Note: Remote connection/protocol failed with: execution failed.
Action failed to execute: java.io.IOException: CreateProcess(): %1 is not a valid Win32 application.
Target //src:src failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.875s, Critical Path: 0.39s
C:\Users\gbown\Documents\bazel-angular\angular-bazel-example>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC5I71pbqt9UX0P-a5yt-ZW5sPPY2W8ks5sqqVHgaJpZM4PylB6>
.
|
The install works, but ibazel doesn't
which seems to be the same error that @filipesilva has on bazelbuild/rules_typescript#56 (comment) |
@ocombe in general, it's not surprising that many things in the bazel ecosystem don't work on Windows. We need to file issues upstream, remind maintainers that it's important, and often we'll just have to contribute the fixes (and add the missing CI so it stays fixed) |
Seems we are blocked on support in rules_go as well... |
I've had some luck setting up Bazel in WSL and building from there. It's really slow, though... |
Update: with some local changes, I'm able to build the @angular/core npm package with Bazel on Windows. For Angular v6 we've committed that at least the |
As for buildifier, it's written in Go and that's a known breakage right now.
…On Sat, Feb 24, 2018 at 11:40 AM spongessuck ***@***.***> wrote:
I've had some luck setting up Bazel in WSL and building from there. It's
really slow, though...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC5I6KL5YJr02DL_o5uQzv0UAMz6RRSks5tYGXHgaJpZM4PylB6>
.
|
any news on this issue? |
@domkrel @alexeagle this issue is "opened since the creation of the universe" they just don't care about windows support, so buy mac, or install linux, cause bazel-watcher for windows is dead :) |
Update: most things are working on Windows, still a couple details left before we can close this. |
Still to be fixed:
|
bazel-watcher now has a release for windows, that at least works without throwing those errors (around not being built for appropriate architecture) Now I'm getting errors about @io_bazel_rules_docker and I believe something similar for k8s. I don't know enough about how to just leave that stuff out of the build. I tried removing from WORKSPACE file and references in build.bazel, but still seeing something trying to reference those things |
Docker and k8s rules are used here, but are outside the scope of what we support from the Angular team. Could you file issue(s) with them? I believe this example is now working on windows. |
The whole example should work on Windows, verified by testing on CI.
The text was updated successfully, but these errors were encountered: