Open michaelfig opened 5 years ago
Indeed, /private/var/tmp/_bazel_michael/6de72905b448fffc7be7652a860e4346/execroot/tink/bazel-out/darwin-fastbuild/bin/javascript/test_lib_registry_bin.js.map
exists and looks to have the right contents, it's just not appearing in the test output.
Excerpts from the build params may be informative:
Michael-Macbook-655:tink michael$ grep -B1 javascript/.*test_lib_registry bazel-out/darwin-fastbuild/bin/javascript/test_lib_registry_bin.js-0.params
--js_output_file
bazel-out/darwin-fastbuild/bin/javascript/test_lib_registry_bin.js
--
--create_source_map
bazel-out/darwin-fastbuild/bin/javascript/test_lib_registry_bin.js.map
--
--output_errors
bazel-out/darwin-fastbuild/bin/javascript/test_lib_registry_bin-stderr.txt
--
--info
bazel-out/darwin-fastbuild/bin/javascript/test_lib_registry_lib.pbtxt
--
--source_map_location_mapping
bazel-out/darwin-fastbuild/bin/javascript/test_lib_registry_bin.js|test_lib_registry_bin.js
Michael-Macbook-655:tink michael$
Hi. First off, I'm not sure if this is related to #16 or #193, so I'm opening a new issue.
I'm finding that for the
closure_js_test
rule in https://github.com/michaelfig/tink/blob/jstest/javascript/BUILD.bazel#L214when I run the following from the toplevel
tink
directory, it fails with:Okay, no problem, I have a failed test.
What makes things difficult is the lack of source maps, so I get stack traces with something like:
etc.
I would have thought that rules_closure would make source maps Just Work, so I'm looking for advice on how to enable them, or what we can fix in rules_closure to make this work.