You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2020/02/05 01:08:06 UTC

[GitHub] [incubator-heron] joshfischer1108 edited a comment on issue #3444: Fixing setup script: Do Not Merge

joshfischer1108 edited a comment on issue #3444: Fixing setup script: Do Not Merge
URL: https://github.com/apache/incubator-heron/pull/3444#issuecomment-582192974
 
 
   @nwangtw  It's interesting.. See the command that fails during the setup intellij script is when the script executes `bazel query "something"`.  In this particular case I can open up and see the file it's complaining about in the IDE.  Bazel is searching for Bazel targets containing a file, but I'm not sure how it translates to an IDE yet.  Thoughts?
   
   ```
    Joshs-MacBook-Pro-2:incubator-heron joshfischer$ bazel query 'kind(rule, deps(//heron/spi/src/java:heron-spi-javadoc.zip.source/org/apache/heron/spi/statemgr/IStateManager.java, 1)) - //heron/spi/src/java:heron-spi-javadoc.zip.source/org/apache/heron/spi/statemgr/IStateManager.java'
   ERROR: no such target '//heron/spi/src/java:heron-spi-javadoc.zip.source/org/apache/heron/spi/statemgr/IStateManager.java': target 'heron-spi-javadoc.zip.source/org/apache/heron/spi/statemgr/IStateManager.java' not declared in package 'heron/spi/src/java' defined by /Users/joshfischer/Source/apache/incubator-heron/heron/spi/src/java/BUILD
   Loading: 1 packages loaded
   ```
   If you look at the output above the command claims `Error: no such target`, but then at the bottom of the output you can see it loaded 1 package.
   ```
   Joshs-MacBook-Pro-2:incubator-heron joshfischer$ bazel query 'kind(rule, deps(//heron/spi/src/java/org/apache/heron/spi/statemgr/IStateManager.java, 1)) - //heron/spi/src/java/org/apache/heron/spi/statemgr/IStateManager.java'
   ERROR: no such package 'heron/spi/src/java/org/apache/heron/spi/statemgr/IStateManager.java': BUILD file not found on package path
   Loading: 0 packages loaded
   
   ```
   Here I intentionally changed the directory path to make it break. It also claims `Error: no such target`.  We can also see at the bottom of this script 0 packages loaded.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services