Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome extension build fails on macOS #1

Open
mehdideveloper opened this issue Jan 30, 2018 · 6 comments
Open

Chrome extension build fails on macOS #1

mehdideveloper opened this issue Jan 30, 2018 · 6 comments

Comments

@mehdideveloper
Copy link

mehdideveloper commented Jan 30, 2018

Hey
Running bazel build chrome_ext fails with this error:

ERROR: /private/var/tmp/_bazel_user1/efaa21b110f06464002c5605311ac560/external/polymer_bundler_repo/BUILD.bazel:5:1: no such package '@vulcanize//': npm_install failed:  (Process terminated by signal 6) and referenced by '@polymer_bundler_repo//:vulcanize_bin'
ERROR: Analysis of target '//chrome_ext:chrome_ext' failed; build aborted: Loading failed
INFO: Elapsed time: 3.898s
FAILED: Build did NOT complete successfully (0 packages loaded)

macOS 10.13.3
node 9.4.0 (npm 5.6.0)
bazel 0.9.0

FYI, native_messaging is built successfully.

Update:
I built it on Ubuntu and installed the extension on Mac; Also, built the native messaging on Mac.
How should I configure the native package? (detanglenm binary).
The extension complains that the native package is missing.

@therealmik
Copy link
Collaborator

Hi,

The Mac install requires a native messaging json file (like the one in the deb subdir), as well as a plist to install it.

Unfortunately I lost most of the Mac packaging stuff in the conversion to open source, and I'm not sure of the best way to do Mac packaging/installers.

@ghost
Copy link

ghost commented Jan 31, 2018

Did anybody get it to run on macOS? I have the same issues.

@mehdideveloper
Copy link
Author

@nitramabuar I've built the extension on Ubuntu, and installed on Mac.
Also built and installed the native messaging part on Mac and installed the json file (but not the plist);
Now when I run Chrome from command line (to see the errors), here's one error without further details that's probably related to this:

Unable to read nativeMessage: EOF

@therealmik
Copy link
Collaborator

Hi,

I've been building on Mac, although I had to set my max open files pretty high. If it fails due to maxfiles, just keep re-running and it'll get further.

The EOF error is ok (I should probably not log it) - it means that nativeMessaging is getting called.

@mehdideveloper
Copy link
Author

@therealmik Thanks, but the problem is that the extension complains about the native part (it says the native part is not installed; I've tried different combinations of options, but no success;
For example I've installed the ".json" file in both user and system directories for NativeMessageing, and I've also copied the detanglenm to /usr/local/bin, so it can be called by others. I've also restarted Chrome to make sure it reloads everything)

@freaksdotcom
Copy link

Building chrome_ext will succeed if you use rules_nodejs-0.5.3 instead of 0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants