Help setting up Intellij for Gerrit Dev

299 views
Skip to first unread message

Khai Do

unread,
Dec 15, 2016, 6:32:22 PM12/15/16
to Repo and Gerrit Discussion
Hello All.  I'm trying to get Gerrit setup to build using intellij however I'm not getting it to work. I'm new to intellij so I might have missed something.   Was wondering if anybody else was successful or had similar issues?   

Here is my Env:

I've built gerrit master (bc174c6f8391a75a08d8c8d56e7d9673ce88bff9) with bazel.

IntelliJ IDEA 2016.3  (community edition)
Build #IC-163.7743.44, built on November 17, 2016
JRE: 1.8.0_112-release-408-b2 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

~ ❯❯❯ java -version     
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)

~ ❯❯❯ python -V
Python 2.7.12

~ ❯❯❯ bazel version  
Build label: 0.4.2-homebrew
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Dec 8 03:17:26 2016 (1481167046)
Build timestamp: 1481167046
Build timestamp as int: 1481167046


Getting errors like these..

Error:(23, -1) no such package '@chai//': failed /usr/bin/python /Users/zaro0508/work-gerrit/gerrit-plugin-cr/tools/js/download_bower.py -b /usr/bin/python /Users/zaro0508/work-gerrit/gerrit-plugin-cr/tools/js/run_npm_binary.py /private/var/tmp/_bazel_zaro0508/e6e07b402568a16bb5c4c2954a1fec35/external/bower/bo...@1.7.9.npm_binary.tgz -n chai -p chai -v 3.5.0 -s 849ad3ee7c77506548b7b5db603a4e150b9431aa -o chai__download_bower.zip: env: node: No such file or directory
Error:(23, -1) no such package '@test-fixture//': failed /usr/bin/python /Users/zaro0508/work-gerrit/gerrit-plugin-cr/tools/js/download_bower.py -b /usr/bin/python /Users/zaro0508/work-gerrit/gerrit-plugin-cr/tools/js/run_npm_binary.py /private/var/tmp/_bazel_zaro0508/e6e07b402568a16bb5c4c2954a1fec35/external/bower/bo...@1.7.9.npm_binary.tgz -n test-fixture -p polymerelements/test-fixture -v 1.1.1 -s e373bd21c069163c3a754e234d52c07c77b20d3c -o test-fixture__download_bower.zip: env: node: No such file or directory
Error:(23, -1) no such package '@sinonjs//': failed /usr/bin/python /Users/zaro0508/work-gerrit/gerrit-plugin-cr/tools/js/download_bower.py -b /usr/bin/python /Users/zaro0508/work-gerrit/gerrit-plugin-cr/tools/js/run_npm_binary.py /private/var/tmp/_bazel_zaro0508/e6e07b402568a16bb5c4c2954a1fec35/external/bower/bo...@1.7.9.npm_binary.tgz -n sinonjs -p sinonjs -v 1.17.1 -s a26a6aab7358807de52ba738770f6ac709afd240 -o sinonjs__download_bower.zip: env: node: No such file or directory

David Ostrovsky

unread,
Dec 16, 2016, 1:10:06 AM12/16/16
to Repo and Gerrit Discussion

On Friday, December 16, 2016 at 12:32:22 AM UTC+1, Khai Do wrote:
Hello All.  I'm trying to get Gerrit setup to build using intellij however I'm not getting it to work. I'm new to intellij so I might have missed something.

Let me git grep it for you:

  $ cd projects/gerrit/Documentation
  $ git grep -l IntelliJ 
  dev-bazel.txt
  dev-intellij.txt
  dev-readme.txt
  index.txt
  intro-user.txt

Zaro

unread,
Dec 16, 2016, 1:51:18 AM12/16/16
to David Ostrovsky, Repo and Gerrit Discussion
yes, I've read the documentation and i believe I've setup as
instructed however i'm still getting those errors.
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to repo-discuss...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

David Ostrovsky

unread,
Dec 16, 2016, 1:57:23 AM12/16/16
to Repo and Gerrit Discussion, david.o...@gmail.com

On Friday, December 16, 2016 at 7:51:18 AM UTC+1, Khai Do wrote:
yes, I've read the documentation and i believe I've setup as
instructed however i'm still getting those errors.

The IJ version you are trying to use is not supported by IJ Bazel plugin: [1].

luca.mi...@gmail.com

unread,
Dec 16, 2016, 2:11:34 AM12/16/16
to David Ostrovsky, Repo and Gerrit Discussion
Would be useful to specify in our doc that IJ 2016.02 is the one supported ATM :-)

Luca

Sent from my iPhone
--

lucamilanesio

unread,
Dec 16, 2016, 2:25:17 AM12/16/16
to Repo and Gerrit Discussion, david.o...@gmail.com


On Friday, December 16, 2016 at 7:11:34 AM UTC, lucamilanesio wrote:
Would be useful to specify in our doc that IJ 2016.02 is the one supported ATM :-)

Luca

Sent from my iPhone

On 16 Dec 2016, at 06:57, David Ostrovsky <david.o...@gmail.com> wrote:


On Friday, December 16, 2016 at 7:51:18 AM UTC+1, Khai Do wrote:
yes, I've read the documentation and i believe I've setup as
instructed however i'm still getting those errors.

The IJ version you are trying to use is not supported by IJ Bazel plugin: [1].

--
--

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.

David Ostrovsky

unread,
Dec 16, 2016, 2:32:06 AM12/16/16
to Repo and Gerrit Discussion

On Friday, December 16, 2016 at 8:11:34 AM UTC+1, lucamilanesio wrote:
Would be useful to specify in our doc that IJ 2016.02 is the one supported ATM :-)

Thanks, merged.

Khai Do

unread,
Dec 16, 2016, 12:52:57 PM12/16/16
to Repo and Gerrit Discussion
Hi David, I don't think the issue you referenced is the same as what I'm seeing.  I don't get an error after import and it's not the same error.  I get no such package errors[1] when the bazel build runs and when I select Bazel->Make Project.  Also I downgraded to 2016.2.5 and I am still seeing these errors.  The same project (built with bazel) works great in eclipse mars.


Downgraded to intellij version:
IntelliJ IDEA 2016.2.5
Build #IC-162.2228.15, built on October 14, 2016
JRE: 1.8.0_112-release-287-b2 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o



ERROR: /Users/zaro0508/work-gerrit/gerrit/lib/js/BUILD:23:1: no such package '@test-fixture//': failed /usr/bin/python /Users/zaro0508/work-gerrit/gerrit/tools/js/download_bower.py -b /usr/bin/python /Users/zaro0508/work-gerrit/gerrit/tools/js/run_npm_binary.py /private/var/tmp/_bazel_zaro0508/bee5213e6d84f3c68ae8bf88ef103117/external/bower/bo...@1.7.9.npm_binary.tgz -n test-fixture -p polymerelements/test-fixture -v 1.1.1 -s e373bd21c069163c3a754e234d52c07c77b20d3c -o test-fixture__download_bower.zip: env: node: No such file or directory
Traceback (most recent call last):
  File "/Users/zaro0508/work-gerrit/gerrit/tools/js/run_npm_binary.py", line 91, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/zaro0508/work-gerrit/gerrit/tools/js/run_npm_binary.py", line 87, in main
    subprocess.check_call([bin] + args[1:])
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
Reply all
Reply to author
Forward
0 new messages