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

List of targets never loads #58

Closed
jfroy opened this issue Feb 16, 2019 · 5 comments
Closed

List of targets never loads #58

jfroy opened this issue Feb 16, 2019 · 5 comments
Labels
P2 We should address this this quarter type: bug Something isn't working

Comments

@jfroy
Copy link

jfroy commented Feb 16, 2019

I am working in a fairly complex workspace, with many targets, external workspaces, etc. The list of targets never loads, and the extension host process is pegged at 100% CPU.

Version: 1.31.1
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:19:29.629Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.19.16-1rodete1-amd64

Using version 0.1.0.

@allevato allevato added type: bug Something isn't working P2 We should address this this quarter labels Feb 19, 2019
@allevato
Copy link
Collaborator

About how large is the workspace (how deep is its package structure, how many external dependencies, etc.)?

If you run the Developer: Toggle Developer Tools command, do you see any logging that looks relevant in the console?

When the tree first loads, it runs bazel query //... --output=package in your workspace directory to get the full list of packages. If you run that from the command line, does it take a long time to finish? If not, how many lines is the output?

@allevato
Copy link
Collaborator

Can you check this again with the latest release (0.2.0) of the extension on the marketplace? We fixed a couple issues that may have been causing this.

@jfroy
Copy link
Author

jfroy commented May 25, 2019

We're seeing this error now. It may be a problem in our WORKSPACE:

Command failed: bazel query ...:* --output=package
Loading: 0 packages loaded
Loading: 543 packages loaded
    currently loading: vendor/google.golang.org/api/pagespeedonline/v4
Loading: 892 packages loaded
    currently loading: third_party/libvpx
ERROR: error loading package 'bazel-master/external/bazel_tools/src/main/protobuf': Label '//tools/build_rules:genproto.bzl' crosses boundary of package 'tools' (perhaps you meant to put the colon here: '//tools:build_rules/genproto.bzl'?)
Loading: 1123 packages loaded
    currently loading: bazel-master/external/bazel_tools/src/tools/launcher/util ... (2 packages)
Loading: 1123 packages loaded
    currently loading: bazel-master/external/bazel_tools/src/tools/launcher/util ... (2 packages)

@jfroy
Copy link
Author

jfroy commented May 25, 2019

Build label: 0.25.2
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri May 10 20:47:48 2019 (1557521268)
Build timestamp: 1557521268
Build timestamp as int: 1557521268```

@allevato
Copy link
Collaborator

That does look like a problem specifically in one of the BUILD files in your workspace, rather than a problem with the extension, since Bazel is launching properly. I'm going to close out this issue, but feel free to reopen it if you investigate and believe the issue is related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We should address this this quarter type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants