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

Project sync fails with errors #445

Closed
hsestupin opened this issue Nov 15, 2018 · 3 comments
Closed

Project sync fails with errors #445

hsestupin opened this issue Nov 15, 2018 · 3 comments

Comments

@hsestupin
Copy link

Actualy there are lots of identical errors which look like this:

ERROR: /Users/jetbrains/src/datalore/platform/widget/widget-to-dom/BUILD.bazel:53:1: in @intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect aspect on filegroup rule //platform/widget/widget-to-dom:views_resources: 
Traceback (most recent call last):
	File "/Users/jetbrains/src/datalore/platform/widget/widget-to-dom/BUILD.bazel", line 53
		@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect(...)
	File "/private/var/tmp/_bazel_jetbrains/e439d9fcbe1875cf9922b11e6b2acfbc/external/intellij_aspect/intellij_info_bundled.bzl", line 38, in _aspect_impl
		intellij_info_aspect_impl(target, ctx, semantics)
	File "/private/var/tmp/_bazel_jetbrains/e439d9fcbe1875cf9922b11e6b2acfbc/external/intellij_aspect/intellij_info_impl.bzl", line 802, in intellij_info_aspect_impl
		update_set_in_dict(output_groups, "intellij-info-gene...", ...]))
	File "/private/var/tmp/_bazel_jetbrains/e439d9fcbe1875cf9922b11e6b2acfbc/external/intellij_aspect/intellij_info_impl.bzl", line 191, in update_set_in_dict
		input_dict.get(key, depset()) | other_set
`|` operator on a depset is forbidden. See https://docs.bazel.build/versions/master/skylark/depsets.html for recommendations. Use --incompatible_depset_union=false to temporarily disable this check.

Bazel version is: 0.18.1-homebrew
Idea: 2018.2.4
Plugin: 2018.10.22.0.2

Is there any workaround for this?

@brendandouglas
Copy link
Contributor

Looks like you'll need to add "--incompatible_depset_union=false" to your bazel flags (either your .bazelrc file, or the "build_flags" .bazelproject file), or downgrade to an earlier version of bazel.

@jin
Copy link
Member

jin commented Apr 24, 2019

What @brendandouglas said. See bazelbuild/bazel#5817 for more information on how to migrate their projects to use the new constructor.

@jin jin closed this as completed Apr 24, 2019
@laurentlb
Copy link

incompatible_depset_union is still false by default.

From the error message, it seems like it was explicitly set to true (using either --incompatible_depset_union or --all_incompatible_changes).

cry added a commit to cry/comp6771 that referenced this issue Jun 9, 2019
See bazelbuild/intellij#445

The bazel build in gen_compile_commands.sh uses + to add to depsets
which was apparently depreciated with newer releases.
matts1 pushed a commit to cs6771/comp6771 that referenced this issue Jun 9, 2019
See bazelbuild/intellij#445

The bazel build in gen_compile_commands.sh uses + to add to depsets
which was apparently depreciated with newer releases.
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

4 participants