Open JohanBaskovec opened 5 years ago
This kind of error can happen when there is a synchronization issue between extern files (that are not provided by this repository) and the diff file.
That being said, after reading your logs when you tried to patch manually the files, it seems there is an error in the path to the js file: src/main/java/j2clhelloworld/pathellxternalfiletest/es3.js instead of src/main/java/j2clhelloworld/pathexternalfiletest/es3.js Could you confirm is not an error?
Hi
I tried using elemental2 with j2cl. My BUILD file contains this config :
When building the project, an error occured during the execution of java/elemental2/core:es3_patched:
I was able to fix the error by updating GNU patch to 2.7.6 (I downloaded it and built it from ftp://ftp.gnu.org/gnu/patch because it's not in Linux Mint 18.2 repository).
The error was caused by patch 2.7.5 apparently not supporting patching files in a different folder. This failed:
When removing the
-o
option, it says the file name is invalid:but this worked :
After upgrading to 2.7.6, they both work, and I'm able to build my j2cs project.